-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup.py
executable file
·51 lines (47 loc) · 1.65 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
#!/usr/bin/env python3
import os
try:
from setuptools import setup
HAVE_SETUPTOOLS = True
except ImportError:
from distutils.core import setup
HAVE_SETUPTOOLS = False
def main():
"""The main entry point."""
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'r') as f:
readme = f.read()
scripts = ['scripts/rever']
skw = dict(
name='re-ver',
description='Release Versions of Software',
long_description=readme,
license='BSD',
version='0.5.1',
author='Anthony Scopatz',
maintainer='Anthony Scopatz',
author_email='[email protected]',
url='https://github.com/scopatz/rever',
platforms='Cross Platform',
classifiers=['Programming Language :: Python :: 3'],
packages=['rever', 'rever.activities'],
package_dir={'rever': 'rever', 'rever.activities': 'rever/activities'},
package_data={'rever': ['*.xsh'], 'rever.activities': ['*.xsh']},
scripts=scripts,
zip_safe=False,
install_requires=['xonsh', 'lazyasd',
'ruamel.yaml', 'github3.py >= 2'],
python_requires=">3.4",
)
# WARNING!!! Do not use setuptools 'console_scripts'
# It validates the depenendcies everytime the
# 'rever' command is run. This validation adds ~0.2 sec. to the startup
# time of xonsh - for every single xonsh run. This prevents us from
# reaching the goal of a startup time of < 0.1 sec. So never ever write
# the following:
#
# 'console_scripts': ['rever = rever.main:main'],
#
# END WARNING
setup(**skw)
if __name__ == '__main__':
main()