Skip to content

Commit 90f61de

Browse files
authored
feat: drop Python <3.9 (#152)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent acaabdf commit 90f61de

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

.github/workflows/conda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
platform: [ubuntu-latest, macos-12, windows-2019]
16-
python-version: ["3.8", "3.11"]
16+
python-version: ["3.9", "3.11"]
1717

1818
runs-on: ${{ matrix.platform }}
1919

.github/workflows/pip.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
platform: [windows-latest, macos-13, ubuntu-latest]
18-
python-version: ["3.7", "3.12", "pypy-3.9"]
17+
platform: [windows-latest, macos-latest, ubuntu-latest]
18+
python-version: ["3.9", "3.13", "pypy-3.10"]
1919

2020
steps:
2121
- uses: actions/checkout@v4
2222

2323
- uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
26+
allow-prereleases: true
2627

2728
- name: Build and install
2829
run: pip install --verbose .[test]

.github/workflows/wheels.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
47+
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
4848

4949
steps:
5050
- uses: actions/checkout@v4
5151
with:
5252
submodules: true
5353

54-
- uses: yezz123/setup-uv@v4
54+
- uses: astral-sh/setup-uv@v3
5555

5656
- uses: pypa/[email protected]
5757
env:
@@ -76,6 +76,7 @@ jobs:
7676
environment: pypi
7777
permissions:
7878
id-token: write
79+
attestations: write
7980

8081
steps:
8182
- uses: actions/setup-python@v5
@@ -88,4 +89,11 @@ jobs:
8889
merge-multiple: true
8990
path: dist
9091

92+
- name: Generate artifact attestation for sdist and wheels
93+
uses: actions/attest-build-provenance@v1
94+
with:
95+
subject-path: "dist/*"
96+
9197
- uses: pypa/gh-action-pypi-publish@release/v1
98+
with:
99+
attestations: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
An example project built with [pybind11][] and [scikit-build-core][]. Python
12-
3.7+ (see older commits for older versions of Python using [scikit-build (classic)][]).
12+
3.9+ (see older commits for 3.7+, or even older versions of Python using [scikit-build (classic)][]).
1313

1414

1515
[gitter-badge]: https://badges.gitter.im/pybind/Lobby.svg

pyproject.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["scikit-build-core>=0.3.3", "pybind11"]
2+
requires = ["scikit-build-core>=0.10", "pybind11"]
33
build-backend = "scikit_build_core.build"
44

55

@@ -11,7 +11,7 @@ readme = "README.md"
1111
authors = [
1212
{ name = "My Name", email = "[email protected]" },
1313
]
14-
requires-python = ">=3.7"
14+
requires-python = ">=3.9"
1515
classifiers = [
1616
"Development Status :: 4 - Beta",
1717
"License :: OSI Approved :: MIT License",
@@ -22,6 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: 3.10",
2323
"Programming Language :: Python :: 3.11",
2424
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
2526
]
2627

2728
[project.optional-dependencies]
@@ -30,10 +31,11 @@ test = ["pytest"]
3031

3132
[tool.scikit-build]
3233
wheel.expand-macos-universal-tags = true
34+
minimum-version = "build-system.requires"
3335

3436

3537
[tool.pytest.ini_options]
36-
minversion = "6.0"
38+
minversion = "8.0"
3739
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
3840
xfail_strict = true
3941
log_cli_level = "INFO"
@@ -50,13 +52,8 @@ test-command = "pytest {project}/tests"
5052
test-extras = ["test"]
5153

5254
[tool.cibuildwheel.pyodide]
53-
environment.CFLAGS = "-fexceptions"
54-
environment.LDFLAGS = "-fexceptions"
5555
build-frontend = {name = "build", args = ["--exports", "whole_archive"]}
5656

57-
[tool.ruff]
58-
src = ["src"]
59-
6057
[tool.ruff.lint]
6158
extend-select = [
6259
"B", # flake8-bugbear

0 commit comments

Comments
 (0)