-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
132 lines (120 loc) · 3.05 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
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
[build-system]
requires = ["hatchling>=1.17.1", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "phasespace"
description = "TensorFlow implementation of the Raubold and Lynch method for n-body events"
authors = [{ name = "Albert Puig Navarro", email = "[email protected]" }]
maintainers = [{ name = "zfit", email = "[email protected]" }]
license = { text = "BSD-3-Clause" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Physics",
]
keywords = ["TensorFlow", "phasespace", "HEP"]
urls = { Homepage = "https://github.com/zfit/phasespace" }
requires-python = ">=3.9"
dependencies = [
"tensorflow>=2.16.0",
"tensorflow_probability>=0.22.0",
]
dynamic = ["version"]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.optional-dependencies]
tf = [
"tensorflow >=2.16.0", # TODO(2.0): make this the only requirement, add versions, remove from install_requires
"tensorflow_probability >=0.22.0",
]
tensorflow = ["phasespace[tf]"]
fromdecay = [
"particle >= 0.16.0",
"zfit >=0.12.0",
"zfit-physics >= 0.6",
"decaylanguage >= 0.12.0", # not required but everyone using this feature will likely use DecayLanguage
]
vector = ["vector >= 1.0.0"]
all = [
"phasespace[fromdecay]",
"phasespace[vector]",
"phasespace[tf]",
]
test = [
"phasespace[all]",
"awkward>=1.0",
"coverage",
"flaky",
"matplotlib",
"nbval",
"numpy",
"pytest",
"pytest-cov",
"pytest-xdist",
"scipy",
"uproot>=4.0",
"wget",
]
doc = [
"phasespace[fromdecay]",
"phasespace[vector]",
"graphviz",
"Sphinx",
"myst-nb",
"sphinx_bootstrap_theme",
"jupyter_sphinx",
"sphinx-math-dollar",
]
dev = [
"phasespace[doc]",
"phasespace[test]",
"bumpversion",
"pre-commit",
"twine",
"watchdog",
]
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/phasespace/_version.py"
metadata.allow-direct-references = true
[tool.distutils.bdist_wheel]
universal = 1
[tool.flake8]
exclude = """
benchmark,
data,
dist,
docs,
paper,
scripts,
utils"""
max-line-length = "120"
statistics = "True"
max-complexity = "30"
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
addopts = """
--color=yes
--ignore=setup.py"""
filterwarnings = ["ignore:.*the imp module is deprecated in favour of importlib.*:DeprecationWarning"]
norecursedirs = ["tests/helpers"]
[tool.isort]
profile = "black"
src_paths = ["phasespace", "tests"]