forked from GeoNode/geonode
-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
226 lines (207 loc) · 12.2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#########################################################################
import os
from distutils.core import setup
from setuptools import find_packages
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
shapely_dep = "Shapely<1.5.13"
else:
shapely_dep = "Shapely>=1.5.13,<1.6.dev0"
setup(name='GeoNode',
version=__import__('geonode').get_version(),
description="Application for serving and sharing geospatial data",
long_description=open('README').read(),
classifiers=[
"Development Status :: 4 - Beta"],
keywords='',
author='GeoNode Developers',
author_email='[email protected]',
url='http://geonode.org',
license='GPL',
packages=find_packages(),
include_package_data=True,
install_requires=[
# # The commented name next to the package
# # is the Ubuntu 16.04 package that provides it
# # with version in parenthesis
# # Apps with official Ubuntu 16.04 packages
# native dependencies
"Pillow<=3.3.1", # python-imaging (3.1.2) - python-pillow (3.3.1 in our ppa)
"lxml<=3.8.0", # python-lxml (3.6.2 in our ppa) FIXME
"psycopg2<=2.7.3.1", # python-psycopg2 (2.7.3.1 in our ppa)
"Django<=1.8.19", # python-django (1.8.19 in our ppa)
# Other
"amqp<=2.2.2", # (python-amqp 2.2.2 in our ppa)
"anyjson<=0.3.3", # (python-anyjson 0.3.3 in our ppa)
"arrow==0.12.1", # (python-arrow 0.12.1 in our ppa)
"attrs==17.4.0", # (python-attrs 17.4.0 in our ppa)
"PyYAML<=3.12", # (python-pyyaml 3.12 in out ppa)
"beautifulsoup4<=4.4.1", # python-bs4 (4.4.1)
"billiard<=3.5.0.3", # (python-billiard 3.5.0.3 in our ppa)
"MultipartPostHandler<=0.1.0", # python-multipartposthandler (0.1.0)
"httplib2<=0.10.3", # python-httplib2 (0.10.3 in our ppa)
"transifex-client<=0.12.4", # transifex-client (0.11.1)
"Paver<=1.2.4", # python-paver (1.2.4)
"Unidecode<=0.4.19", # python-unidecode (0.04.19)
"django-nose<=1.4.5", # python-django-nose (1.4.5 in our ppa)
"nose<=1.3.7", # python-nose (1.3.7)
"awesome-slugify<=1.6.5", # python-awesome-slugify (1.6.5)
"django-filter==1.1.0", # python-django-filter (1.1.0 in our ppa)
"django-floppyforms<=1.7.0", # python-django-floppyforms (1.7.0 in our ppa)
"chardet<=3.0.4", # python-chardet (3.0.4 in our ppa)
"decorator<=4.1.2", # python-decorator (4.1.2 in our ppa)
"celery>4.0a0c,<=4.1.0", # python-celery (4.1.0)
"certifi<=2018.1.18", # depends on python-elasticsearch - python-certifi (2018.1.18 in our ppa)
"click==6.7", # python-click (6.7 in our ppa)
"coreapi==2.3.3", # python-coreapi (2.3.3 in our ppa)
"coreschema==0.0.4", # python-coreschema (0.0.4 in our ppa)
"autoflake<=0.7", # python-autoflake (0.7 in our ppa)
"flake8<=2.5.4", # python-flake8 (2.5.4)
"pyflakes<=1.6.0", # python-pyflakes (1.6.0 in our ppa)
"pep8<=1.7.1", # python-pep8 (1.7.1 in our ppa)
"boto<=2.38.0", # python-boto (2.38.0)
"six<1.11.0", # https://github.com/benjaminp/six/issues/210 (1.10.0 in ppa)
"diff-match-patch<=20121119", # (20121119 in ppa)
# Django Apps
"dj-pagination<=2.3.2", # python-dj-pagination (2.3.2 in our ppa)
"django-extensions>=1.2.5,<=2.0.3", # python-django-extensions (2.0.3 in our ppa)
"django-jsonfield<=1.0.1", # python-django-jsonfield (0.9.15, 1.0.1 in our ppa)
"django-jsonfield-compat<=0.4.4", # python-django-jsonfield-compat (0.4.4 in our ppa)
"django-leaflet<=0.23.0", # python-django-leaflet (0.23.0 in our ppa)
"django-taggit<=0.22.2", # python-django-taggit (0.22.1 in our ppa)
"django-mptt<=0.9.0", # django-mptt (0.9.0 in our ppa)
"django-treebeard<=4.2.1", # django-treebeard (4.2.1 in our ppa)
"django-guardian<=1.4.9", # django-guardian (1.4.9 in our ppa)
"django-downloadview<=1.9", # python-django-downloadview (1.9 in our ppa)
"django-polymorphic<2.0", # python-django-polymorphic (1.3)
"django-rest-swagger==2.1.2", # python-django-rest-swagger (2.1.2 in our ppa)
"django-reversion<=2.0.13", # python-django-reversion (2.0.13 in our ppa)
"django-suit<=0.2.26", # python-django-suit (0.2.26 in our ppa)
"django-tastypie<=0.14.0", # python-django-tastypie (0.14.0 in our ppa)
"django-invitations<=1.9.2", # python-django-invitations (1.9.2 in our ppa)
"django-oauth-toolkit>=0.10.0,<1.0", # python-django-oauth-toolkit (0.12.0 in our ppa)
# "djangorestframework<=3.7.7", # TODO
# "djangorestframework-gis<=0.12", # TODO
"drf-nested-routers==0.90.0", # python-drf-nested-routers (0.90.0 in our ppa)
"drf-openapi==1.3.0", # python-drf-openapi (1.3.0 in our ppa)
"oauthlib<=2.0.6", # python-oauthlib (2.0.6 in our ppa)
# geopython dependencies
"pyproj>=1.9.5,<=1.9.5.1", # python-pyproj (1.9.5.1)
"OWSLib>=0.10.3,<=0.15.0", # python-owslib (0.15.0 in our ppa)
"pycsw>=1.10.1,<=2.0.3", # python-pycsw (1.10.1, 2.0.0, 2.0.3 in our ppa)
"%s" % shapely_dep, # python-shapely (1.5.13)
# # Apps with packages provided in GeoNode's PPA on Launchpad.
# Django Apps
"dj-database-url<=0.4.2", # , python-dj-database-url (0.4.1 in ppa)
"Pinax<=0.9a2", # python-pinax (0.9a2 in our ppa)
# pinax-comments==0.1.1
"pinax-notifications==4.1.0", # (4.1.0 in our ppa)
"pinax-theme-bootstrap<=8.0.1", # python-pinax-theme-bootstrap (8.0.1 in our ppa)
"django-forms-bootstrap<=3.1.0", # python-django-forms-bootstrap (3.1.0 in our ppa)
"django-allauth<=0.34.0", # python-django-allauth (0.34.0 in our ppa)
"django-activity-stream<=0.6.5", # python-django-activity-stream (0.6.5 in our ppa)
"django-appconf<=1.0.2", # (1.0.2 in ppa)
"django-apptemplates==1.4", # # python-django-apptemplates (1.4 in our ppa)
"django-autocomplete-light>=2.3.3,<3.0a0", # (2.3.3.1 in ppa)
"django-autofixture<=0.12.1", # python-django-autofixture (0.12.1 in our ppa)
"django-autoslug<=1.9.3", # python-django-autoslug (1.9.3 in our ppa)
"django-braces<=1.12.0", # pytnon-django-braces (1.12.0 in our ppa)
"django-celery-beat==1.1.1", # python-django-celery-beat (1.1.1 in our ppa)
"django-celery-results==1.0.1", # python-django-celery-results (1.0.1 in our ppa)
"django-geonode-client<=1.0.0", # python-django-geonode-client (1.0.0 in our ppa)
"django-model-utils==3.1.1", # python-django-model-utils (3.1.1 in our ppa)
"django-modeltranslation>=0.11,<=0.12.2", # python-django-modeltranslation (0.12 Debian) FIXME
"django-simple-history<=1.9.0", # python-django-simple-history (1.9.0 in our ppa)
"django-import-export<=1.0.0", # python-django-import-export (1.0.0 in our ppa)
"django-js-asset<=1.0.0", # python-django-js-asset (1.0.0 in our ppa)
"django-utils<=0.0.2", # python-django-utils (0.0.2 in our ppa)
"django-basic-authentication-decorator==0.9", # python-django-basic-authentication-decorator (0.9 in our ppa)
# GeoNode org maintained apps.
"django-geoexplorer>=4.0.0,<5.0", # python-django-geoexplorer (4.0.39 in our ppa)
"geonode-user-messages<=0.1.13", # python-geonode-user-messages (0.1.13 in our ppa)
"geonode-avatar<=2.1.7", # python-geonode-avatar (2.1.7 in our ppa)
"geonode-announcements<=1.0.13", # python-geonode-announcements (1.0.13 in our ppa)
"geonode-agon-ratings<=0.3.8", # python-geonode-agon-ratings (0.3.8 in our ppa)
"geonode-arcrest>=10.0", # python-geonode-arcrest (10.2 in our ppa)
"geonode-dialogos<=0.9", # python-geonode-dialogos (0.9 in our ppa)
"gsconfig<2.0.0", # python-gsconfig (1.0.8 in our ppa)
"gn-gsimporter<2.0.0", # python-gn-gsimporter (1.0.2 in our ppa)
"gisdata>=0.5.4", # python-gisdata (0.5.4 in our ppa)
# haystack/elasticsearch, uncomment to use
"django-haystack<=2.8.0", # (2.8.0 in our ppa)
"elasticsearch<=2.4.0", # (2.4.0 in ppa)
"pyelasticsearch<=0.6.1",
# datetimepicker widget
"django-bootstrap3-datetimepicker-2==2.5.0", # python-django-bootstrap3-datetimepicker-2 (2.5.0 in our ppa)
# AWS S3 dependencies
"django-storages<=1.6.5", # python-django-storages (1.6.5 in our ppa)
# DJango Caches
"python-memcached<=1.59", # python-memcached (1.59 in our ppa)
# Contribs
"et-xmlfile<=1.0.1", # python-et-xmlfile (1.0.1 in our ppa)
"unicodecsv<=0.14.1", # python-unicodecsv (0.14.1 in our ppa)
"urllib3<=1.22",
"vine<=1.1.4", # (1.1.4 in our ppa)
"xlrd<=1.1.0", # (1.1.0 in ppa)
"xlwt<=1.3.0", # (1.3.0 in our ppa)
"xmltodict<=0.9.2", # (0.9.2 in ppa)
"funcsigs<=1.0.2", # (1.0.2 in our ppa)
"geolinks<=0.2.0", # python-geolinks (0.2.0 in ppa)
"inflection<=0.3.1" # python-inflection (0.3.1 in our ppa)
"idna<=2.6", # (2.6 in our ppa)
"ipaddress<=1.0.18", # (1.0.18 in our ppa)
"jdcal<=1.3", # (1.3 in our ppa)
"kombu<=4.1.0", # python-kombu (4.1.0 in our ppa)
"mccabe<=0.4.0", # (0.4.0 in our ppa)
"mock<=2.0.0", # (1.3.0 in ppa) FIXME
"numpy<=1.13.1", # (1.11.0 in ppa) FIXME
"odfpy<=1.3.6", # python-odfpy (1.3.6 in our ppa)
"openpyxl<=2.5.0", # (2.5.0 in our ppa)
"pbr<=3.1.1", # (1.8.0 in ppa) FIXME
"python-dateutil<=2.6.1", # (2.6.1 in our ppa)
"python-gnupg<=0.4.1", # (0.4.1 in our ppa)
"python-mimeparse<=1.6.0", # (1.6.0 in our ppa)
"pytz<=2018.3", # python-pytz (2018.3 in our ppa)
"regex<=2016.7.21", # (0.1.20160110 in ppa)
"requests<=2.18.4", # (2.18.4 in our ppa)
"simplejson<=3.13.2", # (3.13.2 in our ppa)
"tablib<=0.12.1", # (0.12.1 in our ppa)
"typing<=3.6.4", # python-typing (3.6.4 in our ppa)
"psutil", # (3.4.2 in ppa)
"django-cors-headers<=2.2.0", # python-django-cors-headers (2.2.0 in our ppa)
"django-cuser==2017.3.16", # python-django-cuser (2017.3.16 in our ppa)
"django-multi-email-field<=0.5.1", # python-django-multi-email-field (0.5.1 in our ppa)
# "WeasyPrint",
"user-agents", # python-user-agents (1.1.0 in our ppa)
"xmljson", # python-xmljson (0.1.9 in our ppa)
# tests
"coverage<=4.4.1",
"factory-boy<=2.9.2",
"Faker<=0.8.4",
"parse==1.8.2",
"parse-type==0.4.1",
"pytest==3.5.0",
"pytest-bdd==2.20.0",
"pytest-splinter==1.8.5",
"pytest-django==3.1.2",
],
zip_safe=False
)