forked from cedadev/esgf-slcs-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (48 loc) · 1.74 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
#!/usr/bin/env python2.7
import os, re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
try:
import esgf_slcs_server.__version__ as version
except ImportError:
# If we get an import error, find the version string manually
version = "unknown"
with open(os.path.join(here, 'esgf_slcs_server', '__init__.py')) as f:
for line in f:
match = re.search('__version__ *= *[\'"](?P<version>.+)[\'"]', line)
if match:
version = match.group('version')
break
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
if __name__ == "__main__":
setup(
name = 'esgf-slcs-server',
version = version,
description = 'SLCS server for ESGF',
long_description = README,
classifiers = [
"Programming Language :: Python",
"Framework :: Django",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author = 'Matt Pryor',
author_email = 'matt.pryor@stfc.ac.uk',
url = 'http://esgf.llnl.gov/',
keywords = 'web django esgf slcs oauth',
packages = find_packages(),
include_package_data = True,
zip_safe = False,
install_requires = [
# At the moment, we are on Python 2.7, so we need to have Django <2
# We are also stuck on Postgresql 8, which means <1.11
'django<1.11',
# That means we need to restrict the django-oauth-toolkit version too
'django-oauth-toolkit<1.1.0',
'django-onlineca',
'psycopg2',
'django-bootstrap3',
'passlib',
],
)