File: pyproject.toml

package info (click to toggle)
wsclean 3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,968 kB
  • sloc: cpp: 85,742; python: 3,526; sh: 245; makefile: 21
file content (90 lines) | stat: -rw-r--r-- 2,362 bytes parent folder | download
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
####################
# project settings #
####################

[project]
name = "radler"
version = "0.1.0"  # Keep in sync with top-level `CMakeLists.txt` file
description="Radio Astronomical Deconvolution Library"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.9"
authors = [
    { name = "Andre Offringa", email = "offringa@astron.nl" },
    { name = "Maik Nijhuis", email = "maik.nijhuis@triopsys.nl" },
    { name = "Jakob Maljaars", email = "jakob.maljaars@stcorp.nl" },
    { name = "Tammo Jan Dijkema", email = "dijkema@astron.nl" },
]
classifiers = [
    "Development Status :: 4 - Beta",
    "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
    "Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
    "astropy",
    "numpy",
]
maintainers = [
    { name = "Marcel Loose", email = "loose@astron.nl" },
    { name = "Tammo Jan Dijkema", email = "dijkema@astron.nl" },
]

[project.urls]
Documentation = "https://radler.readthedocs.io/"
Repository = "https://git.astron.nl/RD/radler.git"


#########################
# build-system settings #
#########################

[build-system]
requires = [
    "numpy",
    "pybind11<3",
    "scikit-build-core>=0.10",
]
build-backend = "scikit_build_core.build"


#########################
# cibuildwheel settings #
#########################

[tool.cibuildwheel]
before-all = "cibuildwheel/before_all.sh"
build = "cp3{9,10,11,12,13}-*"
build-verbosity = 1
environment = """ \
    CASACORE_VERSION="3.7.1" \
    CXXFLAGS="-Dcasacore=radler::casacore" \
    PYBIND11_VERSION="2.11.1" \
"""
test-command = "pytest -v {package}/python/test"
test-requires = "pytest"

# We currently do not have a MacOS CI/CD system available.
# This should work, but is untested.
[tool.cibuildwheel.macos]
repair-wheel-command = """\
    DYLD_LIBRARY_PATH=${BOOST_INSTALL_DIR}/lib delocate-wheel \
    --require-archs {delocate_archs} -w {dest_dir} -v {wheel}\
"""

[tool.cibuildwheel.linux]
skip = ["*-musllinux_*", "*_i686"]


#########################
# scikit-build settings #
#########################

[tool.scikit-build]
minimum-version = "build-system.requires"
cmake.version = ">=3.18"
build.verbose = true
logging.level = "INFO"
install.components = ["python"]

[tool.scikit-build.cmake.define]
BUILD_PYTHON_BINDINGS = "ON"
BUILD_TESTING = "OFF"