forked from AVSLab/basilisk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (118 loc) · 5.34 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (118 loc) · 5.34 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
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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=77.0.3,<=82.0.1", # Required for "bdist_wheel" to work correctly and for PEP 639 license metadata.
"setuptools-scm>=8.0,<=10.0.5", # Automatically include all Git-controlled files in sdist
"packaging>=24.0,<=26.2",
# needed to find the numpy include headers,
# pin to lowest runtime allowed version to take advantage of backwards compatibility
"numpy>=1.24.4,<2.4.0; python_version < '3.13'",
"numpy>=2.0,<2.4.0; python_version >= '3.13'",
# Requirements for building Basilisk through conanfile
"conan>=2.0.5,<=2.28.1",
"cmake>=3.26,<=4.3.2",
"swig>=4.4.1,<5", # Require SWIG ABI 5 support for Basilisk and compatible extensions.
"libclang>=15.0.6.1,<=18.1.1" # Required by generatePayloadMetaJson.py (message code generation)
]
[project]
name = 'bsk'
dynamic = ["version", "dependencies"]
requires-python = ">=3.9, <3.15"
readme = "README.md"
license = "ISC"
license-files = ["LICENSE", "LICENSES/RUST-THIRD-PARTY.txt"]
description = "Basilisk: an Astrodynamics Simulation Framework"
classifiers = [
"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",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
]
[project.urls]
homepage = 'https://avslab.github.io/basilisk/'
documentation = 'https://avslab.github.io/basilisk/'
source = "https://github.com/AVSLab/basilisk"
tracker = "https://github.com/AVSLab/basilisk/issues"
# Define console scripts here
[project.scripts]
bskLargeData = "Basilisk.utilities.bskLargeData:main"
bskExamples = "Basilisk.utilities.bskExamples:main"
[tool.setuptools]
packages = [] # XXX: Leave blank, populated automatically by setup.py.
include-package-data = true
[tool.setuptools.package-data]
"*" = ["*.so", "*.dll", "*.lib", "*.pyd", "*.a", "*.dylib"] # Include all built objects.
[tool.setuptools.dynamic]
version = {file = "docs/source/bskVersion.txt"}
dependencies = {file = "requirements.txt"}
[project.optional-dependencies]
test = [
"psutil",
"pytest-error-for-skips",
"pytest",
]
examples = [
'scipy==1.13.1; python_version < "3.10"',
'scipy==1.15.3; python_version >= "3.10" and python_version < "3.11"',
'scipy==1.17.1; python_version >= "3.11"',
'numba',
]
opnav = [
"bsk-opnav",
]
all = [
"bsk-opnav",
]
[tool.cibuildwheel]
build = ["cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
skip = ["*-win32", "*-musllinux_*"]
build-verbosity = 1
before-build = "python .github/scripts/configure_conan_retries.py && pip install \"libclang>=15.0.6.1,<=18.1.1\""
test-extras = ["test"]
test-command = "bskLargeData && pytest -v {project}/src/tests -m \"not ciSkip and not scenarioTest\""
[tool.cibuildwheel.environment]
CMAKE_BUILD_TYPE = "Release"
[tool.cibuildwheel.macos.environment]
MACOSX_DEPLOYMENT_TARGET = "11.0"
CMAKE_OSX_DEPLOYMENT_TARGET = "11.0"
[tool.cibuildwheel.windows]
before-build = "python .github/scripts/configure_conan_retries.py && pip install \"libclang>=15.0.6.1,<=18.1.1\" delvewheel ninja"
repair-wheel-command = "python -m delvewheel repair -v --ignore-existing --analyze-existing -w {dest_dir} {wheel}"
[tool.cibuildwheel.linux]
archs = ["native"]
# Rust module support (--rustModules, see src/cmake/bskFindRustModules.cmake)
# is experimental and off by default, but the manylinux container has no
# Rust/Cargo toolchain at all, so it is bootstrapped here unconditionally.
# This lets nightly, test, and release wheel jobs build Rust modules through
# the pinned Corrosion integration on every Linux wheel platform.
before-all = "python -m pip install 'conan>=2.0.5,<=2.28.1' && python -m conans.conan profile detect --force && conan_home=\"${CONAN_HOME:-$HOME/.conan2}\" && mkdir -p \"$conan_home\" && touch \"$conan_home/global.conf\" && for setting in 'tools.system.package_manager:mode=install' 'tools.system.package_manager:sudo=False'; do grep -qxF \"$setting\" \"$conan_home/global.conf\" || printf '%s\\n' \"$setting\" >> \"$conan_home/global.conf\"; done && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
repair-wheel-command = [
"auditwheel repair --strip -w {dest_dir} {wheel}"
]
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
# cibuildwheel runs Linux builds inside a manylinux container so host env vars
# that toggles MuJoCo/OpNav aren't visible to the build unless explicitly
# forwarded.
environment-pass = ["CONAN_ARGS", "CMAKE_C_COMPILER_LAUNCHER", "CMAKE_CXX_COMPILER_LAUNCHER"]
[tool.cibuildwheel.linux.environment]
# rustup (installed by before-all above) puts cargo/rustc here; before-all
# runs in its own subprocess so this can't be exported from there directly --
# see https://cibuildwheel.pypa.io/en/stable/faq/#building-rust-wheels.
PATH = "$HOME/.cargo/bin:$PATH"
[tool.pytest.ini_options]
testpaths = [
"src",
"benchmarks/tests",
]
markers = [
"slowtest: mark a test as a slow unit test.",
"scenarioTest: mark a test as a tutorial scenario test.",
"ciSkip: mark a test that should be skipped on the CI test runs",
]