Skip to content

Commit 192ac96

Browse files
committed
Trying to fix tests
1 parent 06ca766 commit 192ac96

File tree

1 file changed

+42
-56
lines changed

1 file changed

+42
-56
lines changed

setup.py

Lines changed: 42 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -3,77 +3,63 @@
33
import ast
44
import re
55

6-
_version_re = re.compile(r'__version__\s+=\s+(.*)')
6+
_version_re = re.compile(r"__version__\s+=\s+(.*)")
77

8-
with open('graphene_django/__init__.py', 'rb') as f:
9-
version = str(ast.literal_eval(_version_re.search(
10-
f.read().decode('utf-8')).group(1)))
8+
with open("graphene_django/__init__.py", "rb") as f:
9+
version = str(
10+
ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1))
11+
)
1112

12-
rest_framework_require = [
13-
'djangorestframework>=3.6.3',
14-
]
13+
rest_framework_require = ["djangorestframework>=3.6.3"]
1514

1615

1716
tests_require = [
18-
'pytest>=2.7.2',
19-
'pytest-cov',
20-
'coveralls',
21-
'mock',
22-
'pytz',
23-
'django-filter',
24-
'pytest-django>=3.2.1',
17+
"pytest>=3.6.3",
18+
"pytest-cov",
19+
"coveralls",
20+
"mock",
21+
"pytz",
22+
"django-filter",
23+
"pytest-django>=3.3.2",
2524
] + rest_framework_require
2625

2726
setup(
28-
name='graphene-django',
27+
name="graphene-django",
2928
version=version,
30-
31-
description='Graphene Django integration',
32-
long_description=open('README.rst').read(),
33-
34-
url='https://github.com/graphql-python/graphene-django',
35-
36-
author='Syrus Akbary',
37-
author_email='[email protected]',
38-
39-
license='MIT',
40-
29+
description="Graphene Django integration",
30+
long_description=open("README.rst").read(),
31+
url="https://github.com/graphql-python/graphene-django",
32+
author="Syrus Akbary",
33+
author_email="[email protected]",
34+
license="MIT",
4135
classifiers=[
42-
'Development Status :: 3 - Alpha',
43-
'Intended Audience :: Developers',
44-
'Topic :: Software Development :: Libraries',
45-
'Programming Language :: Python :: 2',
46-
'Programming Language :: Python :: 2.7',
47-
'Programming Language :: Python :: 3',
48-
'Programming Language :: Python :: 3.3',
49-
'Programming Language :: Python :: 3.4',
50-
'Programming Language :: Python :: 3.5',
51-
'Programming Language :: Python :: Implementation :: PyPy',
36+
"Development Status :: 3 - Alpha",
37+
"Intended Audience :: Developers",
38+
"Topic :: Software Development :: Libraries",
39+
"Programming Language :: Python :: 2",
40+
"Programming Language :: Python :: 2.7",
41+
"Programming Language :: Python :: 3",
42+
"Programming Language :: Python :: 3.3",
43+
"Programming Language :: Python :: 3.4",
44+
"Programming Language :: Python :: 3.5",
45+
"Programming Language :: Python :: Implementation :: PyPy",
5246
],
53-
54-
keywords='api graphql protocol rest relay graphene',
55-
56-
packages=find_packages(exclude=['tests']),
57-
47+
keywords="api graphql protocol rest relay graphene",
48+
packages=find_packages(exclude=["tests"]),
5849
install_requires=[
59-
'six>=1.10.0',
60-
'graphene>=2.1,<3',
61-
'graphql-core>=2.1rc1',
62-
'Django>=1.8.0',
63-
'iso8601',
64-
'singledispatch>=3.4.0.3',
65-
'promise>=2.1',
66-
],
67-
setup_requires=[
68-
'pytest-runner',
50+
"six>=1.10.0",
51+
"graphene>=2.1,<3",
52+
"graphql-core>=2.1rc1",
53+
"Django>=1.8.0",
54+
"iso8601",
55+
"singledispatch>=3.4.0.3",
56+
"promise>=2.1",
6957
],
58+
setup_requires=["pytest-runner"],
7059
tests_require=tests_require,
7160
rest_framework_require=rest_framework_require,
72-
extras_require={
73-
'test': tests_require,
74-
'rest_framework': rest_framework_require,
75-
},
61+
extras_require={"test": tests_require, "rest_framework": rest_framework_require},
7662
include_package_data=True,
7763
zip_safe=False,
78-
platforms='any',
64+
platforms="any",
7965
)

0 commit comments

Comments
 (0)