-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
41 lines (37 loc) · 1.34 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
import ast
import re
import setuptools
_version_re = re.compile(r"version\s+=\s+(.*)")
with open("pyproject.toml", "rb") as f:
version = str(
ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1))
)
with open("README.md", "r") as fh:
long_description = fh.read()
requirements = [
# To keep things simple, we only support newer versions of Graphene
"sqlalchemy>=1.4",
"graphene-sqlalchemy>=2.3.0",
]
setuptools.setup(
name="graphene-sqlalchemy-auto", # Replace with your own username
version=version,
author="golsee",
author_email="[email protected]",
description="generate default graphene schema from sqlalchemy model base on graphene-sqlalchemy",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/goodking-bq/graphene-sqlalchemy-auto.git",
packages=setuptools.find_packages(),
classifiers=[
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)