Skip to content

Commit 1e8a370

Browse files
committed
Update setup.py and tox settings
1 parent 4110694 commit 1e8a370

2 files changed

Lines changed: 29 additions & 38 deletions

File tree

setup.py

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
from setuptools import setup, find_packages
22

33
required_packages = [
4-
'graphql-core>=2.1,<3',
5-
'graphql-server-core>=1.1.1,<2',
6-
'sanic>=0.5.1',
4+
"graphql-core>=2.1,<3",
5+
"graphql-server-core>=1.1.1,<2",
6+
"sanic>=0.5.1",
77
]
88

9+
tests_require = ["pytest>=2.7.3", "aiohttp>=1.3.0", "yarl>=0.9.6", "jinja2>=2.9.0"]
10+
911
setup(
10-
name='Sanic-GraphQL',
11-
version='1.1.0',
12-
description='Adds GraphQL support to your Sanic application',
13-
long_description=open('README.rst').read(),
14-
url='https://github.com/graphql-python/sanic-graphql',
15-
download_url='https://github.com/graphql-python/sanic-graphql/releases',
16-
author='Sergey Porivaev',
17-
author_email='porivaevs@gmail.com',
18-
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").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+
author_email="porivaevs@gmail.com",
20+
license="MIT",
1921
classifiers=[
20-
'Development Status :: 5 - Production/Stable',
21-
'Intended Audience :: Developers',
22-
'Topic :: Software Development :: Libraries',
23-
'Programming Language :: Python :: 3.5',
24-
'Programming Language :: Python :: 3.6',
25-
'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",
2629
],
27-
keywords='api graphql protocol sanic',
28-
packages=find_packages(exclude=['tests']),
30+
keywords="api graphql protocol sanic",
31+
packages=find_packages(exclude=["tests"]),
2932
install_requires=required_packages,
30-
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},
3135
include_package_data=True,
32-
platforms='any',
36+
platforms="any",
3337
)

tox.ini

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
11
[tox]
2-
envlist = py35, py36, flake8
2+
envlist = flake8,py36,py37,py38
33
skipsdist = true
44

5-
[travis]
6-
python =
7-
3.5: py35, flake8
8-
3.6: py36, flake8
9-
105
[testenv]
116
deps =
12-
pytest>=2.7.2
13-
graphql-core>=1.0
14-
graphql-server-core>=1.0.dev
15-
sanic>=0.3.1
16-
aiohttp>=1.3.0
17-
jinja2>=2.9.0
18-
yarl>=0.9.6
19-
pytest-runner
20-
coverage
7+
.[test]
218

229
commands =
23-
coverage run --source=sanic_graphql setup.py test
10+
{posargs:py.test --cov=sanic_graphql tests}
2411

2512
[testenv:flake8]
2613
deps = flake8

0 commit comments

Comments
 (0)