-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
104 lines (94 loc) · 2.61 KB
/
pyproject.toml
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
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[project]
name = "thermostate"
description = "A package to manage thermodynamic states"
keywords = ["thermodynamics", "chemistry", "state", "education"]
readme = "README.md"
authors = [
{name = "Bryan W. Weber"},
]
maintainers = [
{name = "Bryan W. Weber", email = "bryan.w.weber@gmail.com"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft",
"Operating System :: Microsoft :: Windows",
"Operating System :: Microsoft :: Windows :: Windows 11",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
]
requires-python = ">=3.9"
dependencies = [
"coolprop>=6.4.3.post1",
"matplotlib>=3.5",
"numpy>=1.22",
"pint>=0.20,<1.0",
]
license = {text = "BSD-3-clause"}
dynamic = ["version"]
[project.urls]
Homepage = "https://thermostate.readthedocs.io/"
Source = "https://github.com/bryanwweber/thermostate"
Tracker = "https://github.com/bryanwweber/thermostate/issues"
[project.optional-dependencies]
docs = [
"ipykernel~=6.21",
"ipython~=8.10",
"jupyter-client~=8.0",
"nbsphinx~=0.8",
"recommonmark~=0.7",
"sphinx~=6.1",
]
[tool]
[tool.pdm]
package-dir = "src"
[tool.pdm.version]
source = "file"
path = "src/thermostate/__init__.py"
[tool.pdm.dev-dependencies]
dev = [
"flake8>=6.0.0",
"black[jupyter]>=23.1.0",
"mypy>=1.0.0",
"isort>=5.12.0",
"flake8-docstrings>=1.7.0",
]
testing = [
"pytest>=7.2",
"pytest-cov>=4.0",
]
ci = [
"tox>=4.4.5",
"tox-pdm>=0.6.1",
]
[tool.pdm.scripts]
test = "pytest -vv --cov --cov-report=xml tests/"
docs = "sphinx-build -b html docs/ docs/_build -W --keep-going"
[tool.pdm.scripts.lint]
shell = """
flake8 src/thermostate tests docs
isort --check src/thermostate tests
black --check src/thermostate tests docs
"""
[tool.pdm.scripts.format]
shell = """
isort src/thermostate tests
black src/thermostate tests docs
"""
[tool.pdm.scripts.notebooks]
shell = """
jupyter nbconvert --to notebook --execute docs/*-example.ipynb
jupyter nbconvert --to notebook --execute docs/Plot-Tutorial.ipynb
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.allow_errors=True docs/Tutorial.ipynb
"""