forked from pyinvoke/invoke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (68 loc) · 2.69 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
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env python
# Support setuptools only, distutils has a divergent and more annoying API and
# few folks will lack setuptools.
from setuptools import setup, find_packages
import re
import sys
# Version info -- read without importing
_locals = {}
with open('invoke/_version.py') as fp:
exec(fp.read(), None, _locals)
version = _locals['__version__']
# PyYAML ships a split Python 2/3 codebase. Unfortunately, some pip versions
# attempt to interpret both halves of PyYAML, yielding SyntaxErrors. Thus, we
# exclude whichever appears inappropriate for the installing interpreter.
exclude = ['*.yaml3' if sys.version_info[0] == 2 else '*.yaml2']
# Frankenstein long_description: version-specific changelog note + README
# (Have to take an axe to the README to remove all the doctest stuff, which
# PyPI doesn't have enabled and barfs on...sob.)
text = open('README.rst').read()
text = re.sub(r'testsetup:: .+', '::', text)
text = re.sub(r'testcleanup:: .+', '::', text)
text = re.sub(r'doctest:: .+', 'code-block::', text)
long_description = """
To find out what's new in this version of Invoke, please see `the changelog
<http://pyinvoke.org/changelog.html#{}>`_.
{}
""".format(version, text)
setup(
name='invoke',
version=version,
description='Pythonic task execution',
license='BSD',
long_description=long_description,
author='Jeff Forcier',
author_email='[email protected]',
url='http://docs.pyinvoke.org',
packages=find_packages(exclude=exclude),
entry_points={
'console_scripts': [
'invoke = invoke.main:program.run',
'inv = invoke.main:program.run',
]
},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Software Distribution',
'Topic :: System :: Systems Administration',
],
)