-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
213 lines (198 loc) · 5.43 KB
/
Copy pathpyproject.toml
File metadata and controls
213 lines (198 loc) · 5.43 KB
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
# BUILD
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
# Information required for building (sdist/wheel)
## Also renders on pypi as 'subtitle'
[project]
name = "georama"
dynamic = ["version"]
description = "The habitat of geoanimals"
authors = [
{name="Clemens Rudert", email="clemens@opengis.ch"}
]
requires-python = ">=3.11"
maintainers = [
{name="Clemens Rudert", email="clemens@opengis.ch"}
]
# license = "AGPL-3.0-only"
urls.Tracker = "https://github.com/georama/issues"
urls.CI = "https://github.com/opengisch/georama/actions"
urls.Documentation = "https://opengisch.github.io/georama"
urls.Source = "https://github.com/opengisch/georama"
urls.Changelog = "https://github.com/opengisch/georama/blob/master/CHANGELOG.md"
urls.Contributing = "https://github.com/opengisch/georama/blob/master/CONTRIBUTING.md"
keywords = [
"python package",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Natural Language :: English",
"Operating System :: Unix",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed"
]
### Dependency Constraints, aka Requirements ###
dependencies = [
# cli tooling
"click==8.3.3",
"psycopg[binary,pool]",
# pygeoapi and its friends
"pygeoapi==0.21.0",
"geoalchemy2",
# django stuff
"django[argon2]==5.2.16",
"django-jazzmin==3.0.4",
"django-configurations==2.5.1",
"xsdata[lxml]==26.2",
"async-timeout==4.0.3",
"redis==5.0.8",
"qgis_server_light @ git+https://github.com/opengisch/qgis-server-light.git@master",
"numpy==2.2.5",
"django-crispy-forms",
"crispy-bootstrap5",
"uvicorn==0.44.0",
"whitenoise==6.11.0",
# deps for webgis
"django-allauth[socialaccount]==65.16.1",
"django-cors-headers==4.9.0",
"django-treebeard==4.8.0",
"django-admin-sortable2==2.3.1",
"django-simple-history==3.11.0",
"django-extensions==3.2.3",
# prod-server deps
"gunicorn==26.0.0",
# qfield_link deps
"qfieldcloud-sdk==0.15.0"
]
optional-dependencies.system =[
# If the system doesn't ship any python bindings for gdal or psycopg which are
# compatible with the python interpreter in use, this optional deps can be installed,
# assuming that compiler and development libs for libpq and libgdal are present on the system
"gdal",
]
# DEV: deps
optional-dependencies.dev =[
"debugpy",
"python-lsp-server[all]",
"pylsp-mypy",
"pylsp-rope",
"ruff",
"pyprof2calltree",
]
optional-dependencies.dev_xsd =[
# to derive dataclasses from xsd schemas
"xsdata[cli,soap]==26.2",
]
# Test: packages imported in test code and packages required for the "test runner"
optional-dependencies.test = [
"pytest-django",
"pytest==9.0.3",
"pytest-cov[toml]==5.0.0",
"pytest-explicit==1.0.1",
"pytest-xdist==3.5.0",
"pytest-click==1.1.0",
"pytest-run-subprocess==0.10.0",
"pyroma==4.2",
"twine==6.1.0",
"pillow==12.3.0"
]
# Type Checking
optional-dependencies.check =[
"mypy==1.8.0",
"pyroma==4.2",
"twine==6.1.0",
]
# Docs: dev and build dependencies
optional-dependencies.docs = [
"mkdocs==1.6.1",
"mkdocs-macros-plugin==1.0.5",
"mkdocs-material==9.5.34",
"mkdocs-mermaid2-plugin==1.1.1",
"mkdocs-section-index==0.3.8",
"mkdocs-gen-files==0.5.0",
"mkdocstrings==0.28.2",
"mkdocstrings-python==1.16.2",
"mkdocs-literate-nav==0.6.1",
"mkdocs-autorefs==1.4.0",
"pymdown-extensions==10.5",
"mkdocs-click==0.8.1",
"griffe==1.2.0"
]
[tool.setuptools.dynamic]
version = {attr = "georama.__version__"} # any module attribute compatible with ast.literal_eval
readme = {file = ["README.md", "CHANGELOG.md"]}
[tool.setuptools.packages.find]
where = ["src"]
# TOOLS
[tool.pytest.ini_options]
minversion = "6.2"
DJANGO_SETTINGS_MODULE = "georama.core.settings"
DJANGO_CONFIGURATION = "Test"
addopts = "--strict-markers"
markers = [
"slow: Marks a slow test",
"integration: Integration Tests",
"network_bound: Require internet connection",
]
testpaths = [
"tests",
]
explicit-only = [
"integration",
"network_bound",
]
python_files = ["test_*.py"]
[tool.coverage.paths]
source = [
"src/georama"
]
[tool.coverage.run]
branch = true
omit = [
"src/georama/**/migrations/*",
"src/georama/maps/interfaces/**/*"
]
[tool.coverage.report]
show_missing = true
precision = 2
omit = [
"src/georama/**/migrations/*",
"src/georama/maps/interfaces/**/*"
]
exclude_lines = [
"raise NotImplementedError",
"raise NotImplemented"
]
fail_under = 13
[tool.software-release]
version_variable = "src/georama/__init__.py:__version__"
[tool.ruff]
line-length = 95
target-version = "py313"
exclude = [
"src/georama/maps/interfaces/**",
"src/georama/*/migrations/**",
"tests/**",
]
fix = true
show-fixes = true
select = [
"E", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade replacement
"B", # bugbear
"SIM", # simplify
"I", # isort
]
fixable = ["ALL"]