-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpyproject.toml
173 lines (156 loc) · 4.83 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
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
[build-system]
requires = [
"cython",
"pybind11>=2.6",
"setuptools>=42",
"setuptools_scm[toml]>=3.4",
"scikit-build-core==0.5",
"antlr4-tools==0.2.1",
"build"]
build-backend = "scikit_build_core.build"
[tool.setuptools_scm]
write_to = "src/pyg4ometry/_version.py"
[project]
name = "pyg4ometry"
description = "Geometry package for high energy physics (Geant4, Fluka)"
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
authors = [{ name = "Stewart T. Boogert", email = "stewart.boogert@rhul.ac.uk" }]
maintainers = [{ name = "Stewart T. Boogert", email = "stewart.boogert@rhul.ac.uk" }]
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development",
]
requires-python = ">=3.6.8"
dependencies = [
"importlib-resources",
"antlr4-python3-runtime==4.13.1",
"configparser",
"matplotlib",
"networkx>=3",
"numpy",
"pandas",
"scipy",
"sympy>=1.7",
"testtools",
"vtk"
]
[project.scripts]
pyg4ometry = "pyg4ometry.cli:mainNoExceptions"
[project.urls]
Homepage = "https://github.com/g4edge/pyg4ometry"
Documentation = "https://pyg4ometry.readthedocs.io/"
"Bug Tracker" = "https://github.com/g4edge/pyg4ometry/issues"
[project.optional-dependencies]
all = ["pyg4ometry[docs,test,usd]"]
docs = [
"furo",
"sphinx",
"sphinx-autoapi",
"sphinx-copybutton",
"sphinx-inline-tabs",
]
test = [
"g4edge-testdata",
"pre-commit",
"pytest>=6.0",
"pytest-cov",
]
usd = [
"usd-core"
]
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.package-data]
"pyg4ometry.convert" = ["src/pyg4ometry/convert/*.csv"]
"pyg4ometry.fluka" = ["src/pyg4ometry/fluka/*.flair","src/pyg4ometry/fluka/fluka_lowenergyneut.txt"]
"pyg4ometry.geant4" = ["src/pyg4ometry/geant4/*.txt"]
"pyg4ometry.visualisation" = ["src/pyg4ometry/visualisation/*.ini"]
[tool.scikit-build]
cmake.minimum-version = "3.20"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = "error"
log_cli_level = "info"
testpaths = "tests"
[tool.ruff]
lint.select = [
# "E",
# "F",
"W", # flake8
# "B", # flake8-bugbear
# "I", # isort
# "ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
# "ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
# "G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
# "PL", # pylint
"PT", # flake8-pytest-style
# "PTH", # flake8-use-pathlib
# "RET", # flake8-return
"RUF", # Ruff-specific
# "SIM", # flake8-simplify
# "T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
# "PD", # pandas-vet
"T201",
]
lint.extend-ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
"RUF012", # Mutable class attributes should be annotated with typing.ClassVar
"RUF100", # unused noqa TODO: remove after print() migration
]
src = ["src"]
lint.unfixable = [
"T20", # Removes print statements
"F841", # Removes unused variables
]
exclude = []
lint.flake8-unused-arguments.ignore-variadic-names = true
lint.isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
# ignores because of tests.
"tests/**" = ["T20"]
"src/pyg4ometry/misc/TestUtils.py" = ["T201"]
"src/pyg4ometry/compare/_Compare.py" = ["T201"]
# further ignores, TODO: should be removed.
"src/pyg4ometry/gui/**" = ["T201"]
"src/pyg4ometry/{fluka,convert}/**" = ["T201"]
"src/pyg4ometry/{io,analysis,features}/**" = ["T201"]
"src/pyg4ometry/{freecad,pycgal,pyoce}/**" = ["T201"]
"src/pyg4ometry/visualisation/{UsdViewer,ViewerHierarchyBase}.py" = ["T201"]
[tool.cibuildwheel]
build = ["*macosx*", "*manylinux_x86_64", "*windows*"]
skip = ["pp*", "cp36-*", "cp37-*"]
[tool.cibuildwheel.linux]
archs = ["auto"]
manylinux-x86_64-image = "g4edge/manylinux2014_x86_64:latest"
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
before-all = ".github/bin/install-deps-macos.sh"
[tool.cibuildwheel.windows]
archs = ["AMD64"]
before-all = ".github/bin/install-deps-windows.cmd"