|
1 | 1 | from setuptools import setup, find_packages |
2 | 2 |
|
3 | 3 | required_packages = [ |
4 | | - 'graphql-core>=2.1', |
5 | | - 'graphql-server-core>=1.1.1', |
6 | | - 'sanic>=0.5.1', |
7 | | - 'pytest-runner' |
| 4 | + "graphql-core>=2.1,<3", |
| 5 | + "graphql-server-core>=1.1.1,<2", |
| 6 | + "sanic>=0.5.1,<19", |
8 | 7 | ] |
9 | 8 |
|
| 9 | +tests_require = ["pytest>=2.7.3", "aiohttp>=3.5.0,<4", "yarl>=1.0,<2.0", "jinja2==2.9.0"] |
| 10 | + |
10 | 11 | setup( |
11 | | - name='Sanic-GraphQL', |
12 | | - version='1.1.0', |
13 | | - description='Adds GraphQL support to your Sanic application', |
14 | | - long_description=open('README.rst').read(), |
15 | | - url='https://github.com/graphql-python/sanic-graphql', |
16 | | - download_url='https://github.com/graphql-python/sanic-graphql/releases', |
17 | | - author='Sergey Porivaev', |
18 | | - |
19 | | - license='MIT', |
| 12 | + name="Sanic-GraphQL", |
| 13 | + version="1.1.0", |
| 14 | + description="Adds GraphQL support to your Sanic application", |
| 15 | + long_description=open("README.rst", encoding="utf-8").read(), |
| 16 | + url="https://github.com/graphql-python/sanic-graphql", |
| 17 | + download_url="https://github.com/graphql-python/sanic-graphql/releases", |
| 18 | + author="Sergey Porivaev", |
| 19 | + |
| 20 | + license="MIT", |
20 | 21 | classifiers=[ |
21 | | - 'Development Status :: 5 - Production/Stable', |
22 | | - 'Intended Audience :: Developers', |
23 | | - 'Topic :: Software Development :: Libraries', |
24 | | - 'Programming Language :: Python :: 3.5', |
25 | | - 'Programming Language :: Python :: 3.6', |
26 | | - 'License :: OSI Approved :: MIT License', |
| 22 | + "Development Status :: 5 - Production/Stable", |
| 23 | + "Intended Audience :: Developers", |
| 24 | + "Topic :: Software Development :: Libraries", |
| 25 | + "Programming Language :: Python :: 3.6", |
| 26 | + "Programming Language :: Python :: 3.7", |
| 27 | + "Programming Language :: Python :: 3.8", |
| 28 | + "License :: OSI Approved :: MIT License", |
27 | 29 | ], |
28 | | - keywords='api graphql protocol sanic', |
29 | | - packages=find_packages(exclude=['tests']), |
| 30 | + keywords="api graphql protocol sanic", |
| 31 | + packages=find_packages(exclude=["tests"]), |
30 | 32 | install_requires=required_packages, |
31 | | - tests_require=['pytest>=2.7.3', 'aiohttp>=1.3.0', 'yarl>=0.9.6', 'jinja2>=2.9.0'], |
| 33 | + tests_require=tests_require, |
| 34 | + extras_require={"test": tests_require}, |
32 | 35 | include_package_data=True, |
33 | | - platforms='any', |
| 36 | + platforms="any", |
34 | 37 | ) |
0 commit comments