This repository was archived by the owner on Nov 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
218 lines (182 loc) · 6.88 KB
/
pyproject.toml
File metadata and controls
218 lines (182 loc) · 6.88 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
[build-system]
requires = [
"poetry-core>=1.8.0",
"poetry-dynamic-versioning>=1.9.1,<2.0",
# list dependencies to work with PIP_NO_DEPS=1
"MarkupSafe>=2.0",
"dunamai>=1.25,<2.0",
"jinja2>=3.0,<4.0",
"packaging>=24.0",
"tomlkit>=0.13",
]
build-backend = "poetry_dynamic_versioning.backend"
[project]
name = "peak-finder-app"
requires-python = '>=3.10,<4.0'
description = "Peak Finder App"
license = "MIT"
readme = "package.rst"
dynamic = ["version", "dependencies", "classifiers"]
authors = [{ name = "Mira Geoscience", email = "support@mirageoscience.com" }]
maintainers = [{ name = "Dominique Fournier", email = "dominiquef@mirageoscience.com" }]
[project.urls]
repository = "https://github.com/MiraGeoscience/peak-finder-app"
documentation = "https://mirageoscience-peak-finder-app.readthedocs-hosted.com/"
homepage = "https://www.mirageoscience.com/mining-industry-software/python-integration/"
[project.optional-dependencies]
dash = [
"dash",
"dash-daq",
"flask",
"pyqtwebengine",
"pyside2",
# Dash dependencies (needed here as they got explicitly listed for Conda)
"dash-core-components",
"dash-html-components",
"dash-table",
]
[tool.poetry]
requires-poetry = '>=2.0,<3.0'
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Natural Language :: English",
]
packages = [
{ include = "peak_finder" },
{ include = "peak_finder-assets" },
]
include = [
{ path = "COPYING" },
{ path = "COPYING.LESSER" },
{ path = "LICENSE" },
{ path = "README.rst" },
{ path = "docs/**/THIRD_PARTY_SOFTWARE.rst" },
]
version = "0.0.0.dev0"
[tool.poetry.dependencies]
dash = {version="^3.0.4", optional = true}
dash-daq = {version="*", optional = true}
# note: py-deps-clock defines custom mapping from dask to dask-core
dask = ">=2025.3, <2025.4.dev" # also in simpeg[dask]
distributed = ">=2025.3, <2025.4.dev" # for dask[distributed]
flask = {version="^3.0.3", optional = true}
numpy = "~1.26.0" # also in geoapps-utils, geoh5py
plotly = "~5.19.0"
scipy = "~1.14.0"
tqdm = "^4.66.1"
# Note about packages for pyside2 and pyqtwebengine:
# - latest version for pip packages is 5.12.2, while Conda has more recent 5.* versions
# - pip packages only exists for python < 3.11, while Conda has them for Python 3.11 and 3.12
# - limit below to Python < 3.11 is ignored by conda-lock,
# => conda-lock resolves to the latest version available in conda-forge for any Python versions
# and this dependency definition is still compatible for a pip install
pyqtwebengine = {version = ">=5.15.2, <5.16.dev", optional = true, python = "<3.11"}
pyside2 = {version = ">=5.15.2, <5.16.dev", optional = true, python = "<3.11"}
## Conda package is missing the Dash dependencies: list them explicitly
#----------------------------------------------------------------------
dash-core-components = {version = ">=2, <3.dev", optional = true}
dash-html-components = {version = ">=2, <3.dev", optional = true}
dash-table = {version = ">=5, <6.dev", optional = true}
## Pip dependencies from Git repositories
#----------------------------------------
#geoh5py = {version = ">=0.12.0a, <0.13.dev", source = "pypi", allow-prereleases = true} # also in geoapps-utils
geoh5py = {git = "https://github.com/MiraGeoscience/geoh5py.git", rev = "develop"}
#geoapps-utils = {version = ">=0.6.0a, <0.7.dev", source = "pypi", allow-prereleases = true}
geoapps-utils = {git = "https://github.com/MiraGeoscience/geoapps-utils.git", rev = "develop"}
#curve-apps = {version = ">=0.3.0a, <0.4.dev", source = "pypi", allow-prereleases = true}
curve-apps = {git = "https://github.com/MiraGeoscience/curve-apps.git", rev = "develop"}
## about pip dependencies
# to be specified to work with conda-lock
# - from PyPI: my_package = { version = "1.2.3", source = "pypi" }
# - from URL: !!! no actual lock, as tag or branch can move and installation will fetch current !!!
# - for a tag: my_package = { url = "https://github.com/ORGANISATION/REPO/archive/refs/tags/TAG.tar.gz" }
# - for a branch: my_package = { url = "https://github.com/ORGANISATION/REPO/archive/refs/heads/BRANCH.tar.gz" }
# - to actually lock on a revision: my_package = { git = "https://github.com/ORGANISATION/REPO.git", rev = "GIT_REV" }
# (where rev value is a tag, a branch name or a commit hash). Can also use ``branch`` or ``tag`` instead of ``rev``
[tool.poetry.group.dev.dependencies]
Pygments = "*"
pylint = "*"
pytest = "*"
pytest-cov = "*"
pyyaml = '*'
jinja2 = '*'
packaging = '*'
readthedocs-sphinx-ext = "*"
sphinx = "^5.0"
tomli = "*" # for tests only
[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.9.1,<2.0.0", extras = ["plugin"] }
[tool.poetry-dynamic-versioning]
bump = true
enable = true
fix-shallow-repository = true
strict = true
style = "pep440"
vcs = "git"
[tool.poetry-dynamic-versioning.substitution]
files = ["peak_finder/_version.py", "recipe.yaml"]
patterns = [
{ value = '''(^__version__\s*(?::.*?)?=\s*['"])[^'"]*(['"])''', mode = "str" },
{ value = '''(^\s*version\s*(?::.*?)?:\s*['"])[^'"]*(['"])''', mode = "str" },
]
[tool.poetry-dynamic-versioning.files."peak_finder/_version.py"]
persistent-substitution = true
initial-content = """
# Version placeholder that will be replaced during substitution
__version__ = "0.0.0"
"""
[tool.poetry-dynamic-versioning.files."recipe.yaml"]
persistent-substitution = true
[tool.ruff.lint]
ignore = [
"F401", # unsused-import - covered by pycln
]
[tool.conda-lock]
platforms = ['win-64', 'linux-64']
channels = ['conda-forge']
[tool.conda-lock.dependencies]
libblas = "*=*mkl" # because simpeg already brings in the MKL
## indirect dependencies, forcing them here for installation through Conda not pip
#---------------------------------------------------------------------------------
h5py = ">=3.2.1, <4.0.dev" # from geoh5py
Pillow = ">=10.3.0, <10.4.dev" # from geoh5py
pydantic = ">=2.5.2, <3.0.dev" # from geoh5py, curve-apps, geoapps-utils
scikit-image = ">=0.24.0, <0.25.dev" # from curve-apps, also used by geo-unsup-mapper
[tool.isort]
profile = "black"
[tool.black]
# defaults are just fine
[tool.mypy]
warn_unused_configs = true
ignore_missing_imports = true
scripts_are_modules = true
show_error_context = true
show_column_numbers = true
check_untyped_defs = true
plugins = [
# "numpy.typing.mypy_plugin"
]
[tool.pytest.ini_options]
#addopts =
[tool.coverage.run]
branch = true
source = ["peak_finder"]
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"pass",
"if TYPE_CHECKING",
"pragma: no cover"
]
fail_under = 75
[tool.coverage.html]
skip_empty = true
skip_covered = true