-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
61 lines (56 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
import os
from subprocess import check_output, CalledProcessError
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
try:
gv = check_output(['gdal-config', '--version']).strip()
except CalledProcessError:
gv = None
requires = [
'pyramid',
'pyramid_mako',
'SQLAlchemy==0.8.7',
'transaction',
'pyramid_tm',
'pyramid_debugtoolbar',
'zope.sqlalchemy==0.7.6',
'waitress',
'psycopg2',
'GeoAlchemy',
'pygdal' + (('>=' + gv + '.0,<=' + gv + '.9999') if gv else ''),
'shapely',
'Pillow',
'sphinx',
'pypandoc',
'python-docx'
]
setup(name='nextgisbio',
version='0.10',
description='nextgisbio',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='NextGIS',
author_email='[email protected]',
url='https://github.com/nextgis/nextgisbio',
keywords='web pyramid nextgis biodiversity GIS',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite='nextgisbio',
install_requires=requires,
entry_points="""\
[paste.app_factory]
main = nextgisbio:main
[console_scripts]
initialize_ngbio_db = nextgisbio.scripts.initializedb:main
dump_ngbio_db = nextgisbio.scripts.dump:main
verify_data_by_csv = nextgisbio.scripts.verify_data_by_csv:main
""",
)