| 1 |
from re import search |
| 2 |
|
| 3 |
from setuptools import find_packages, setup |
| 4 |
|
| 5 |
with open("src/graphql/version.py") as version_file: |
| 6 |
version = search('version = "(.*)"', version_file.read()).group(1) |
| 7 |
|
| 8 |
with open("README.md") as readme_file: |
| 9 |
readme = readme_file.read() |
| 10 |
|
| 11 |
setup( |
| 12 |
name="graphql-core", |
| 13 |
version=version, |
| 14 |
description="GraphQL implementation for Python, a port of GraphQL.js," |
| 15 |
" the JavaScript reference implementation for GraphQL.", |
| 16 |
long_description=readme, |
| 17 |
long_description_content_type="text/markdown", |
| 18 |
keywords="graphql", |
| 19 |
url="https://github.com/graphql-python/graphql-core", |
| 20 |
author="Christoph Zwerschke", |
| 21 |
author_email="[email protected]", |
| 22 |
license="MIT license", |
| 23 |
classifiers=[ |
| 24 |
"Development Status :: 5 - Production/Stable", |
| 25 |
"Intended Audience :: Developers", |
| 26 |
"Topic :: Software Development :: Libraries", |
| 27 |
"License :: OSI Approved :: MIT License", |
| 28 |
"Programming Language :: Python :: 3", |
| 29 |
"Programming Language :: Python :: 3 :: Only", |
| 30 |
"Programming Language :: Python :: 3.7", |
| 31 |
"Programming Language :: Python :: 3.8", |
| 32 |
"Programming Language :: Python :: 3.9", |
| 33 |
"Programming Language :: Python :: 3.10", |
| 34 |
"Programming Language :: Python :: 3.11", |
| 35 |
"Programming Language :: Python :: 3.12", |
| 36 |
"Programming Language :: Python :: 3.13", |
| 37 |
"Programming Language :: Python :: 3.14", |
| 38 |
], |
| 39 |
install_requires=[ |
| 40 |
"typing-extensions>=4.7,<5; python_version < '3.10'", |
| 41 |
], |
| 42 |
python_requires=">=3.7,<4", |
| 43 |
packages=find_packages("src"), |
| 44 |
package_dir={"": "src"}, |
| 45 |
# PEP-561: https://www.python.org/dev/peps/pep-0561/ |
| 46 |
package_data={"graphql": ["py.typed"]}, |
| 47 |
include_package_data=True, |
| 48 |
zip_safe=False, |
| 49 |
) |