-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
116 lines (101 loc) · 3.44 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
109
110
111
112
113
114
115
116
[project]
name = "coffe"
dynamic = ["version"]
description = "Python wrapper for the COrrelation Function Full-sky Estimator code"
readme = "README.md"
requires-python = ">=3.8,<3.13"
authors = [
{name = "Goran Jelic-Cizmek", email = "[email protected]"},
]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved",
"Programming Language :: Cython",
"Programming Language :: C",
"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 :: Physics",
]
dependencies = [
"numpy>=1.19.5,<2",
]
optional-dependencies.test = [
"scipy",
"pandas",
"pytest",
]
optional-dependencies.docs = [
"pdoc",
]
optional-dependencies.dev = [
"pylint",
"mypy",
"isort",
"reorder-python-imports",
"autoimport",
"black",
"cibuildwheel",
"cmakelang",
]
optional-dependencies.all = ["coffe[test,docs,dev]"]
[project.scripts]
coffe-cli = "coffe.__main__:main"
[project.urls]
repository = "https://github.com/JCGoran/coffe"
[tool.cibuildwheel]
skip = ["cp36-*", "cp37-*", "pp*", "pypy*", "*musllinux*"]
test-requires = ["pytest", "scipy", "pandas"]
test-command = ["python -c 'import coffe'", "pytest -vvv -k test_power_spectrum {package}/tests"]
[tool.cibuildwheel.macos]
before-all = [
# install CUBA, FFTW, GSL, libconfig, and CLASS
"python -m pip install conan",
"conan profile detect --force",
"conan install . --output-folder=_build --build=missing",
"bash scripts/install_other.sh cuba class",
]
# `SKBUILD_CMAKE_ARGS` overrides everything, so our `cmake.define`s need to be placed here as well
environment = { SKBUILD_CMAKE_ARGS = "-DCOFFE_ENABLE_CLASS=ON;-DCOFFE_ENABLE_CUBA=ON;-DCOFFE_ENABLE_MATHOPTS=ON;-DCOFFE_ENABLE_PYTHON=ON;-DCMAKE_TOOLCHAIN_FILE=_build/conan_toolchain.cmake;-DCOFFE_PYTHON_MINOR_VERSION=$(python -c 'import sys;print(sys.version_info.minor)')", MACOSX_DEPLOYMENT_TARGET = "11.0" }
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64"
archs = ["x86_64"]
before-all = [
# install CUBA, FFTW, GSL, libconfig, and CLASS
"bash scripts/install_other.sh gsl libconfig fftw cuba class",
]
environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"]
[build-system]
requires = [
"scikit-build-core", "cython<3", "setuptools-scm>=8.0.0",
]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
wheel.packages = ["python/coffe"]
logging.level = "DEBUG"
# we want the wheels to basically have 2 kinds of files:
# - *.py sources
# - *.so or *.dylib shared libraries built with Cython
wheel.exclude = ["**.pyx", "CMakeLists.txt", "**.pxd"]
[tool.scikit-build.cmake]
verbose = true
version = ">=3.15.0"
[tool.scikit-build.cmake.define]
COFFE_ENABLE_CLASS = "ON"
COFFE_ENABLE_PYTHON = "ON"
COFFE_ENABLE_MATHOPTS = "ON"
COFFE_ENABLE_CUBA = "ON"
[[tool.scikit-build.overrides]]
if.platform-system = "darwin"
cmake.define.CMAKE_TOOLCHAIN_FILE="_build/conan_toolchain.cmake"
cmake.define.COFFE_ENABLE_CLASS = "ON"
cmake.define.COFFE_ENABLE_PYTHON = "ON"
cmake.define.COFFE_ENABLE_MATHOPTS = "ON"
cmake.define.COFFE_ENABLE_CUBA = "ON"
[tool.setuptools_scm]