-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
88 lines (76 loc) · 2.66 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
################################################################################
# Copyright (c) 2024, National Research Foundation (SARAO)
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy
# of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
[build-system]
requires = ["setuptools", "setuptools-rust", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "katcp-codec"
dynamic = ["version"]
authors = [{name = "Bruce Merry", email = "[email protected]"}]
description = "Fast encoding and decoding of katcp messages"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["katcp"]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: BSD License",
]
[project.urls]
Homepage = "https://github.com/ska-sa/katcp-codec"
[project.optional-dependencies]
dev = ["pre-commit", "pytest", "build"]
doc = ["sphinx", "sphinxcontrib-tikz", "sphinx-rtd-theme"]
[tool.setuptools.packages.find]
# Pure Python packages/modules
where = ["python"]
include = ["katcp_codec*"]
[tool.setuptools_scm]
# This section is needed to have setuptools_scm provide the version
[[tool.setuptools-rust.ext-modules]]
target = "katcp_codec._lib"
debug = false
strip = "All"
[tool.isort]
profile = "black"
known_first_party = ["katcp_codec"]
[tool.mypy]
python_version = "3.8"
files = "python"
[[tool.mypy.overrides]]
# The Rust module doesn't have type hints
module = "katcp_codec._lib"
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = "python/tests"
[tool.cibuildwheel]
build-frontend = "build"
test-command = "pip install -r {project}/requirements.txt && pytest -v -ra {project}"
[tool.cibuildwheel.config-settings]
"--build-option" = "--py-limited-api=cp38"
[tool.cibuildwheel.linux]
environment = "PATH=$HOME/.cargo/bin:$PATH"
environment-pass = ["RUST_VERSION"]
archs = ["aarch64", "x86_64"]
before-all = ".ci/before_all_linux.sh"
repair-wheel-command = [
"auditwheel repair -w {dest_dir} {wheel}",
"pipx run abi3audit --strict --report {wheel}",
]
[tool.cibuildwheel.macos]
repair-wheel-command = [
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
"pipx run abi3audit --strict --report {wheel}",
]