-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
42 lines (36 loc) · 1.18 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
from setuptools import setup
import os
name = 'graphene-stubs'
description = 'Graphene stubs and mypy plugin'
install_instructions = """
# View installation instructions on github
"""
def find_stub_files():
result = []
for root, dirs, files in os.walk(name):
for file in files:
if file.endswith('.pyi'):
if os.path.sep in root:
sub_root = root.split(os.path.sep, 1)[-1]
file = os.path.join(sub_root, file)
result.append(file)
return result
setup(
name='graphene-stubs',
version='0.16',
description=description,
long_description=install_instructions,
long_description_content_type='text/markdown',
author='Cohen Karnell',
author_email='[email protected]',
license='MIT License',
url="https://github.com/trialspark/graphene-stubs",
py_modules=['graphene_plugin', 'graphene_typing'],
install_requires=['mypy>=0.750', 'typing-extensions>=3.6.5'],
packages=['graphene-stubs'],
package_data={'graphene-stubs': find_stub_files()},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
]
)