forked from juju/juju-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (44 loc) · 1.63 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
# PipSession is not available in older pips.
try:
from pip.download import PipSession
except ImportError:
# Precise has an old version of pip that lacks PipSession.
PipSession = None
from pip.req import parse_requirements
from setuptools import setup, find_packages
if PipSession is not None:
pip_session = PipSession()
kwargs = dict(session=pip_session)
else:
# The parse_requirements in the precise version of pip is broken
# and requires options.skip_requirements_regex to be present.
from collections import namedtuple
options = namedtuple('Options', 'skip_requirements_regex')
kwargs = dict(options=options(skip_requirements_regex=None))
requirements = parse_requirements("requirements.txt", **kwargs)
test_requirements = parse_requirements("test-requirements.txt", **kwargs)
install_requires = [str(req.req) for req in requirements]
tests_require = [str(req.req) for req in test_requirements]
setup(name='jujugui',
version='2.1.7',
description='jujugui',
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='Juju UI Engineering Team',
url='http://github.com/juju/juju-gui',
packages=find_packages(),
include_package_data=True, # Refer to MANIFEST.in
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
test_suite="jujugui",
entry_points="""\
[paste.app_factory]
main = jujugui:main
test = jujugui.test:main
""",
)