-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
108 lines (93 loc) · 2.6 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#########################
# build-system settings #
#########################
[build-system]
requires = [
"build",
"cmake>=3.18",
"meson",
"ninja",
"numpy<2",
"scikit-build>=0.13",
"setuptools",
"setuptools<65; python_version<'3.12'",
"setuptools_scm",
"wheel",
]
####################
# project settings #
####################
[project]
name = "bdsf"
dynamic = ["version"]
description = "Blob Detector and Source Finder"
readme = "README.rst"
requires-python = ">=3.8"
authors = [
{ name = "David Rafferty", email = "[email protected]" },
]
maintainers = [
{ name = "Marcel Loose", email = "[email protected]" },
]
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Programming Language :: C++",
"Programming Language :: Fortran",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Astronomy",
]
dependencies = [
"backports.shutil_get_terminal_size",
"astropy",
"numpy<2",
"scipy",
]
[project.optional-dependencies]
"ishell" = [
"ipython!=8.11.*,!=8.12.*,!=8.13.*,!=8.14.*,!=8.15.*",
"matplotlib",
]
[project.scripts]
pybdsf = "bdsf.pybdsf:main [ishell]"
[project.urls]
Homepage = "https://github.com/lofar-astron/PyBDSF"
Documentation = "https://pybdsf.readthedocs.io"
#########################
# cibuildwheel settings #
#########################
[tool.cibuildwheel]
before-all = "cibuildwheel/before_all.sh"
before-build = "cibuildwheel/before_build.sh"
build = "cp3{8,9,10,11,12}-*"
build-verbosity = 1
environment = """ \
BOOST_VERSION="1.85.0" \
BOOST_BUILD_DIR="/tmp/boost-build" \
BOOST_INSTALL_DIR="${HOME}/boost" \
BOOST_ROOT="${BOOST_INSTALL_DIR}" \
CC=gcc \
CXX=g++ \
CXXFLAGS="-I${BOOST_INSTALL_DIR}/include -L${BOOST_INSTALL_DIR}/lib" \
FC=gfortran \
LD_LIBRARY_PATH="${BOOST_INSTALL_DIR}/lib" \
"""
test-command = "cd {package}/test && python tbdsf_process_image.py"
[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"]
###########################
# setuptools_scm settings #
###########################
[tool.setuptools_scm]
version_file = "bdsf/_version.py"