-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
196 lines (173 loc) · 4.95 KB
/
pyproject.toml
File metadata and controls
196 lines (173 loc) · 4.95 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
[build-system]
requires = ["setuptools>=61.2", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pysepal"
version = "3.3.0"
description = "Wrapper for ipyvuetify widgets to unify the display of voila dashboards in SEPAL platform"
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",
"ipyvuetify",
"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
"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>=0.10.1", # first version with rio-tiler v7 support
"pygaul>=0.4.2", # GAUL 2024 with iso3_code and gaul0_code columns
"pygadm>=0.5.0", # use the class implementation
# miscellaneous
"python-box",
"tqdm",
"Deprecated>=1.2.14",
"anyascii", # to decode international names with non latin characters
"natsort",
"typing-extensions",
"solara",
"ee-client>=2.5.0", # supports caching
"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]
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",
"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_l10n = "pysepal.bin.module_l10n:main"
module_theme = "pysepal.bin.module_theme: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*", "sepal_ui*"]
exclude = ["docs*", "tests*"]
[tool.setuptools.package-data]
pysepal = [
"data/*",
"message/**/*",
"frontend/**/*",
"templates/**/*",
"sepalwidgets/vue/*",
"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 = "3.3.0"
version_files = [
"pyproject.toml:version",
"pysepal/__init__.py:__version__"
]
[tool.pytest.ini_options]
testpaths = "tests"
[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
[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]
skip = 'CHANGELOG.md,pysepal/message/**/*.json,pysepal/data/gaul_iso.json'
[tool.black]
line-length = 100