-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
67 lines (60 loc) · 1.82 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
from setuptools import setup
import stallion
import sys
# Stallion requirements
install_requirements = [
'Flask>=0.8',
'setuptools>=0.6c11',
'docutils>=0.8.1',
'jinja2>=2.6',
'docopt>=0.6.1',
'colorama>=0.2.5',
]
# Try to import json, only present as std module
# after Python 2.5. Fallback to simplejson insted.
try:
import json
except ImportError:
install_requirements.append('simplejson>=2.3.0')
def long_description():
if sys.version_info >= (3, 0, 0):
f = open("setup.rst", mode="r", encoding="utf-8")
else:
f = open("setup.rst", mode="r")
return f.read()
setup(
name='Stallion',
version=stallion.__version__,
url='https://github.com/perone/stallion/',
license='Apache License 2.0',
author=stallion.__author__,
author_email='[email protected]',
description='A Python Package Manager interface.',
long_description=long_description(),
packages=['stallion'],
keywords='package manager, distribution tool, stallion',
platforms='Any',
zip_safe=False,
include_package_data=True,
package_data={
'stallion': ['static/*.*', 'templates/*.*'],
},
install_requires=install_requirements,
tests_require=['nose'],
test_suite='nose.collector',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
entry_points={
'console_scripts': [
'stallion = stallion.main:run_main',
'plp = stallion.console:run_main'
],
},
)