Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
220 lines (197 loc) · 6.33 KB
/
Copy pathpyproject.toml
File metadata and controls
220 lines (197 loc) · 6.33 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
214
215
216
217
218
219
220
[build-system]
requires = ["setuptools>=61.2", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pysepal"
version = "4.2.0"
description = "UI toolkit for building ipyvuetify and Solara dashboards, with first-class SEPAL integration"
keywords = ["UI", "Python", "widget", "sepal"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.10"
dependencies = [
# building widgets
"tomli",
"ipykernel",
# 3.0 drops widgets sepalwidgets subclasses (CalendarDaily); below 1.8 there is
# no _version.semver, which pysepal imports at startup. A cap alone lets a
# crowded solve fall through to 0.1.x.
"ipyvuetify>=1.8,<3",
"markdown",
"ipyleaflet>=0.14.0", # to have access to data member in edition
# earthengine management
"earthengine-api>1.6.0",
# to create a module
"colorama",
"pipreqs",
# read local data
"rasterio", # read raster metadata and prepare COGs for the tile server
"rioxarray",
"dask", # used by rioxarray in the inspector
"geopandas>=0.14.0",
"matplotlib",
"jupyter-server-proxy", # required for localtileserver
"planet>=2.0,<3.0",
"pyarrow",
"localtileserver>=1.0.0", # first version with the colormap registry add_raster needs
"pygaul>=0.4.2", # GAUL 2024 with iso3_code and gaul0_code columns
"pygadm>=0.5.0", # use the class implementation
# miscellaneous
"babel>=2.17,<3",
"python-box",
"tqdm",
"Deprecated>=1.2.14",
"anyascii", # to decode international names with non latin characters
"natsort",
"typing-extensions",
"pydantic", # SepalHeaders validation and the PYSEPAL_DEV_AUTH interlock
"solara>=1.64.1,<2", # changing this? read docs/guides/solara-upstream.md first
"ee-client>=3.4.0,<4", # tasks.cancel_task_async (ee-client#47)
"pysepal-api>=0.3.0,<0.4", # UI-free SEPAL HTTP client (SepalClient: files/tasks/recipes); 0.x: a minor is a breaking release, so cap it
"colorlog",
"reactivex"
]
[[project.authors]]
name = "Pierrick Rambaud"
email = "pierrick.rambaud49@gmail.com"
[project.license]
text = "MIT"
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.urls]
Homepage = "https://github.com/openforis/pysepal"
Download = "https://github.com/openforis/pysepal/archive/v_${metadata:version}.tar.gz"
[project.optional-dependencies]
# demo_apps/ only -- nothing here ships in the wheel. vectortileserver also
# needs the tippecanoe binary, which pip cannot provide: conda-forge has it.
demos = [
"vectortileserver>=0.2.1",
"ipecharts>=1.4.2", # the charting library the guides standardise on; solara_chart_app only
]
dev = [
"pre-commit>=2.18.0",
"commitizen",
"nox",
"tomli",
"jupyter",
"voila",
"mypy",
"colorlog"
]
test = [
"pytest",
"pytest-asyncio",
"pytest-sugar",
"pytest-icdiff",
"pytest-cov",
"pytest-deadfixtures",
"pytest-rerunfailures",
"Flake8-pyproject",
"nbmake",
"pytest-regressions",
"tomli",
"colorlog"
]
doc = [
"sphinx",
"jupyter-sphinx",
"pydata-sphinx-theme",
"sphinx-notfound-page",
"sphinx-copybutton",
"m2r2>=0.3.3",
"sphinxcontrib-autoprogram",
"sphinx-favicon>=1.0.1",
"tomli",
"lxml_html_clean",
]
[project.scripts]
module_deploy = "pysepal.bin.module_deploy:main"
module_factory = "pysepal.bin.module_factory:main"
module_venv = "pysepal.bin.module_venv:main"
activate_venv = "pysepal.bin.activate_venv:main"
sepal_ipyvuetify = "pysepal.bin.sepal_ipyvuetify:main"
entry_point = "pysepal.bin.entry_point:main"
[tool.setuptools]
include-package-data = false
license-files = ["LICENSE.txt"]
[tool.setuptools.packages.find]
include = ["pysepal*"]
exclude = ["docs*", "tests*"]
[tool.setuptools.package-data]
pysepal = [
"data/*",
"message/**/*",
"frontend/**/*",
"templates/**/*",
"**/*.vue",
"**/*.css",
"solara/common/assets/*",
"templates/**/.*"
]
[tool.commitizen]
changelog_file = "CHANGELOG.md"
changelog_incremental = true
tag_format = "v$major.$minor.$patch$prerelease"
update_changelog_on_bump = false
version = "4.2.0"
version_files = [
"pyproject.toml:version",
"pysepal/__init__.py:__version__",
".claude-plugin/plugin.json:version",
".claude-plugin/marketplace.json:version",
"skills/pysepal/SKILL.md:documents pysepal",
"skills/pysepal-app/SKILL.md:documents pysepal"
]
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "-m 'not gee'"
markers = [
"unit: fast tests with no external services (default)",
"gee: tests that require a live Google Earth Engine session",
]
[tool.ruff]
ignore-init-module-imports = true
fix = true
select = ["E", "F", "W", "I", "D", "RUF"]
ignore = [
"E501", # line too long | Black take care of it
"W605", # invalid escape sequence | we escape specific characters for sphinx
"D200", # One-line docstring should fit on one line | too late
"D101", # Missing docstring in public class | set it in __init__
"D417", # Missing argument descriptions in the docstring | seems buggy TODO
]
# init file are here to hide the internal structure to the user of the lib
exclude = ["*/__init__.py", "docs/source/conf.py", "tests/**/*.yml"]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"*/__init__.py" = ["F403"] # unable to detect undefined names | hide internal structure
"setup.py" = ["D100"] # nothing to see there
"tests/**/*.py" = ["D102", "D103"] # test methods and functions don't need docstrings
[tool.coverage.run]
source = ["pysepal"]
omit = [
"pysepal/*/__init__.py",
"pysepal/scripts/messages.py",
"pysepal/reclassify/parameters.py",
]
[tool.doc8]
ignore = ["D001"] # we follow a 1 line = 1 paragraph style
ignore-path-errors = ["docs/source/index.rst;D000"]
[tool.licensecheck]
using = "PEP631:test;dev;doc"
[tool.codespell]
# Translation catalogs are not English, so its dictionary does not apply.
skip = 'CHANGELOG.md,pysepal/message/**/*.json,demo_apps/**/message/**/*.json,pysepal/data/gaul_iso.json'
[tool.black]
line-length = 100