-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (61 loc) · 1.96 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
63
64
65
66
67
68
#!/usr/bin/env python
# -*- coding: latin-1 -*-
# __
# /\ \
# __ __ __ ____ \_\ \
# /'_ `\ /'__`\ /'__`\ /',__\ /'_` \
# /\ \L\ \/\ \L\.\_/\ __//\__, `/\ \L\ \
# \ \____ \ \__/.\_\ \____\/\____\ \___,_\
# \/___L\ \/__/\/_/\/____/\/___/ \/__,_ /
# /\____/
# \_/__/
import os
import sys
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, 'gaesd', '__version__.py')) as f:
exec (f.read(), about)
# 'setup.py publish' shortcut.
if sys.argv[-1] == 'publish':
version = about['__version__']
print("Tagging release as: {v}".format(v=version))
os.system("git tag -a {v} -m 'version {v}'".format(v=version))
os.system('git push --tags')
os.system('python setup.py bdist_wheel')
os.system('twine upload dist/*')
sys.exit()
elif sys.argv[-1] == 'test':
os.system('make test')
sys.exit()
requires = [
'six',
'pip',
'enum34',
'google_api_python_client',
'oauth2client',
]
setup(
name=about['__title__'],
version=about['__version__'],
description=about['__description__'],
author=about['__author__'],
author_email=about['__author_email__'],
url=about['__url__'],
packages=['gaesd', 'gaesd/core', 'gaesd/core/dispatchers'],
license=about['__license__'],
requires=requires,
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)