-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
160 lines (142 loc) · 4.65 KB
/
pyproject.toml
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
[tool.poetry]
name = "ckanext-saeoss"
version = "0.1.0"
description = "A CKAN extension that implements SA SAEOSS"
authors = ["Ricardo Garcia Silva <[email protected]>"]
license = "mit"
packages = [
{ include = "ckanext" },
]
[tool.poetry.scripts]
docker_entrypoint = "ckanext.saeoss.cli.docker_entrypoint:cli"
[tool.poetry.plugins."ckan.plugins"]
saeoss = "ckanext.saeoss.plugins.saeoss_plugin:SaeossPlugin"
saeoss_harvesting = "ckanext.saeoss.plugins.harvesting_plugin:HarvestingPlugin"
[tool.poetry.plugins."babel.extractors"]
ckan = "ckan.lib.extract:extract_ckan"
[tool.poetry.dependencies]
python = "^3.8"
pyOpenSSL = "==23.0.0"
cryptography = "==39.0.0"
# NOTE1: When updating this file manually, also be sure to run
# `poetry update --lock` to also update poetry's lock file
# NOTE2: Below are ckan 2.9.4 dependencies.
# ckan does not list its dependencies on the setup.py `install_requires`
# field, which means it cannot just be installed by getting the code and
# using pip install. Therefore we install the dependencies ahead of
# We are not using the exact set of
# dependencies specified in ckan's `ckan-2.9.4` release tag, but rather those
# coming from a more recent version of ckan's `master` branch - specifically
# from:
# - https://github.com/ckan/ckan/commit/c95ca83ad90887999bbbafe6d43cb7f81ecbec00
# - https://github.com/ckan/ckan/commit/5d8b1dc9da3a90ba95480fe379e3d642d8d74853
# - https://github.com/ckan/ckan/commit/472af3bf5a40cfa7ab23cee337462c18c7cf2060
# The reason for this behavior is to overcome some dificulties when installing
# the `zope.interface` dependency that was specified in ckan's `requirements.in`
# file of the 2.9.4 tag. This version was causing ckan to depend on an older
# version of setuptools, which poetry was not being able to sort out correctly
alembic = "1.6.5"
Babel = "2.7.0"
Beaker = "1.11.0"
bleach = "3.1.4"
click = "8.0.1"
dominate = "2.6.0"
fanstatic = "1.1"
feedgen = "0.9.0"
Flask = "2.0.1"
Flask-Babel = "1.0.0"
pytest-ckan = "0.0.11"
Pylons = "1.0.3"
flask-multistatic = "1.0"
Jinja2 = "3.0.1"
PyJWT = "2.1.0"
Markdown = "3.3.4"
passlib = "1.7.4"
polib = "1.1.1"
psycopg2 = "2.9.1"
python-magic = "0.4.24"
pysolr = "3.6.0"
python-dateutil = "2.8.1"
pytz = "2021.1"
PyUtilib = "6.0.0"
pyyaml = "5.4.1"
"repoze.who" = "2.3"
requests = "2.27.1"
Routes = "1.13"
rq = "1.9.0"
simplejson = "3.17.2"
sqlparse = "0.4.1"
tzlocal = "2.1"
unicodecsv = "0.14.1"
watchdog = "2.1.5"
webassets = "2.0"
Werkzeug = {extras = ["watchdog"], version = "2.0.1"}
"zope.interface" = "5.4.0" # changed by us to allow poetry to build
# ckan harvest plugin dependencies
ckantoolkit = "0.0.7"
pika = "^1.1.0"
redis = "3.5.3"
six = "^1.12.0"
ckanext-harvest = {git = "https://github.com/ckan/ckanext-harvest.git", rev = "v1.4.0"}
# ckanext spatial v1.0.0 dependencies
# lxml and pyproj versions have been changed to workaround
# a poetry issue when installing the packages
GeoAlchemy2 = "0.5.0"
lxml = "4.6.3"
OWSLib = "0.18.0"
pyparsing = "^2.1.10"
pyproj = "3.2.1"
Shapely = "^1.2.13"
stac-validator = "3.3.2"
ckanext-spatial = {git = "https://github.com/ckan/ckanext-spatial", rev = "v2.0.0"}
# ckanext-geoview v0.0.18 dependencies are already met (requests, ckantoolkit)
ckanext-geoview = {git = "https://github.com/ckan/ckanext-geoview.git", rev = "v0.0.18"}
numpy = "1.22.1"
gunicorn = "^20.1.0"
Flask-DebugToolbar = "^0.11.0"
ckanext-scheming = {git = "https://github.com/ckan/ckanext-scheming.git", rev = "release-3.0.0"}
httpx = "^0.22.0"
python-slugify = "^6.1.1"
langcodes = {git = "https://github.com/rspeer/langcodes.git", rev = "v3.2.1"}
pystac-client = "0.6.1"
rasterio = "*"
pystac = "1.7.0"
jsonschema = "4.17.3"
odc-stac = "*"
dask = "1.2.2"
folium = "0.14.0"
geopandas = "0.13.2"
xmltodict = "0.13.0"
odc-algo = "*"
matplotlib = "*"
mapclassify = "*"
geojson = "*"
flask-login = "^0.6.3"
flask-wtf = "1.2.1"
ckan = {git = "https://github.com/ckan/ckan.git", rev = "ckan-2.9.11"}
sqlalchemy = "1.3.5"
ckanext-pages = {git = "https://github.com/ckan/ckanext-pages.git", rev = "v0.3.7"}
[tool.poetry.dev-dependencies]
ipython = "^7.28.0"
pytest = "^6.2.5"
pytest-cov = "^3.0.0"
factory-boy = "^3.2.0"
mock = "^4.0.3"
pytest-raises = "^0.11"
mypy = "^0.931"
types-setuptools = "^57.4.9"
types-python-dateutil = "^2.8.9"
types-python-slugify = "^5.0.3"
types-PyYAML = "^6.0.8"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
markers = [
"unit: Unit tests (which are fast to run and do not require CKAN DB)",
"integration: Integration tests (which are slower to run and require CKAN DB)"
]
addopts = "--verbose --exitfirst"
filterwarnings = "ignore::DeprecationWarning"
[tool.mypy]
ignore_missing_imports = true