-
Notifications
You must be signed in to change notification settings - Fork 182
/
setup.py
115 lines (102 loc) · 3.2 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
113
114
115
import os
from setuptools import setup, find_packages
install_requires = [
"graphql-core>=3.3.0a3,<3.4",
"yarl>=1.6,<2.0",
"backoff>=1.11.1,<3.0",
"anyio>=3.0,<5",
]
console_scripts = [
"gql-cli=gql.cli:gql_cli",
]
tests_requires = [
"parse==1.15.0",
"pytest==7.4.2",
"pytest-asyncio==0.21.1",
"pytest-console-scripts==1.4.1",
"pytest-cov==5.0.0",
"vcrpy==4.4.0",
"aiofiles",
]
dev_requires = [
"black==22.3.0",
"check-manifest>=0.42,<1",
"flake8==7.1.1",
"isort==4.3.21",
"mypy==1.10",
"sphinx>=5.3.0,<6",
"sphinx_rtd_theme>=0.4,<1",
"sphinx-argparse==0.2.5",
"types-aiofiles",
"types-requests",
] + tests_requires
install_aiohttp_requires = [
"aiohttp>=3.8.0,<4;python_version<='3.11'",
"aiohttp>=3.9.0b0,<4;python_version>'3.11'",
]
install_requests_requires = [
"requests>=2.26,<3",
"requests_toolbelt>=1.0.0,<2",
]
install_httpx_requires = [
"httpx>=0.23.1,<1",
]
install_websockets_requires = [
"websockets>=10,<12",
]
install_botocore_requires = [
"botocore>=1.21,<2",
]
install_all_requires = (
install_aiohttp_requires + install_requests_requires + install_httpx_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")) 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="[email protected]",
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"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,
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,
"httpx": install_httpx_requires,
"websockets": install_websockets_requires,
"botocore": install_botocore_requires,
},
include_package_data=True,
zip_safe=False,
platforms="any",
entry_points={"console_scripts": console_scripts},
)