-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
214 lines (186 loc) · 6.04 KB
/
pyproject.toml
File metadata and controls
214 lines (186 loc) · 6.04 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
# Copyright 2023 Dmytro Yaroshenko (https://github.com/o-murphy)
# Copyright 2024 David Bookstaber (https://github.com/dbookstaber)
[build-system]
requires = [
"setuptools",
"setuptools-scm[toml]>=9.2",
"setuptools_dynamic_dependencies",
"tomli>=2.4.0; python_version<'3.11'"
]
build-backend = "setuptools.build_meta"
[project]
name = "py_ballisticcalc"
authors = [
{ name = "o-murphy", email = "thehelixpg@gmail.com" },
{ name = "dbookstaber", email = "bookstaber@gmail.com" }
]
description = "LGPL library for small arms ballistic calculations (Python 3)"
readme = "README.md"
requires-python = ">=3.10"
keywords = ["py_ballisticcalc", "ballistics", "Cython", "ballistic calculator", "python", "ballistic solver"]
license = { file = "LICENSE" }
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"typing_extensions>= 4.15.0",
"tomli>=2.4.0; python_version<'3.11'",
"Deprecated>=1.2.18",
]
# NOTE:
# version: will be calculated with setuptools-scm
# optional-dependencies: will be calculated with before-build hook
dynamic = ["version", "optional-dependencies"]
[project.entry-points.py_ballisticcalc]
euler_engine = "py_ballisticcalc:EulerIntegrationEngine"
rk4_engine = "py_ballisticcalc:RK4IntegrationEngine"
scipy_engine = "py_ballisticcalc:SciPyIntegrationEngine"
verlet_engine = "py_ballisticcalc:VelocityVerletIntegrationEngine"
[project.urls]
"Homepage" = "https://github.com/o-murphy/py-ballisticcalc"
"Documentation" = "https://o-murphy.github.io/py-ballisticcalc"
"Bug Reports" = "https://github.com/o-murphy/py-ballisticcalc/issues"
"Source" = "https://github.com/o-murphy/py-ballisticcalc"
[tool.setuptools.packages.find]
where = ["."]
include = ["py_ballisticcalc*"]
[tool.setuptools.package-data]
py_ballisticcalc = ["py.typed", "assets/*.toml"]
[project.scripts]
uconv = "py_ballisticcalc.tools.uconv:main"
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-rf"
testpaths = ["tests"]
markers = [
"extended: rarely-modified logic",
"engine: functionality that varies with engine",
"stress: long-running or resource-intensive tests, opt-in only"
]
[tool.mypy]
packages = ["py_ballisticcalc"]
[tool.ruff]
include = [
"pyproject.toml",
"py_ballisticcalc/**/*.py",
"py_ballisticcalc/**/*.pyi",
"py_ballisticcalc.exts/**/*.py",
"py_ballisticcalc.exts/**/*.pyi",
]
extend-exclude = [
"__init__.py",
"tests",
"examples",
]
line-length = 120
[tool.ruff.lint]
ignore = ["F403", "F405"]
[tool.uv.sources]
"py_ballisticcalc.exts" = { path = "./py_ballisticcalc.exts" } # required for `uv sync`
[tool.setuptools_scm]
root = "." # required for valid .git repo root detect for main package in monorepo
fallback_version = "0.0.0.dev0"
# NOTE:
# do not use [project.optional-dependencies]
# we use setuptools_dynamic_dependencies as "before-build hook"
# to guarantee strict tie of the `main` and the `exts` packages versions
[tool.setuptools_dynamic_dependencies.optional-dependencies]
exts = ["py_ballisticcalc.exts=={version}"]
charts = [
"matplotlib>=3.10.8",
"pillow>=11.3.0; python_version>='3.13' and sys_platform == 'win32'", # minimal wheel required for matplotlib with python 3.13+ in windows
"pandas>=2.3.3",
"numpy>=2.2.6",
"numpy>=2.3.4; python_version>='3.14'",
"scipy>=1.15.3",
]
scipy = [
"numpy>=2.2.6",
"numpy>=2.3.4; python_version>='3.14'",
"scipy>=1.15.3",
]
dev = [
"Cython>=3.2.4",
"build>=1.4.0",
# math and data
"matplotlib>=3.10.8",
"pillow>=11.3.0; python_version>='3.13' and sys_platform == 'win32'", # minimal wheel required for matplotlib with python 3.13+ in windows
"pandas>=2.3.3",
"numpy>=2.2.6",
"numpy>=2.3.4; python_version>='3.14'",
"scipy>=1.15.3",
# "jupyter>=1.1.1"
"ipykernel",
"nbformat", # minimal installation for .ipynb for IDE (works in VS Code, PyCharm)
# code standards
"mypy>=1.18.2",
"pylint>=4.0.5",
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"ruff>=0.15.6",
"cython-lint>=0.19.0",
"pre-commit>=4.5.1",
# stubs
"scipy-stubs>=1.16.2.3; python_version>='3.11'",
"types-deprecated>=1.3.1.20260130",
"pandas-stubs>=2.3.2.250926",
]
docs = [
"mkdocs-mermaid2-plugin>=1.2.3",
"mkdocs>=1.6.1",
"mkdocs-exclude>=1.0.2",
"mkdocs-material[imaging]>=9.7.0",
"mkdocs-redirects>=1.2.2",
"mkdocstrings>=1.0.0",
"mkdocstrings-python>=2.0.0",
"mkdocs-autorefs>=1.4.3",
"mike>=2.1.3",
"pydocstyle>=6.3.0",
"mkdocs-macros-plugin>=1.3.7",
"setuptools-scm>=9.2"
]
[dependency-groups]
# Keep in sync with [tool.setuptools_dynamic_dependencies.optional-dependencies] dev above.
# Use `uv sync --dev` to install.
dev = [
"Cython>=3.2.4",
"build>=1.4.0",
# math and data
"matplotlib>=3.10.8",
"pillow>=11.3.0; python_version>='3.13' and sys_platform == 'win32'", # minimal wheel required for matplotlib with python 3.13+ in windows
"pandas>=2.3.3",
"numpy>=2.2.6",
"numpy>=2.3.4; python_version>='3.14'",
"scipy>=1.15.3",
# "jupyter>=1.1.1"
"ipykernel",
"nbformat", # minimal installation for .ipynb for IDE (works in VS Code, PyCharm)
# code standards
"mypy>=1.18.2",
"pylint>=4.0.5",
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"ruff>=0.15.6",
"cython-lint>=0.19.0",
"pre-commit>=4.5.1",
# stubs
"scipy-stubs>=1.16.2.3; python_version>='3.11'",
"types-deprecated>=1.3.1.20260130",
"pandas-stubs>=2.3.2.250926",
]
test = [
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
]