From 50140081422c7e46ae0a2c3ecf8735147681622f Mon Sep 17 00:00:00 2001 From: Liam Keegan Date: Wed, 20 May 2026 10:27:18 +0200 Subject: [PATCH] Update license metadata format, bump actions --- .github/workflows/ci.yml | 6 +++--- .github/workflows/pypi.yml | 12 ++++++------ .pre-commit-config.yaml | 4 ++-- .readthedocs.yml | 4 ++-- pyproject.toml | 8 +++----- 5 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51753f6..d480063 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: submodules: "recursive" @@ -31,9 +31,9 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] python-version: ["3.12", "3.13", "3.14"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} allow-prereleases: true diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 49df91d..85cbc4a 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -10,12 +10,12 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-15-intel, macos-latest] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Build wheels - uses: pypa/cibuildwheel@v3.3 + uses: pypa/cibuildwheel@v3.4 - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: cibw-wheels-${{ matrix.os }} path: ./wheelhouse/*.whl @@ -24,12 +24,12 @@ jobs: name: Build source distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: cibw-sdist path: dist/*.tar.gz @@ -42,7 +42,7 @@ jobs: id-token: write if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v8 with: pattern: cibw-* merge-multiple: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41af163..2c5560f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: mixed-line-ending - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.3.1 + rev: 26.5.1 hooks: - id: black @@ -24,7 +24,7 @@ repos: - id: nbstripout - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v22.1.2 + rev: v22.1.5 hooks: - id: clang-format diff --git a/.readthedocs.yml b/.readthedocs.yml index d462055..cf4158c 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,9 +1,9 @@ version: 2 build: - os: "ubuntu-22.04" + os: "ubuntu-24.04" tools: - python: "3.12" + python: "3.14" sphinx: builder: html diff --git a/pyproject.toml b/pyproject.toml index 1992665..cde86d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,17 +7,16 @@ name = "pybind11-numpy-example" version = "1.0.1" description = "An example of using numpy with pybind11" readme = "README.md" -license = {text = "MIT"} +license = "MIT" +license-files = ["LICENSE.md"] authors=[{name="Liam Keegan", email="liam@keegan.ch"}] maintainers=[{name="Liam Keegan", email="liam@keegan.ch"}] -requires-python = ">=3.8" +requires-python = ">=3.10" dependencies = ["numpy"] keywords = ["pybind11", "cibuildwheel", "c++", "pypi", "numpy", "simple", "example", "wheel", "pypi", "conda-forge"] classifiers=[ "Programming Language :: C++", "Programming Language :: Python :: 3 :: Only", - "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", @@ -27,7 +26,6 @@ classifiers=[ "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", - "License :: OSI Approved :: MIT License", ] [project.urls]