From bd5b440a67f3c7e792ccd890c32242a6ea9e7f1c Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 14 Aug 2023 12:51:16 -0400 Subject: [PATCH] chore: updates for 3.12 Signed-off-by: Henry Schreiner --- .github/workflows/tests.yml | 7 +++++-- .github/workflows/weekly.yml | 4 ++-- .github/workflows/wheels.yml | 2 +- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 -- setup.cfg | 1 + 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d1b5986..3a618f19 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -57,10 +57,11 @@ jobs: cmake: runs-on: ubuntu-latest + env: PIP_ONLY_BINARY=numpy strategy: fail-fast: false matrix: - python-version: ["3.7", "3.9", "3.11", "pypy3.8"] + python-version: ["3.7", "3.9", "3.12", "pypy3.9"] include: - python-version: "3.8" cmake-extras: "-DCMAKE_CXX_STANDARD=17" @@ -76,6 +77,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prerelease-versions: true - name: Install python tools run: python -m pip install -r dev-requirements.txt pytest-github-actions-annotate-failures @@ -106,8 +108,9 @@ jobs: - uses: pypa/cibuildwheel@v2.15 env: - CIBW_BUILD: cp38-win32 cp310-manylinux_x86_64 cp37-macosx_x86_64 + CIBW_BUILD: cp38-win32 cp312-manylinux_x86_64 cp37-macosx_x86_64 CIBW_BUILD_VERBOSITY: 1 + CIBW_ENVIRONMENT: "PIP_ONLY_BINARY=:all:" - uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index 875b5869..fae9dddb 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -7,7 +7,7 @@ on: jobs: basic: - name: Head on Python 3.8 + name: Head on Python 3.11 runs-on: ubuntu-latest steps: @@ -21,7 +21,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: "3.11" - name: Build and install wheel run: pip install -v .[test] diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index abd12f9b..c5caec5c 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -55,7 +55,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - python: [37, 38, 39, 310, 311] + python: [37, 38, 39, 310, 311, 312] arch: [aarch64] steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 69dd19aa..72f9dfe2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: rev: v2.4.0 hooks: - id: setup-cfg-fmt - args: [--include-version-classifiers, --min-py3-version=3.7, --max-py-version=3.11] + args: [--include-version-classifiers, --min-py3-version=3.7, --max-py-version=3.12] - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.0.281" diff --git a/pyproject.toml b/pyproject.toml index eb3550a7..6163d1d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,8 +87,6 @@ test-extras = "test" test-command = "pytest --benchmark-disable {project}/tests" test-skip = ["pp*", "*universal2:arm64", "*musllinux*"] skip = ["pp*-manylinux_i686"] # not supported by NumPy -manylinux-x86_64-image = "manylinux2014" -manylinux-i686-image = "manylinux2014" environment-pass = ["SETUPTOOLS_SCM_PRETEND_VERSION"] [tool.pylint] diff --git a/setup.cfg b/setup.cfg index 5b97ccf8..29662d43 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,6 +29,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy Topic :: Scientific/Engineering