-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
54 lines (47 loc) · 1.71 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
import os
import setuptools
def get_version():
package_init = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'graphql_utilities', '__init__.py')
with open(package_init) as f:
for line in f:
if line.startswith('__version__ ='):
return line.split('=')[1].strip().strip('"\'')
def get_long_description():
with open("README.md", "r") as fh:
return fh.read()
setuptools.setup(
name="graphql-utilities",
version=get_version(),
author="Melvin Koh",
author_email="melvinkcx@gmail.com",
description="Collection of utilities, middleware, decorators for graphql-core>=3.0",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/melvinkcx/graphql-utilities",
packages=setuptools.find_packages(exclude=["tests.*"]),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries'
],
install_requires=['graphql-core>=3.0'],
python_requires=">=3.6,<4",
extras_require={
'dev': [
'pytest>=5.3.4,<6',
'flake8>=3.7.9,<4',
'pytest-describe>=0.12,<1',
'django>=1.11,<3',
'sphinx>=2.4.1,<3',
'sphinx_rtd_theme>=0.4.3,<1',
]
}
)