forked from dropbox/sqlalchemy-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
31 lines (28 loc) · 914 Bytes
/
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
from distutils.core import setup
import os
name = 'sqlalchemy-stubs'
description = 'Experimental SQLAlchemy stubs'
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='sqlalchemy-stubs',
version='0.1',
description=description,
long_description=description,
author='Ivan Levkivskyi',
author_email='levkivskyi@gmail.com',
license='MIT License',
py_modules=['sqlmypy', 'sqltyping'],
install_requires=[
'typing-extensions>=3.6.5'
],
packages=['sqlalchemy-stubs'],
package_data={'sqlalchemy-stubs': find_stub_files()},
)