This repository has been archived by the owner on Dec 9, 2020. It is now read-only.
forked from profusion/sgqlc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·65 lines (57 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
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os.path
import re
from setuptools import setup, find_packages
name = 'sgqlc'
version = 7
release = 0
def cleanup_rst(doc):
re_sphinx_extensions = re.compile(':(mod|class):')
return re_sphinx_extensions.sub(':literal:', doc)
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return cleanup_rst(f.read())
setup(
name=name,
version=f'{version}.{release}',
description='Simple GraphQL Client',
long_description=read('README.rst'),
long_description_content_type='text/x-rst',
author='Gustavo Sverzut Barbieri',
author_email='[email protected]',
url='http://github.com/profusion/sgqlc',
license='ISCL',
python_requires='>=3.6',
requires=[],
install_requires=['graphql-core'],
extras_require={
'sphinx': ['sphinx'],
},
zip_safe=True,
keywords='graphql client http endpoint',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities',
],
platforms='any',
scripts=[
'bin/sgqlc-codegen',
],
packages=find_packages(exclude=('doc', 'examples', 'utils', 'tests')),
test_suite='nose.collector',
tests_require=['nose', 'coverage'],
command_options={
'build_sphinx': {
'project': ('setup.py', name),
'version': ('setup.py', str(version)),
'release': ('setup.py', str(release)),
}
},
)