-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·70 lines (66 loc) · 2 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
import os
import sys
import subprocess
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires=['pyramid >=1.5, < 1.6a',
'SQLAlchemy',
'transaction',
'pyramid_tm',
'pyramid_debugtoolbar',
'zope.sqlalchemy',
'waitress',
'ziggurat-foundations >= 0.5, < 0.6',
'colander',
'deform>=2.0a2',
'pyramid_chameleon',
'psycopg2',
'alembic>=0.3.4',
'pyramid_beaker',
'pytz',
'sqlalchemy-datatables == 0.1.6',
#'pyjasperclient',
'pyJasper',
'xlrd',
'paste',
]
if sys.argv[1:] and sys.argv[1] == 'develop-use-pip':
bin_ = os.path.split(sys.executable)[0]
pip = os.path.join(bin_, 'pip')
for package in requires:
cmd = [pip, 'install', package]
subprocess.call(cmd)
cmd = [sys.executable, sys.argv[0], 'develop']
subprocess.call(cmd)
sys.exit()
setup(name='osipkd',
version='0.0',
description='osipkd',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web pyramid pylons',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=requires,
test_suite="osipkd",
entry_points = """\
[paste.app_factory]
main = osipkd:main
[console_scripts]
initialize_osipkd_db = osipkd.scripts.initializedb:main
create_route_source = osipkd.scripts.CreateRouteSource:main
create_apps_source = osipkd.scripts.CreateAppsSource:main
""",
)