-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
328 lines (293 loc) · 8.86 KB
/
pyproject.toml
File metadata and controls
328 lines (293 loc) · 8.86 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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
[tool.poetry]
name = "tnfr"
version = "0.0.3.3"
description = "Resonant Fractal Nature Theory (TNFR) - Computational engine for modeling coherent patterns through resonance dynamics"
readme = "README.md"
authors = ["F. F. Martinez Gamo"]
license = "MIT"
packages = [{include = "tnfr", from = "src"}]
[project]
name = "tnfr"
version = "0.0.3.3"
description = "Resonant Fractal Nature Theory (TNFR) - Computational engine for modeling coherent patterns through resonance dynamics"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE.md"]
authors = [{ name = "F. F. Martinez Gamo" }]
[tool.poetry.dependencies]
python = "^3.10"
# Minimal core - truly minimal for primality testing
networkx = {version = "^2.6", optional = true}
cachetools = {version = "^5.0", optional = true}
mpmath = {version = "^1.3", optional = true}
numpy = {version = "^1.24", optional = true}
scipy = {version = "^1.9", optional = true}
sympy = {version = "^1.10", optional = true}
[tool.poetry.extras]
full = ["numpy", "scipy", "networkx", "cachetools", "sympy", "mpmath"]
math = ["sympy"]
tnfr = ["networkx", "cachetools", "mpmath"]
dev = ["pytest", "black", "flake8", "mypy"]
[tool.poetry.scripts]
tnfr-primality = "tnfr_primality.cli:main"
[tool.tnfr.metadata]
# ORCID retained outside PEP 621 authors block to satisfy strict validators
primary_author_orcid = "0009-0007-6116-0613"
keywords = [
"TNFR", "Resonant Fractal Nature Theory", "complex systems", "fractals", "resonance",
"networks", "structural dynamics", "structural operators", "coherence theory",
"physics simulation", "emergence", "synchronization", "zenodo", "doi"
]
classifiers = [
"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",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics"
]
dependencies = [
"networkx>=2.6,<4.0",
"cachetools>=5.0,<7.0",
"mpmath>=1.3,<2.0",
]
[project.optional-dependencies]
# Computational backends
compute-jax = ["jax>=0.4,<1.0"]
compute-torch = ["torch>=2.1,<3.0"]
# Serialization formats
serialization = ["pyyaml>=6.0,<7.0", "orjson>=3,<4"]
# Visualization
viz-basic = ["matplotlib>=3.7,<4.0", "sympy>=1.12,<2.0"]
# Legacy compatibility aliases (for backward compatibility with existing workflows)
# Note: numpy is now a core dependency, so this extra installs nothing additional
numpy = [] # Empty - numpy is now in core dependencies
jax = ["jax>=0.4,<1.0"]
torch = ["torch>=2.1,<3.0"]
yaml = ["pyyaml>=6.0,<7.0"]
orjson = ["orjson>=3,<4"]
viz = ["matplotlib>=3.7,<4.0"]
docs = [
"sphinx>=7.2",
"sphinx-autodoc-typehints>=1.25",
"myst-parser>=2.0",
"nbsphinx>=0.9",
"sphinx-rtd-theme>=1.3",
"sphinxcontrib-mermaid>=0.9",
"ipykernel>=6",
"nbconvert>=7.16",
"pypandoc-binary>=1.14",
"mkdocs>=1.5",
"mkdocs-material>=9.4",
"mkdocs-jupyter>=0.24",
]
# Testing - modular groups
test-unit = [
"pytest>=7,<10",
"pytest-cov>=4,<8",
"pytest-timeout>=2,<3",
]
test-property = [
"hypothesis>=6,<7",
"hypothesis-networkx>=0.3,<1.0",
]
test-performance = [
"pytest-benchmark>=4,<6",
]
test-parallel = [
"pytest-xdist>=3,<4",
]
test-quality = [
"pydocstyle>=6,<7",
"flake8>=5,<8",
"flake8-pyproject>=1.2,<2.0",
"vulture>=2,<3",
]
test-all = [
"pytest>=7,<10",
"pytest-cov>=4,<8",
"pytest-timeout>=2,<3",
"hypothesis>=6,<7",
"hypothesis-networkx>=0.3,<1.0",
"pytest-benchmark>=4,<6",
"pytest-xdist>=3,<4",
"pydocstyle>=6,<7",
"flake8>=5,<8",
"flake8-pyproject>=1.2,<2.0",
"vulture>=2,<3",
"matplotlib>=3.7,<4.0",
]
test = [ # Legacy alias
"pytest>=7,<10",
"pytest-cov>=4,<8",
"pytest-timeout>=2,<3",
"hypothesis>=6,<7",
"hypothesis-networkx>=0.3,<1.0",
"pytest-benchmark>=4,<6",
"pytest-xdist>=3,<4",
"pydocstyle>=6,<7",
"flake8>=5,<8",
"flake8-pyproject>=1.2,<2.0",
"vulture>=2,<3",
"matplotlib>=3.7,<4.0",
]
# Type checking
typecheck = [
"mypy>=1.8,<2.0",
"pyright>=1.1.350,<1.2.0",
"networkx-stubs>=0.0.1",
"types-cachetools>=6.0.0.0",
]
# Development environment groups
dev-minimal = [
"mypy>=1.8,<2.0",
"black>=23,<26",
"pytest>=7,<10",
"pytest-cov>=4,<8",
"pytest-timeout>=2,<3",
]
dev-full = [
"pytest>=7,<10",
"pytest-cov>=4,<8",
"pytest-timeout>=2,<3",
"hypothesis>=6,<7",
"hypothesis-networkx>=0.3,<1.0",
"pytest-benchmark>=4,<6",
"pytest-xdist>=3,<4",
"pydocstyle>=6,<7",
"flake8>=5,<8",
"flake8-pyproject>=1.2,<2.0",
"vulture>=2,<3",
"matplotlib>=3.7,<4.0",
"jax>=0.4,<1.0",
"mypy>=1.8,<2.0",
"pyright>=1.1.350,<1.2.0",
"networkx-stubs>=0.0.1",
"types-cachetools>=6.0.0.0",
]
# Release tooling
release = [
"python-semantic-release>=10.4,<11",
"setuptools-scm>=8,<10",
"build>=1,<2",
"towncrier>=23,<26",
]
[project.scripts]
tnfr = "tnfr.cli:main"
tnfr-validate = "tnfr.cli.validate:main"
tnfr-is-prime = "tnfr.tools.tnfr_is_prime_cli:main"
[project.urls]
Homepage = "https://github.com/fermga/TNFR-Python-Engine"
Repository = "https://github.com/fermga/TNFR-Python-Engine"
PyPI = "https://pypi.org/project/tnfr/"
Citation = "https://doi.org/10.5281/zenodo.17602860"
Zenodo = "https://zenodo.org/records/17602860"
Issues = "https://github.com/fermga/TNFR-Python-Engine/issues"
Documentation = "https://fermga.github.io/TNFR-Python-Engine/"
GPT = "https://chatgpt.com/g/g-67abc78885a88191b2d67f94fd60dc97-tnfr-resonant-fractal-nature-theory"
[tool.setuptools.package-data]
tnfr = ["py.typed", "schemas/*.json"]
[tool.setuptools.packages.find]
# Ensure all tnfr subpackages (including newly added modules like 'physics')
# are included in builds and editable installs.
where = ["src"]
include = ["tnfr", "tnfr.*"]
[tool.setuptools_scm]
tag_regex = '^v(?P<version>[0-9]+\.[0-9]+\.[0-9]+)$'
local_scheme = "no-local-version"
write_to = "src/tnfr/_generated_version.py"
fallback_version = "0.0.1"
[tool.semantic_release]
version_source = "tag"
commit_parser = "conventional"
allow_zero_version = false
major_on_zero = false
tag_format = "v{version}"
[tool.semantic_release.branches.main]
match = "^main$"
prerelease = false
[tool.semantic_release.changelog]
template_dir = "meta/semantic_release/templates"
mode = "update"
[tool.semantic_release.changelog.default_templates]
mask_initial_release = true
changelog_file = ""
[tool.semantic_release.commit_parser_options]
minor_tags = ["feat", "structure"]
patch_tags = ["fix", "perf", "refactor", "docs", "test", "build", "ci", "style", "chore"]
other_allowed_tags = ["revert", "docs", "test", "build", "ci", "style", "refactor", "perf", "chore"]
allowed_tags = ["feat", "fix", "perf", "refactor", "docs", "test", "build", "ci", "style", "chore", "structure", "revert"]
default_bump_level = 0
parse_squash_commits = true
ignore_merge_commits = true
[tool.black]
line-length = 88
target-version = ["py39", "py310", "py311", "py312", "py313"]
[tool.isort]
profile = "black"
line_length = 88
skip = ["benchmarks"]
[tool.flake8]
max-line-length = 88
ignore = ["E501", "W503", "E203"]
exclude = ["benchmarks/"]
[tool.pydocstyle]
convention = "numpy"
add-ignore = [
"D202", # Allow blank line after docstring where needed for readability.
]
[tool.tnfr.language_check]
exclude = [
"TNFR.pdf",
"benchmarks/**/*.pdf",
]
[tool.pytest.ini_options]
pythonpath = ["src"]
addopts = "-m 'not slow'"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"benchmarks: run with 'pytest benchmarks --benchmark-only' to execute the benchmark suite",
"stress: high-load deterministic stress coverage (select with '-m \"stress\"')",
"val: Tests specific to VAL (Expansion) operator",
"canonical: Tests validating canonical TNFR invariants",
"nodal_equation: Tests validating fundamental nodal equation",
"fractality: Tests validating fractal preservation",
"integration: Integration tests that touch IO or external boundaries",
]
[tool.mypy]
python_version = "3.9"
warn_unused_configs = true
warn_return_any = false
no_implicit_optional = false
strict_equality = false
disallow_any_unimported = false
show_error_codes = true
follow_imports = "skip"
allow_redefinition = true
allow_untyped_defs = false
allow_untyped_calls = false
allow_untyped_globals = false
[[tool.mypy.overrides]]
module = ["networkx", "networkx.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["yaml", "yaml.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["numpy", "numpy.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["matplotlib", "matplotlib.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["jsonschema", "jsonschema.*"]
ignore_missing_imports = true
[build-system]
requires = ["setuptools>=78.1.1", "wheel"]
build-backend = "setuptools.build_meta"