-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (83 loc) · 3.73 KB
/
pyproject.toml
File metadata and controls
92 lines (83 loc) · 3.73 KB
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
[build-system]
requires = ["scikit-build-core>=0.10", "pybind11>=2.12"]
build-backend = "scikit_build_core.build"
[project]
name = "chromacal"
version = "0.1.0"
description = "ColorChecker camera calibration: detect, solve, apply. Log-polynomial tone curve + CCM via Ceres, OCIO 3D LUT export."
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "Kevin Blackburn-Matzen" },
]
keywords = [
"color-calibration",
"colorchecker",
"camera-calibration",
"color-correction",
"color-science",
"opencv",
"opencolorio",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Video",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = [
"numpy",
]
[project.urls]
Homepage = "https://github.com/kmatzen/chromacal"
Repository = "https://github.com/kmatzen/chromacal"
Issues = "https://github.com/kmatzen/chromacal/issues"
[tool.scikit-build]
cmake.args = ["-DCHROMACAL_BUILD_PYTHON=ON"]
wheel.packages = ["src/chromacal"]
[tool.scikit-build.cmake.define]
CHROMACAL_BUILD_PYTHON = "ON"
CHROMACAL_BUILD_TESTS = "OFF"
CHROMACAL_BUILD_EXAMPLES = "OFF"
[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-* cp313-*"
skip = "*-win32 *-musllinux_* *_ppc64le *_s390x"
test-command = "python -c \"import chromacal; print(f'chromacal {chromacal.__version__} OK')\""
[tool.cibuildwheel.linux]
before-all = [
"yum install -y epel-release || true",
"yum install -y eigen3-devel || true",
"pip install cmake",
# Build OpenCV with contrib (mcc module) from source — distro only has 3.4
"git clone --depth 1 --branch 4.10.0 https://github.com/opencv/opencv.git /tmp/opencv",
"git clone --depth 1 --branch 4.10.0 https://github.com/opencv/opencv_contrib.git /tmp/opencv_contrib",
"cmake -S /tmp/opencv -B /tmp/opencv/build -DOPENCV_EXTRA_MODULES_PATH=/tmp/opencv_contrib/modules -DBUILD_LIST=core,imgproc,calib3d,mcc -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_opencv_apps=OFF -DBUILD_opencv_python3=OFF -DWITH_FFMPEG=OFF -DWITH_GTK=OFF -DWITH_V4L=OFF -DCMAKE_BUILD_TYPE=Release",
"cmake --build /tmp/opencv/build -j$(nproc) && cmake --install /tmp/opencv/build",
# Build Ceres from source
"git clone --depth 1 --branch 2.2.0 https://github.com/ceres-solver/ceres-solver.git /tmp/ceres",
"cmake -S /tmp/ceres -B /tmp/ceres/build -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DMINIGLOG=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DEigen3_DIR=/usr/share/eigen3",
"cmake --build /tmp/ceres/build -j$(nproc) && cmake --install /tmp/ceres/build",
# Build OpenColorIO from source
"git clone --depth 1 --branch v2.5.1 https://github.com/AcademySoftwareFoundation/OpenColorIO.git /tmp/ocio",
"cmake -S /tmp/ocio -B /tmp/ocio/build -DOCIO_BUILD_APPS=OFF -DOCIO_BUILD_TESTS=OFF -DOCIO_BUILD_GPU_TESTS=OFF -DOCIO_BUILD_PYTHON=OFF -DCMAKE_BUILD_TYPE=Release",
"cmake --build /tmp/ocio/build -j$(nproc) && cmake --install /tmp/ocio/build",
]
environment = { CMAKE_PREFIX_PATH = "/usr/local", Eigen3_DIR="/usr/share/eigen3" }
[tool.cibuildwheel.macos]
before-all = [
"brew install eigen ceres-solver opencolorio opencv",
]
[tool.cibuildwheel.macos.environment]
CMAKE_PREFIX_PATH = "/opt/homebrew;/usr/local"
MACOSX_DEPLOYMENT_TARGET = "14.0"