-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (46 loc) · 1.55 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
from setuptools import setup
import os, sys, re
if sys.version_info < (2, 6):
raise Exception("prep requires Python 2.6 or higher.")
if sys.version_info < (2, 7):
install_requires = ['argparse', 'ordereddict']
else:
install_requires = []
# Load the version by reading prep.py, so we don't run into
# dependency loops by importing it into setup.py
version = None
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), "prep.py")) as file:
for line in file:
m = re.search(r'__version__\s*=\s*(.+?\n)', line)
if m:
version = eval(m.group(1))
break
setup_args = dict(
name = 'prep',
version = version,
author = 'Chris Petersen',
author_email = 'geek@ex-nerd.com',
url = 'https://github.com/ex-nerd/prep',
license = 'Modified BSD',
description = 'Pre-deployment configuration parser/generator',
long_description = open('README.rst').read(),
install_requires = install_requires,
py_modules = ['prep'],
entry_points = {
'console_scripts': [
'prep = prep:prep',
],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Environment :: Console",
"Topic :: Utilities",
],
)
if __name__ == '__main__':
setup(**setup_args)