-
Notifications
You must be signed in to change notification settings - Fork 430
/
Copy pathsetup.py
62 lines (55 loc) · 1.88 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
import os
import sys
from setuptools import setup, find_packages
def find_stubs(package):
stubs = []
for root, dirs, files in os.walk(package):
for f in files:
path = os.path.join(root, f).replace(package + os.sep, '', 1)
if path.endswith('.pyi') or path.endswith('py.typed'):
stubs.append(path)
return {package: stubs}
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
print("Now tag me :)")
print(" git tag -a {0} -m 'version {0}'".format(__import__('pynamodb').__version__))
print(" git push --tags")
sys.exit()
install_requires = [
'six',
'botocore>=1.12.54',
'python-dateutil>=2.1,<3.0.0',
]
setup(
name='pynamodb',
version=__import__('pynamodb').__version__,
packages=find_packages(exclude=('examples', 'tests', 'typing_tests', 'tests.integration',)),
url='http://jlafon.io/pynamodb.html',
project_urls={
'Source': 'https://github.com/pynamodb/PynamoDB',
},
author='Jharrod LaFon',
author_email='[email protected]',
description='A Pythonic Interface to DynamoDB',
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
zip_safe=False,
license='MIT',
keywords='python dynamodb amazon',
install_requires=install_requires,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
],
extras_require={
'signals': ['blinker>=1.3,<2.0'],
},
package_data=find_stubs('pynamodb'),
)