-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·60 lines (49 loc) · 1.68 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import find_packages
import uuid
import imp
from pip.req import parse_requirements
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
ps_meta = imp.load_source('_meta', 'ambry_ui/__meta__.py')
packages = find_packages()
tests_require = install_requires = parse_requirements('requirements.txt', session=uuid.uuid1())
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Debuggers',
'Topic :: Software Development :: Libraries :: Python Modules',
]
setup(
name='ambry-ui',
version=ps_meta.__version__,
description='Extra administration for multi-library installations',
long_description=readme,
packages=packages,
include_package_data=True,
zip_safe=False,
install_requires=[x for x in reversed([str(x.req) for x in install_requires])],
tests_require=[x for x in reversed([str(x.req) for x in tests_require])],
scripts=['scripts/run-ambryui-gunicorn'],
author=ps_meta.__author__,
author_email=ps_meta.__author__,
url='https://github.com/CivicKnowledge/ambry-ui.git',
license='BSD',
classifiers=classifiers
)