Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (138 loc) · 4.77 KB
/
Copy pathpyproject.toml
File metadata and controls
151 lines (138 loc) · 4.77 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
[build-system]
requires = ["setuptools>=78.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "eagleplot"
dynamic = ["version"]
description = "A general-purpose Python toolkit for scientific data visualization and analysis"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [
{ name = "Jonathan D. Schultz", email = "jschult3@nccu.edu" },
]
keywords = ["visualization", "plotting", "science", "chemistry", "matplotlib", "plotly", "streamlit"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Chemistry",
]
requires-python = ">=3.9,!=3.9.7"
dependencies = [
"numpy>=1.24.0",
"scipy>=1.10.0",
"pandas>=2.0.0",
"matplotlib>=3.7.0",
"seaborn>=0.12.0",
"plotly>=5.14.0",
"streamlit>=1.49.0",
"openpyxl>=3.1.0",
"PyYAML>=6.0",
# tomllib is stdlib from 3.11; needed by the Settings page on 3.9/3.10.
'tomli>=2.0.0; python_version < "3.11"',
]
[project.optional-dependencies]
# Optional instrument/scientific formats the GUI advertises. Installed by the
# setup scripts so a student gets the documented 18 formats. See audit A-37.
formats = [
"h5py>=3.0.0",
"xarray>=0.20.0",
"netcdf4>=1.6.0",
"jcamp>=1.2",
]
# NIST WebBook IR fetching (eagleplot.nist). Imported lazily with a helpful
# message, so it is genuinely optional rather than a hard dependency.
nist = [
"requests>=2.28.0",
]
# Documentation site build (build_docs.py). Sphinx and furo were removed with the
# unbuilt Sphinx setup they served -- see audit A-13.
docs = [
"markdown>=3.5",
]
# Only what running the test suite needs. Deliberately separate from `dev`: the test
# matrix spans Python 3.9-3.12, and the lint tools pinned in `dev` have their own,
# higher Python floors (mypy 2.3 requires >=3.10). Installing `dev` in the test job
# made the Python 3.9 cell fail while resolving lint tooling it never runs.
# The test matrix must install `[test,...]`, never `[dev,...]`.
test = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
]
dev = [
"eagleplot[test]",
# ruff and mypy are pinned exactly: both gate CI, and both add new checks in
# minor releases, so an unpinned floor means CI can turn red with no code
# change. Dependabot's `dev-tools` group bumps these. See audit A-10.
# NOTE: these pins constrain the Python versions `dev` can install on. Keep them
# out of anything the 3.9 test cell installs.
"ruff==0.17.3",
"mypy==2.4.1",
"types-PyYAML>=6.0.12.20250915",
"types-requests>=2.28.0",
"build>=1.4.3",
"twine>=5.0.0",
]
# Everything a user (not a contributor) might want, in one extra.
all = [
"eagleplot[formats,nist]",
]
[project.scripts]
eagleplot = "eagleplot.cli:main"
[project.urls]
Homepage = "https://github.com/The-Schultz-Lab/eagleplot"
Repository = "https://github.com/The-Schultz-Lab/eagleplot"
Documentation = "https://the-schultz-lab.github.io/eagleplot/"
"Bug Tracker" = "https://github.com/The-Schultz-Lab/eagleplot/issues"
Changelog = "https://github.com/The-Schultz-Lab/eagleplot/blob/main/CHANGELOG.md"
# Single source of truth: eagleplot/__init__.py. See audit A-26.
[tool.setuptools.dynamic]
version = {attr = "eagleplot.__version__"}
# Runtime assets must be declared explicitly or the wheel ships only .py files,
# leaving a pip-installed GUI with no logo, theme, example data or gallery.
# See audit A-09 / mediator G-012.
[tool.setuptools.package-data]
eagleplot = [
"assets/*.png",
"assets/*.ico",
"gallery/*.png",
"gallery/manifest.json",
"example-data/Artificial/*.csv",
"example-data/Artificial/*.npy",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["eagleplot*"]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
# FA102: a PEP 604 union (`X | None`) in an annotation that is evaluated at runtime
# crashes on Python 3.9 unless the module has `from __future__ import annotations`.
# That shipped once: Quick Plot failed to load on 3.9. target-version = "py39" above
# is what makes ruff apply it.
select = ["E", "F", "W", "FA102"]
ignore = []
[tool.ruff.lint.per-file-ignores]
"eagleplot/pages/*.py" = ["E402"]
"eagleplot/Home.py" = ["E402"]
[tool.black]
line-length = 100
target-version = ["py39", "py310", "py311"]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
no_strict_optional = true
explicit_package_bases = true
[tool.coverage.run]
omit = [
"eagleplot/Home.py",
"eagleplot/pages/*",
]