Black against setup.py

This commit is contained in:
Simon Willison 2019-05-03 20:51:16 -04:00
commit 9e054f5a84

View file

@ -5,68 +5,67 @@ import versioneer
def get_long_description(): def get_long_description():
with open(os.path.join( with open(
os.path.dirname(os.path.abspath(__file__)), 'README.md' os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
), encoding='utf8') as fp: encoding="utf8",
) as fp:
return fp.read() return fp.read()
def get_version(): def get_version():
path = os.path.join( path = os.path.join(
os.path.dirname(os.path.abspath(__file__)), 'datasette', 'version.py' os.path.dirname(os.path.abspath(__file__)), "datasette", "version.py"
) )
g = {} g = {}
exec(open(path).read(), g) exec(open(path).read(), g)
return g['__version__'] return g["__version__"]
setup( setup(
name='datasette', name="datasette",
version=versioneer.get_version(), version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(), cmdclass=versioneer.get_cmdclass(),
description='An instant JSON API for your SQLite databases', description="An instant JSON API for your SQLite databases",
long_description=get_long_description(), long_description=get_long_description(),
long_description_content_type='text/markdown', long_description_content_type="text/markdown",
author='Simon Willison', author="Simon Willison",
license='Apache License, Version 2.0', license="Apache License, Version 2.0",
url='https://github.com/simonw/datasette', url="https://github.com/simonw/datasette",
packages=find_packages(), packages=find_packages(),
package_data={'datasette': ['templates/*.html']}, package_data={"datasette": ["templates/*.html"]},
include_package_data=True, include_package_data=True,
install_requires=[ install_requires=[
'click>=6.7', "click>=6.7",
'click-default-group==1.2', "click-default-group==1.2",
'Sanic==0.7.0', "Sanic==0.7.0",
'Jinja2==2.10.1', "Jinja2==2.10.1",
'hupper==1.0', "hupper==1.0",
'pint==0.8.1', "pint==0.8.1",
'pluggy>=0.7.1', "pluggy>=0.7.1",
], ],
entry_points=''' entry_points="""
[console_scripts] [console_scripts]
datasette=datasette.cli:cli datasette=datasette.cli:cli
''', """,
setup_requires=['pytest-runner'], setup_requires=["pytest-runner"],
extras_require={ extras_require={
'test': [ "test": [
'pytest==4.0.2', "pytest==4.0.2",
'pytest-asyncio==0.10.0', "pytest-asyncio==0.10.0",
'aiohttp==3.5.3', "aiohttp==3.5.3",
'beautifulsoup4==4.6.1', "beautifulsoup4==4.6.1",
] ]
}, },
tests_require=[ tests_require=["datasette[test]"],
'datasette[test]',
],
classifiers=[ classifiers=[
'Development Status :: 4 - Beta', "Development Status :: 4 - Beta",
'Intended Audience :: Developers', "Intended Audience :: Developers",
'Intended Audience :: Science/Research', "Intended Audience :: Science/Research",
'Intended Audience :: End Users/Desktop', "Intended Audience :: End Users/Desktop",
'Topic :: Database', "Topic :: Database",
'License :: OSI Approved :: Apache Software License', "License :: OSI Approved :: Apache Software License",
'Programming Language :: Python :: 3.7', "Programming Language :: Python :: 3.7",
'Programming Language :: Python :: 3.6', "Programming Language :: Python :: 3.6",
'Programming Language :: Python :: 3.5', "Programming Language :: Python :: 3.5",
], ],
) )