Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (93 loc) · 3.7 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (93 loc) · 3.7 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
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "particlesim"
version = "0.6.0"
description = "Multi-theory spacetime, matter, and beam simulation framework"
readme = "README.md"
license = "GPL-3.0-only"
requires-python = ">=3.11"
authors = [{ name = "ParticleSim contributors" }]
dependencies = [
"numpy>=1.26",
"sympy>=1.12",
"pydantic>=2.5",
"pyyaml>=6.0",
"h5py>=3.10",
"scipy>=1.11",
]
[project.optional-dependencies]
plot = ["matplotlib>=3.8"]
notebook = ["ipywidgets>=8.1", "matplotlib>=3.8", "jupyterlab>=4.2"]
jax = ["jax[cpu]>=0.4.30"]
# Compiles CLASS from source and needs a C compiler, so it is an extra and
# not part of the dev group: the adapter's live tests skip without it.
boltzmann = ["classy>=3.2"]
# The served app (particlesim serve, issue #83), and what the Docker image runs.
serve = ["panel>=1.9", "matplotlib>=3.8", "plotly>=5.20"]
# Isosurfaces, slices and meshes as geometry (particlesim.viz.volume, issue #55).
# VTK is large; nothing else needs it, and nothing here renders with it.
3d = ["pyvista>=0.44"]
dev = [
"pytest>=8.0",
"pytest-timeout>=2.3",
"ruff>=0.5",
"matplotlib>=3.8",
"pre-commit>=3.7",
"ipywidgets>=8.1",
"jax[cpu]>=0.4.30",
"panel>=1.9",
"plotly>=5.20",
]
[project.scripts]
particlesim = "particlesim.cli:main"
[project.entry-points."particlesim.theories"]
gr = "particlesim.theories.gr:GeneralRelativity"
"gr.lambda" = "particlesim.theories.gr_lambda:GRWithLambda"
"lqg.lqc" = "particlesim.theories.lqg.lqc:EffectiveLQC"
"lqg.polymer_bh" = "particlesim.theories.lqg.polymer_bh:PolymerBlackHole"
"asafety.rg_improved" = "particlesim.theories.asafety.rg_improved:RGImprovedSchwarzschild"
"string.kk" = "particlesim.theories.kk:KaluzaKlein"
"string.eft4d.dilaton" = "particlesim.theories.dilaton:Dilaton"
"string.compactify.torus" = "particlesim.theories.compactify:ToroidalCompactification"
"string.compactify.quintic" = "particlesim.theories.compactify:QuinticCompactification"
"string.eft4d.dgb" = "particlesim.theories.gauss_bonnet:DilatonGaussBonnet"
"string.eft4d.emda" = "particlesim.theories.emda:EMDA"
[project.entry-points."particlesim.inflaton_potentials"]
"inflation.quadratic" = "particlesim.cosmo.potentials:Quadratic"
"inflation.power_law" = "particlesim.cosmo.potentials:PowerLaw"
"inflation.exponential" = "particlesim.cosmo.potentials:Exponential"
"inflation.starobinsky" = "particlesim.cosmo.potentials:Starobinsky"
"inflation.natural" = "particlesim.cosmo.potentials:Natural"
"string.cosmo.plateau" = "particlesim.cosmo.string_potentials:PlateauInflation"
"string.cosmo.kahler" = "particlesim.cosmo.string_potentials:KahlerModuli"
"string.cosmo.fibre" = "particlesim.cosmo.string_potentials:FibreInflation"
"string.cosmo.monodromy" = "particlesim.cosmo.string_potentials:AxionMonodromy"
"string.cosmo.dbrane" = "particlesim.cosmo.string_potentials:DBraneInflation"
[project.entry-points."particlesim.em_sectors"]
"gr.maxwell" = "particlesim.theories.em:Maxwell"
"string.eft4d.born_infeld" = "particlesim.theories.em:BornInfeld"
"qed.euler_heisenberg" = "particlesim.theories.em:EulerHeisenberg"
"string.eft4d.axion_photon" = "particlesim.theories.em:AxionPhoton"
[tool.hatch.build.targets.wheel]
packages = ["particlesim"]
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = ["docs", "examples"]
[tool.ruff.lint]
select = ["E", "F", "I", "W", "B", "UP", "NPY"]
ignore = ["E741"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"benchmark: reproduces a published or closed-form result (Section 10 of the design doc)",
"slow: takes more than a few seconds",
"research: hours at research resolution; nightly only, never on a push",
]
timeout = 600
[dependency-groups]
dev = [
"astropy>=6.0",
]