Skip to content

Commit 8cac9a6

Browse files
committed
break: drop Python 3.7, manylinux2010 & musllinux_1_1
1 parent a7fc9bf commit 8cac9a6

File tree

5 files changed

+25
-59
lines changed

5 files changed

+25
-59
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -137,36 +137,6 @@ jobs:
137137
name: cibw-${{ runner.os }}-${{ matrix.build }}${{ matrix.arch }}
138138
path: ./wheelhouse/*.whl
139139

140-
build_manylinux2010_wheels:
141-
name: Build ${{ matrix.arch }} manylinux2010 wheels
142-
needs: [lint]
143-
runs-on: ubuntu-latest
144-
strategy:
145-
fail-fast: false
146-
matrix:
147-
include:
148-
- arch: "x86_64"
149-
- arch: "i686"
150-
151-
steps:
152-
- uses: actions/checkout@v4
153-
with:
154-
fetch-depth: 0 # required for versioneer to find tags
155-
156-
- name: Build wheels
157-
uses: pypa/[email protected]
158-
env:
159-
CIBW_ARCHS: "${{ matrix.arch }}"
160-
CIBW_BUILD: "cp39-manylinux_*"
161-
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2010"
162-
CIBW_MANYLINUX_I686_IMAGE: "manylinux2010"
163-
CIBW_BUILD_FRONTEND: "build"
164-
165-
- uses: actions/upload-artifact@v4
166-
with:
167-
name: cibw-manylinux2010-${{ matrix.arch }}
168-
path: ./wheelhouse/*.whl
169-
170140
build_sdist:
171141
name: Build source distribution
172142
needs: [lint]
@@ -282,7 +252,7 @@ jobs:
282252

283253
check_dist:
284254
name: Check dist
285-
needs: [build_wheels, build_manylinux2010_wheels, build_sdist, test_sdist, bootstrap_build]
255+
needs: [build_wheels, build_sdist, test_sdist, bootstrap_build]
286256
runs-on: ubuntu-latest
287257
steps:
288258
- uses: actions/download-artifact@v4

README.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,28 +52,29 @@ The following platforms are supported with binary wheels:
5252
| Windows | | 64-bit |
5353
| | | 32-bit |
5454
+---------------+---------------------------+
55-
| Linux Intel | | manylinux2010+ x86_64 |
56-
| | | musllinux_1_1+ x86_64 |
57-
| | | manylinux2010+ i686 |
58-
| | | musllinux_1_1+ i686 |
55+
| Linux Intel | | manylinux2014+ x86_64 |
56+
| | | musllinux_1_2+ x86_64 |
57+
| | | manylinux2014+ i686 |
58+
| | | musllinux_1_2+ i686 |
5959
+---------------+---------------------------+
6060
| Linux ARM | | manylinux2014+ AArch64 |
61-
| | | musllinux_1_1+ AArch64 |
61+
| | | musllinux_1_2+ AArch64 |
6262
| | | manylinux_2_31+ armv7l |
6363
| | | musllinux_1_2+ armv7l |
6464
+---------------+---------------------------+
6565
| Linux PowerPC | | manylinux2014+ ppc64le |
66-
| | | musllinux_1_1+ ppc64le |
66+
| | | musllinux_1_2+ ppc64le |
6767
+---------------+---------------------------+
6868
| Linux IBM Z | | manylinux2014+ s390x |
69-
| | | musllinux_1_1+ s390x |
69+
| | | musllinux_1_2+ s390x |
7070
+---------------+---------------------------+
7171
| macOS 10.10+ | Intel |
7272
+---------------+---------------------------+
7373
| macOS 11+ | Apple Silicon |
7474
+---------------+---------------------------+
7575

7676
The last version to provide ``manylinux1`` wheels was ``3.22.x``.
77+
The last version to provide Python 3.7 support and ``manylinux2010`` wheels was ``4.0.3``.
7778
The last version to provide Python 2 to Python 3.6 support was ``3.28.x``.
7879

7980
Maintainers

pyproject.toml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ classifiers = [
2626
"Topic :: Software Development :: Build Tools",
2727
"Typing :: Typed"
2828
]
29-
dependencies = [
30-
"importlib_metadata>=1.4; python_version<'3.8'",
31-
]
32-
requires-python = ">=3.7"
29+
requires-python = ">=3.8"
3330

3431
[project.urls]
3532
Homepage = "https://cmake.org"
@@ -101,11 +98,17 @@ build-verbosity = 1
10198
build-frontend = "build[uv]"
10299
config-settings."cmake.define.RUN_CMAKE_TEST" = "ON"
103100
environment = { CMAKE_PYTHON_DIST_FORCE_NINJA_DEP = "1" }
104-
musllinux-x86_64-image = "musllinux_1_1"
105-
musllinux-i686-image = "musllinux_1_1"
106-
musllinux-aarch64-image = "musllinux_1_1"
107-
musllinux-ppc64le-image = "musllinux_1_1"
108-
musllinux-s390x-image = "musllinux_1_1"
101+
manylinux-x86_64-image = "manylinux2014"
102+
manylinux-i686-image = "manylinux2014"
103+
manylinux-aarch64-image = "manylinux2014"
104+
manylinux-ppc64le-image = "manylinux2014"
105+
manylinux-s390x-image = "manylinux2014"
106+
manylinux-armv7l-image = "manylinux_2_31"
107+
musllinux-x86_64-image = "musllinux_1_2"
108+
musllinux-i686-image = "musllinux_1_2"
109+
musllinux-aarch64-image = "musllinux_1_2"
110+
musllinux-ppc64le-image = "musllinux_1_2"
111+
musllinux-s390x-image = "musllinux_1_2"
109112
musllinux-armv7l-image = "musllinux_1_2"
110113

111114
[[tool.cibuildwheel.overrides]]
@@ -131,7 +134,7 @@ inherit.config-settings = "append"
131134
# disable some tests
132135
# - BootstrapTest fails with custom OpenSSL and probably does not make much sense for this project
133136
# - ExportImport|RunCMake.install|RunCMake.file-GET_RUNTIME_DEPENDENCIES: c.f. https://discourse.cmake.org/t/cmake-test-suite-failing-on-alpine-linux/5064
134-
config-settings."cmake.define.RUN_CMAKE_TEST_EXCLUDE" = "BootstrapTest|ExportImport|RunCMake.install|RunCMake.RuntimePath|RunCMake.file-GET_RUNTIME_DEPENDENCIES"
137+
config-settings."cmake.define.RUN_CMAKE_TEST_EXCLUDE" = "BootstrapTest|CTestTestFdSetSize|ExportImport|RunCMake.install|RunCMake.RuntimePath|RunCMake.file-GET_RUNTIME_DEPENDENCIES"
135138

136139
[[tool.cibuildwheel.overrides]]
137140
select = ["*-musllinux_armv7l"]
@@ -149,7 +152,7 @@ inherit.config-settings = "append"
149152
config-settings."cmake.define.RUN_CMAKE_TEST" = "OFF"
150153

151154
[[tool.cibuildwheel.overrides]]
152-
select = ["*-musllinux_s390x"]
155+
select = ["*-musllinux_{ppc64le,s390x}"]
153156
build-frontend = "pip"
154157

155158

src/cmake/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
import os
44
import subprocess
55
import sys
6+
from importlib.metadata import distribution
67
from pathlib import Path
78

8-
if sys.version_info < (3, 8):
9-
from importlib_metadata import distribution
10-
else:
11-
from importlib.metadata import distribution
12-
139
from ._version import version as __version__
1410

1511
TYPE_CHECKING = False

tests/test_cmake.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@
33
import sys
44
import sysconfig
55
import textwrap
6+
from importlib.metadata import distribution
67

78
import pytest
89

9-
if sys.version_info < (3, 8):
10-
from importlib_metadata import distribution
11-
else:
12-
from importlib.metadata import distribution
13-
1410
import cmake
1511

1612
from . import push_argv

0 commit comments

Comments
 (0)