Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (75 loc) · 3.02 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (75 loc) · 3.02 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
[build-system]
requires = ["setuptools>=79.0", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "autonerves"
dynamic = ["version"]
description = "PyAuto Configration"
readme = { file = "README.md", content-type = "text/markdown" }
license = { text = "MIT" }
requires-python = ">=3.12"
authors = [
{ name = "James Nightingale", email = "James.Nightingale@newcastle.ac.uk" },
{ name = "Richard Hayes", email = "richard@rghsoftware.co.uk" },
]
classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14"
]
keywords = ["cli"]
dependencies = [
"typing-inspect>=0.4.0",
"PyYAML>=6.0.1",
"numpy>=1.24.0,<3.0.0",
# JAX is a default dependency (PyAutoLens#702): CPU wheels exist for every
# supported platform except Intel macOS (jaxlib ships no macosx_x86_64
# wheels for >=0.7), so the markers let Intel Macs resolve to the
# NumPy-only path instead of failing at install. jax_wrapper warns loudly
# at import when JAX is absent.
# jax 0.12 floor (PyAutoNerves#213/#215; PyAutoDNA
# decisions/jax-cpu-policy-2026-11.md): 0.11.2 deadlocks XLA:CPU
# likelihoods (every call at 4 cores on RAL job 415009); 0.12.0 and
# 0.12.0.1 ran 30,000 calls with no hang and no XLA flag. Pin jaxlib
# too: jax 0.12.0 itself still accepts jaxlib 0.11.2. This replaces the
# old 0.7 floor and the 0.10.* / 0.11.0 exclusions (Heart#274). jax 0.12
# raises the effective numpy floor to 2.2 and needs a Haswell-or-newer
# x86-64 CPU. Do not add a default XLA:CPU flag: none is needed on 0.12.
'jax>=0.12.0,<0.13; sys_platform != "darwin" or platform_machine == "arm64"',
'jaxlib>=0.12.0,<0.13; sys_platform != "darwin" or platform_machine == "arm64"',
'jaxnnls==1.0.1; sys_platform != "darwin" or platform_machine == "arm64"'
]
[project.urls]
Homepage = "https://github.com/PyAutoLabs/PyAutoNerves"
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
autonerves = ["site/*.yaml"]
[tool.setuptools.packages.find]
include = ["autonerves*"]
exclude = ["docs", "test_autonerves", "test_autonerves*", "scripts", "scripts*"]
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "no-local-version"
[project.optional-dependencies]
# JAX moved into the base dependencies (PyAutoLens#702). The extra is kept as
# a declared no-op so `pip install autonerves[jax]` keeps resolving — removing
# it would revive the pip history-walk trap ("version X does not provide the
# extra 'jax'" is a warning, not an error; PyAutoLens#687) in reverse.
jax = []
optional = [
"autonerves[jax]",
"astropy>=5.0"
]
test = ["pytest"]
dev = ["pytest", "black"]
[tool.pytest.ini_options]
testpaths = ["test_autonerves"]
filterwarnings = [
"ignore:cuda_plugin_extension:UserWarning",
"ignore::DeprecationWarning:jax",
]