forked from regro/rever
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·52 lines (48 loc) · 1.66 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
#!/usr/bin/env python3
import os
import sys
import ast
try:
from setuptools import setup
HAVE_SETUPTOOLS = True
except ImportError:
from distutils.core import setup
HAVE_SETUPTOOLS = False
def main():
"""The main entry point."""
if sys.version_info[:2] < (3, 4):
sys.exit('xonsh currently requires Python 3.4+')
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.2.5',
author='Anthony Scopatz',
maintainer='Anthony Scopatz',
author_email='scopatz@gmail.com',
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,
)
# WARNING!!! Do not use setuptools 'console_scripts'
# It validates the depenendcies (of which we have none) 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()