forked from graphql-python/gql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
112 lines (100 loc) · 3.13 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import os
from setuptools import setup, find_packages
install_requires = [
"graphql-core>=3.2,<3.3",
"yarl>=1.6,<2.0",
"backoff>=1.11.1,<3.0",
]
console_scripts = [
"gql-cli=gql.cli:gql_cli",
]
tests_requires = [
"parse==1.15.0",
"pytest==6.2.5",
"pytest-asyncio==0.16.0",
"pytest-console-scripts==1.3.1",
"pytest-cov==3.0.0",
"mock==4.0.2",
"vcrpy==4.0.2",
"aiofiles",
]
dev_requires = [
"black==22.3.0",
"check-manifest>=0.42,<1",
"flake8==3.8.1",
"isort==4.3.21",
"mypy==0.910",
"sphinx>=3.0.0,<4",
"sphinx_rtd_theme>=0.4,<1",
"sphinx-argparse==0.2.5",
"types-aiofiles",
"types-mock",
"types-requests",
] + tests_requires
install_aiohttp_requires = [
"aiohttp>=3.7.1,<3.9.0",
]
install_requests_requires = [
"requests>=2.26,<3",
"requests_toolbelt>=0.9.1,<1",
"urllib3>=1.26",
]
install_websockets_requires = [
"websockets>=9,<10;python_version<='3.6'",
"websockets>=10,<11;python_version>'3.6'",
]
install_botocore_requires = [
"botocore>=1.21,<2",
]
install_all_requires = (
install_aiohttp_requires + install_requests_requires + install_websockets_requires + install_botocore_requires
)
# Get version from __version__.py file
current_folder = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(current_folder, "gql", "__version__.py"), "r") as f:
exec(f.read(), about)
setup(
name="gql",
version=about["__version__"],
description="GraphQL client for Python",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/graphql-python/gql",
author="Syrus Akbary",
author_email="me@syrusakbary.com",
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: PyPy",
],
keywords="api graphql protocol rest relay gql client",
packages=find_packages(include=["gql*"]),
# PEP-561: https://www.python.org/dev/peps/pep-0561/
package_data={"gql": ["py.typed"]},
install_requires=install_requires,
tests_require=install_all_requires + tests_requires,
extras_require={
"all": install_all_requires,
"test": install_all_requires + tests_requires,
"test_no_transport": tests_requires,
"dev": install_all_requires + dev_requires,
"aiohttp": install_aiohttp_requires,
"requests": install_requests_requires,
"websockets": install_websockets_requires,
"botocore": install_botocore_requires,
},
include_package_data=True,
zip_safe=False,
platforms="any",
entry_points={"console_scripts": console_scripts},
)