-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
109 lines (95 loc) · 2.39 KB
/
pyproject.toml
File metadata and controls
109 lines (95 loc) · 2.39 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
[project]
name = "physt"
version = "0.9.0"
description = "P(i/y)thon h(i/y)stograms."
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [{ name = "Jan Pipek", email = "jan.pipek@gmail.com" }]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"numpy>=1.25",
"packaging",
"typing_extensions",
"hypothesis>=6.96.1",
"click>=8.1.8",
"narwhals>=2.0.1",
"rich>=14.1.0",
]
[dependency-groups]
dev = [
"bumpver>=2025.1131",
"ipython>=8.18.1",
"mypy>=1.18.2",
"nbsphinx>=0.9.7",
"physt[all]",
"pytest>=8.4.1",
"pytest-xdist>=3.8.0",
"sphinx>=7.4.7",
"sphinx-rtd-theme>=3.0.2",
"sphinxcontrib-apidoc>=0.6.0",
]
[project.optional-dependencies]
astropy = ["astropy>=6.0"]
dask = ["dask[array]>=2023.0"]
pandas = ["pandas>=1.3"]
polars = ["polars>=1.0", "physt[pandas]"]
xarray = ["xarray"]
matplotlib = ["matplotlib>=3.0"]
plotly = ["plotly"]
# TODO: Re-enable vega?
# vega3 = ["vega3"]
folium = ["folium"]
# root = ["uproot3"] # TODO: Update to uproot4
all = [
"physt[astropy,dask,pandas,polars,xarray,matplotlib,plotly,folium]",
]
[project.scripts]
physt = "physt.cli:app"
[build-system]
requires = ["flit_core>=3.4"]
build-backend = "flit_core.buildapi"
[tool.flit.sdist]
include = [
"src/physt/examples/*.csv",
"tests/data/",
]
[tool.mypy]
# TODO: revisit
ignore_missing_imports = true
# plugins = ["numpy.typing.mypy_plugin"]
exclude = ["docs"]
[tool.isort]
profile = "black"
[tool.distutils.bdist_wheel]
universal = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
# Be a bit tolerant
# line-length = 100
extend-exclude = ["docs"]
target-version = "py39"
[tool.ruff.per-file-ignores]
"tests/*.py" = ["E402"]
[tool.bumpver]
current_version = "v0.9.0"
version_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "Bump version: {old_version} → {new_version}"
commit = false
tag = false
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
'version = "{pep440_version}"',
]
"conda/meta.yaml" = ['{% set version = "{pep440_version}" %}']