From d2dbbabeb10ebee78ce96dec3fb581b6bb3b46cc Mon Sep 17 00:00:00 2001 From: jklynch Date: Mon, 31 Aug 2020 23:57:06 -0400 Subject: [PATCH] reformat --- setup.py | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/setup.py b/setup.py index a849223..0e163d2 100644 --- a/setup.py +++ b/setup.py @@ -19,38 +19,43 @@ Upgrade pip like so: pip install --upgrade pip -""".format(*(sys.version_info[:2] + min_version)) +""".format( + *(sys.version_info[:2] + min_version) + ) sys.exit(error) here = path.abspath(path.dirname(__file__)) -with open(path.join(here, 'README.rst'), encoding='utf-8') as readme_file: +with open(path.join(here, "README.rst"), encoding="utf-8") as readme_file: readme = readme_file.read() -with open(path.join(here, 'requirements.txt')) as requirements_file: +with open(path.join(here, "requirements.txt")) as requirements_file: # Parse requirements.txt, ignoring any commented-out lines. - requirements = [line for line in requirements_file.read().splitlines() - if not line.startswith('#')] + requirements = [ + line + for line in requirements_file.read().splitlines() + if not line.startswith("#") + ] setup( - name='pdf-workers', + name="pdf-workers", version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description="do some work at PDF", long_description=readme, author="Brookhaven National Lab", - url='https://github.com/NSLS-II-PDF/pdf-workers', - python_requires='>={}'.format('.'.join(str(n) for n in min_version)), - packages=find_packages(exclude=['docs', 'tests']), + url="https://github.com/NSLS-II-PDF/pdf-workers", + python_requires=">={}".format(".".join(str(n) for n in min_version)), + packages=find_packages(exclude=["docs", "tests"]), entry_points={ - 'console_scripts': [ + "console_scripts": [ # 'command = some.module:some_function', ], }, include_package_data=True, package_data={ - 'pdf_workers': [ + "pdf_workers": [ # When adding files here, remember to update MANIFEST.in as well, # or else they will not be included in the distribution on PyPI! # 'path/to/data_file', @@ -59,8 +64,8 @@ install_requires=requirements, license="BSD (3-clause)", classifiers=[ - 'Development Status :: 2 - Pre-Alpha', - 'Natural Language :: English', - 'Programming Language :: Python :: 3', + "Development Status :: 2 - Pre-Alpha", + "Natural Language :: English", + "Programming Language :: Python :: 3", ], )