-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhatch.toml
More file actions
38 lines (29 loc) · 1018 Bytes
/
hatch.toml
File metadata and controls
38 lines (29 loc) · 1018 Bytes
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
[version]
path = "src/pyawaitable/__init__.py"
[build.targets.wheel]
packages = ["src/pyawaitable"]
[build.targets.sdist]
only-include = ["src/pyawaitable", "include/", "src/_pyawaitable"]
[build.targets.wheel.hooks.autorun]
dependencies = ["hatch-autorun~=1.1"]
code = """
import pyawaitable
import os
os.environ['PYAWAITABLE_INCLUDE'] = pyawaitable.include(suppress_error=True)
"""
[build.hooks.custom]
enable-by-default = true
dependencies = ["typing_extensions~=4.14"]
[envs.hatch-test]
dependencies = ["pyawaitable_test @ {root:uri}/tests", "pytest~=8.4"]
default-args = ["--verbose"]
[[envs.hatch-test.matrix]]
python = ["3.13", "3.12", "3.11", "3.10", "3.9"]
[envs.test-build]
dependencies = [
"pyawaitable_test_meson @ {root:uri}/tests/builds/meson",
"pyawaitable_test_sbc @ {root:uri}/tests/builds/scikit-build-core",
]
[envs.test-build.scripts]
meson = "python3 tests/builds/ensure_build_worked.py _meson_module"
scikit-build-core = "python3 tests/builds/ensure_build_worked.py _sbc_module"