Skip to content

Commit 32d29aa

Browse files
authored
ci: use a constraint file for dependencies used during the build (#58)
1 parent 57b2f1a commit 32d29aa

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

constraints-ci.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cmake==3.21.0
2+
ninja==1.10.0.post2

pyproject.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[tool.cibuildwheel]
66
build = "cp39-*"
77
before-all = [
8-
"pipx install cmake==3.20.4",
8+
"pipx install -f --pip-args=\"-c {project}/constraints-ci.txt\" cmake",
99
"cmake --version",
1010
]
1111
before-build = "pip install -r requirements-repair.txt"
@@ -14,17 +14,20 @@ test-extras = "test"
1414
test-command = "pytest {project}/tests"
1515

1616
[tool.cibuildwheel.linux]
17-
manylinux-x86_64-image = "manylinux1"
18-
manylinux-i686-image = "manylinux1"
17+
manylinux-x86_64-image = "quay.io/pypa/manylinux1_x86_64:2021-07-04-13bcf48"
18+
manylinux-i686-image = "quay.io/pypa/manylinux1_i686:2021-07-04-13bcf48"
19+
manylinux-aarch64-image = "quay.io/pypa/manylinux2014_aarch64:2021-07-04-1e3ce39"
20+
manylinux-ppc64le-image = "quay.io/pypa/manylinux2014_ppc64le:2021-07-04-1e3ce39"
21+
manylinux-s390x-image = "quay.io/pypa/manylinux2014_s390x:2021-07-04-1e3ce39"
1922

2023
[tool.cibuildwheel.macos.environment]
2124
MACOSX_DEPLOYMENT_TARGET = "10.9"
2225

2326
[tool.cibuildwheel.windows]
2427
before-all = [
25-
"pipx install cmake==3.20.4",
28+
"pipx install -f --pip-args=\"-c {project}/constraints-ci.txt\" cmake",
2629
"cmake --version",
27-
"pipx install ninja==1.10.0.post2",
30+
"pipx install -f --pip-args=\"-c {project}/constraints-ci.txt\" ninja",
2831
"ninja --version",
2932
]
3033

0 commit comments

Comments
 (0)