diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a03c27cf..99e509df 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -57,10 +57,12 @@ 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 +78,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install python tools run: python -m pip install -r dev-requirements.txt pytest-github-actions-annotate-failures @@ -104,10 +107,11 @@ jobs: submodules: true fetch-depth: 0 - - uses: pypa/cibuildwheel@v2.14 + - 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 6dee41e7..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: @@ -73,7 +73,7 @@ jobs: with: platforms: all - - uses: pypa/cibuildwheel@v2.14 + - uses: pypa/cibuildwheel@v2.15 env: CIBW_BUILD: cp${{ matrix.python }}-manylinux_* CIBW_ARCHS: ${{ matrix.arch }} @@ -115,7 +115,7 @@ jobs: shell: bash run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}" >> $GITHUB_ENV - - uses: pypa/cibuildwheel@v2.14 + - uses: pypa/cibuildwheel@v2.15 env: CIBW_BUILD: ${{ matrix.build }} CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index afaab8e4..839049a7 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.282" 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..1acbeea8 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 @@ -56,7 +57,7 @@ packages = boost_histogram._internal boost_histogram.axis install_requires = - numpy>=1.13.3 + numpy typing-extensions;python_version<'3.8' python_requires = >=3.7 include_package_data = True