-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·38 lines (33 loc) · 1.18 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
import sys
from setuptools import setup, find_packages
PYTHON_MAJOR_MINOR = '%s.%s' % (sys.version_info[0], sys.version_info[1])
# Django 1.8.0 requires Python >= 2.7
if PYTHON_MAJOR_MINOR < '2.7':
DJANGO_REQUIRES = 'django >=1.4.0, <1.8.0'
else:
DJANGO_REQUIRES = 'django>=1.4.0'
# semantic_version and m2crypto no longer install via pip on el5,
# and need to be pinned to the highest known working version in py2.4
if PYTHON_MAJOR_MINOR > '2.4':
SEMVER_REQUIRES = 'semantic_version>=2.2.0'
M2CRYPTO_REQUIRES = 'm2crypto'
else:
SEMVER_REQUIRES = 'semantic_version>=2.2.0,<2.5'
M2CRYPTO_REQUIRES = 'm2crypto<0.24'
setup(
name='pulp-server',
version='2.9.0b1',
license='GPLv2+',
packages=find_packages(exclude=['test']),
author='Pulp Team',
author_email='[email protected]',
entry_points={
'console_scripts': [
'pulp-manage-db = pulp.server.db.manage:main',
]
},
install_requires=[
'blinker', 'celery >=3.1.0, <3.2.0', 'httplib2', 'iniparse', 'isodate>=0.5.0',
'mongoengine>=0.10.0', 'oauth2>=1.5.211', 'pymongo>=3.0.0', 'setuptools',
DJANGO_REQUIRES, SEMVER_REQUIRES, M2CRYPTO_REQUIRES],
)