forked from bertiniteam/b2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (53 loc) · 1.98 KB
/
Copy pathpyproject.toml
File metadata and controls
61 lines (53 loc) · 1.98 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
[project]
name = "bertini2"
# The version is the single source of truth in the top-level `VERSION` file.
# It is declared dynamic here and read by scikit-build-core (see
# [tool.scikit-build.metadata.version] below) and by CMake (see CMakeLists.txt).
dynamic = ["version"]
requires-python = ">= 3.10"
readme = "README.md"
dependencies = ["numpy"]
authors = [
{name="Bertini Team"}
]
maintainers=[
{name="silviana amethyst", email="amethyst@mpi-cbg.de"}
]
description = "Software for numerical algebraic geometry"
[project.optional-dependencies]
test = ["pytest"]
[project.scripts]
bertini2 = "bertini._cli:main"
[project.urls]
Repository = "https://github.com/bertiniteam/b2"
[build-system]
requires = [
"scikit-build-core","numpy"
]
build-backend = "scikit_build_core.build"
[tool.scikit-build.metadata.version]
# Read the project version from the top-level VERSION file (single source of truth).
provider = "scikit_build_core.metadata.regex"
input = "VERSION"
regex = "(?P<value>.+)"
[tool.scikit-build]
wheel.packages = ["python/bertini"]
wheel.expand-macos-universal-tags = true
wheel.install-dir = "bertini"
build-dir = "bld/"
editable.mode = "redirect"
[tool.scikit-build.cmake]
args = ["-DINSTALL_DOCUMENTATION=OFF", "-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON"]
build-type = "Release"
[tool.pytest.ini_options]
testpaths = ["python/test"]
pythonpath = ["python/test"]
# Exclude MPI tests from default pytest run (run with mpirun -n N explicitly)
norecursedirs = ["python/test/parallel"]
# Safety net (pytest-timeout): no single test may hang the suite. A homotopy solve on a
# pathological random gamma can, very rarely, send a path grinding for a long time -- on Windows
# CI this once hung a job for 6 hours. A per-test cap turns that into a fast, debuggable failure
# (with a stack dump) instead. method=thread so it also bounds a grind stuck inside the C++
# extension (a signal cannot interrupt that). Generous (180s) so it never trips a legitimate test.
timeout = 180
timeout_method = "thread"