-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
55 lines (45 loc) · 1.46 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
#!/usr/bin/env python
import os
import shutil
import sys
import jeffy
from setuptools import Command, find_packages, setup
if sys.argv[-1] == "publish":
os.system("python setup.py sdist bdist_wheel upload")
sys.exit()
class UploadCommand(Command):
def run(self):
try:
cwd = os.path.join(os.path.abspath(os.path.dirname(__file__)))
shutil.rmtree(os.path.join(cwd, 'dist'))
except FileNotFoundError:
pass
os.system('twine upload dist/*')
os.system('git tag v{0}'.format(jeffy.__version__))
os.system('git push --tags')
sys.exit()
setup_options = dict(
name='jeffy',
version=jeffy.__version__,
description='Event and Contract Driven Serverless "Application" Framework',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Masashi Terui',
author_email='[email protected]',
url='https://github.com/marcy-terui/jeffy',
packages=find_packages(exclude=['tests*', 'lambda_function']),
install_requires=[],
license="MIT License",
classifiers=[
'Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
keywords='aws lambda serverless faas',
cmdclass={
'upload': UploadCommand,
},
)
setup(**setup_options)