-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·52 lines (43 loc) · 1.36 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
import os
import sys
import codecs
from setuptools import setup
import versioneer
try:
# Python 3
from os import dirname
except ImportError:
# Python 2
from os.path import dirname
here = os.path.abspath(dirname(__file__))
with open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
if sys.argv[-1] == "publish":
from awsjar import __version__
os.system("python setup.py sdist")
os.system(
f"python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/awsjar-{__version__}.tar.gz"
)
sys.exit()
setup(
name="awsjar",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Jar make it easy to store the state of your AWS Lambda functions.",
long_description=long_description,
long_description_content_type='text/markdown',
packages=["awsjar"],
url="https://github.com/ysawa0/awsjar",
license="Apache 2.0",
author="Yuki Sawa",
author_email="[email protected]",
install_requires=["boto3"],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Natural Language :: English",
],
)