forked from sethmlarson/trytravis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (46 loc) · 2.01 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
from setuptools import setup
# Get the directory that the setup.py script is in.
base_dir = os.path.dirname(os.path.abspath(__file__))
# Gathering metadata for the package.
about = {}
with open(os.path.join(base_dir, 'trytravis.py')) as f:
for line in f:
if line.startswith('__'):
exec(line, about)
# Gather all install_requires values.
install_requires = ['requests>=2.14.0',
'colorama>=0.3.9',
'GitPython>=2.1.5']
# Find all available classifiers at:
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = ['Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing']
# Run the setup() command to build the package.
setup(name=about['__title__'],
author=about['__author__'],
author_email=about['__email__'],
license=about['__license__'],
version=about['__version__'],
description=('Send local git changes to Travis CI '
'without commits or pushes.'),
url=about['__url__'],
py_modules=['trytravis'],
install_requires=install_requires,
zip_safe=False,
classifiers=classifiers,
entry_points={'console_scripts': ['trytravis=trytravis:main']},
extras_require={':sys_platform=="win32"': ['pypiwin32>=214']})