-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (44 loc) · 1.82 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
import os
import sys
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requirements = ['marshmallow']
if sys.argv[-1] == 'publish-test':
os.system(f"cd {os.path.dirname(__file__)}")
os.system('rm -rf dist/ build/ schadem-tidp-manifest.egg-info/')
os.system('python setup.py sdist bdist_wheel')
os.system('twine check dist/*')
os.system('twine upload --repository pypitest dist/*')
sys.exit()
if sys.argv[-1] == 'publish':
os.system(f"cd {os.path.dirname(__file__)}")
os.system('rm -rf dist/ build/ schadem-tidp-manifest.egg-info/')
os.system('python setup.py sdist bdist_wheel')
os.system('twine check dist/*')
os.system('twine upload --repository pypi dist/*')
sys.exit()
setup(name='schadem-tidp-manifest',
packages=find_packages(exclude=['tests']),
include_package_data=True,
exclude_package_data={"": ["test_*.py", "__pycache__"]},
version='0.0.9',
description='Amazon Textract IDP Manifest',
install_requires=requirements,
extras_require={'testing': ['pytest']},
long_description_content_type='text/markdown',
long_description=read('README.md'),
author='Amazon Rekognition Textract Demoes',
author_email='[email protected]',
url='https://github.com/schadem/schadem-tidp-manifest/tree/mainline',
keywords='textract manifest',
license="Apache License Version 2.0",
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Utilities",
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
python_requires='>=3.7')