diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 601ecc4..c4211f4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -103,7 +103,6 @@ jobs: - "3.10" - "3.11" - "3.12" - - "3.13.0-alpha - 3.13.0" os: [ubuntu-20.04, macos-11, windows-latest] exclude: - os: macos-11 @@ -152,31 +151,7 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - - name: Install Build Dependencies (3.13.0-alpha - 3.13.0) - no Windows - if: > - matrix.python-version == '3.13.0-alpha - 3.13.0' - && !startsWith(runner.os, 'Windows') - run: | - pip install -U pip - pip install -U setuptools wheel twine - # cffi will probably have no public release until a Python 3.13 beta - # or even RC release, see https://github.com/python-cffi/cffi/issues/23 - echo "cffi @ git+https://github.com/python-cffi/cffi.git@954cab4f889fb019a7f90df153ee1be501495f58" > cffi_constraint.txt - PIP_CONSTRAINT=$PWD/cffi_constraint.txt pip install cffi - - name: Install Build Dependencies (3.13.0-alpha - 3.13.0) - on Windows - if: > - matrix.python-version == '3.13.0-alpha - 3.13.0' - && startsWith(runner.os, 'Windows') - run: | - # cffi will probably have no public release until a Python 3.13 beta - # or even RC release, see https://github.com/python-cffi/cffi/issues/23 - echo "cffi @ git+https://github.com/python-cffi/cffi.git@954cab4f889fb019a7f90df153ee1be501495f58" > cffi_constraint.txt - set PIP_CONSTRAINT=%cd%\cffi_constraint.txt - pip install cffi - pip install -U pip - pip install -U setuptools wheel twine - name: Install Build Dependencies - if: matrix.python-version != '3.13.0-alpha - 3.13.0' run: | pip install -U pip pip install -U setuptools wheel twine cffi @@ -220,33 +195,7 @@ jobs: python setup.py build_ext -i python setup.py bdist_wheel - - name: Install ExtensionClass and dependencies (3.13.0-alpha - 3.13.0) - no Windows - if: > - matrix.python-version == '3.13.0-alpha - 3.13.0' - && !startsWith(runner.os, 'Windows') - run: | - # Install to collect dependencies into the (pip) cache. - # cffi will probably have no public release until a Python 3.13 beta - # or even RC release, see https://github.com/python-cffi/cffi/issues/23 - echo "cffi @ git+https://github.com/python-cffi/cffi.git@954cab4f889fb019a7f90df153ee1be501495f58" > cffi_constraint.txt - # Use "--pre" here because dependencies with support for this future - # Python release may only be available as pre-releases - PIP_CONSTRAINT=$PWD/cffi_constraint.txt pip install --pre .[test] - - name: Install ExtensionClass and dependencies (3.13.0-alpha - 3.13.0) - on Windows - if: > - matrix.python-version == '3.13.0-alpha - 3.13.0' - && startsWith(runner.os, 'Windows') - run: | - # Install to collect dependencies into the (pip) cache. - # cffi will probably have no public release until a Python 3.13 beta - # or even RC release, see https://github.com/python-cffi/cffi/issues/23 - echo "cffi @ git+https://github.com/python-cffi/cffi.git@954cab4f889fb019a7f90df153ee1be501495f58" > cffi_constraint.txt - # Use "--pre" here because dependencies with support for this future - # Python release may only be available as pre-releases - set PIP_CONSTRAINT=%cd%\cffi_constraint.txt - pip install --pre .[test] - name: Install ExtensionClass and dependencies - if: matrix.python-version != '3.13.0-alpha - 3.13.0' run: | # Install to collect dependencies into the (pip) cache. pip install .[test] @@ -290,7 +239,6 @@ jobs: && startsWith(github.ref, 'refs/tags') && startsWith(runner.os, 'Mac') && !startsWith(matrix.python-version, 'pypy') - && !startsWith(matrix.python-version, '3.13.0-alpha - 3.13.0') env: TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} run: | @@ -310,7 +258,6 @@ jobs: - "3.10" - "3.11" - "3.12" - - "3.13.0-alpha - 3.13.0" os: [ubuntu-20.04, macos-11, windows-latest] exclude: - os: macos-11 @@ -364,47 +311,7 @@ jobs: with: name: ExtensionClass-${{ runner.os }}-${{ matrix.python-version }}.whl path: dist/ - - name: Install ExtensionClass 3.13.0-alpha - 3.13.0 ${{ matrix.python-version }}- no Windows - if: > - matrix.python-version == '3.13.0-alpha - 3.13.0' - && !startsWith(runner.os, 'Windows') - run: | - pip install -U wheel setuptools - # cffi will probably have no public release until a beta or even RC - # version of Python 3.13, see https://github.com/python-cffi/cffi/issues/23 - echo 'cffi @ git+https://github.com/python-cffi/cffi.git@954cab4f889fb019a7f90df153ee1be501495f58 ; platform_python_implementation == "CPython"' > cffi_constraint.txt - # coverage has a wheel on PyPI for a future python version which is - # not ABI compatible with the current one, so build it from sdist: - pip install -U --no-binary :all: coverage - # Unzip into src/ so that testrunner can find the .so files - # when we ask it to load tests from that directory. This - # might also save some build time? - unzip -n dist/ExtensionClass-*whl -d src - # Use "--pre" here because dependencies with support for this future - # Python release may only be available as pre-releases - PIP_CONSTRAINT=$PWD/cffi_constraint.txt pip install --pre -U -e .[test] - - name: Install ExtensionClass 3.13.0-alpha - 3.13.0 - on Windows - if: > - matrix.python-version == '3.13.0-alpha - 3.13.0' - && startsWith(runner.os, 'Windows') - run: | - pip install -U wheel setuptools - # cffi will probably have no public release until a beta or even RC - # version of Python 3.13, see https://github.com/python-cffi/cffi/issues/23 - echo 'cffi @ git+https://github.com/python-cffi/cffi.git@954cab4f889fb019a7f90df153ee1be501495f58 ; platform_python_implementation == "CPython"' > cffi_constraint.txt - # coverage has a wheel on PyPI for a future python version which is - # not ABI compatible with the current one, so build it from sdist: - pip install -U --no-binary :all: coverage - # Unzip into src/ so that testrunner can find the .so files - # when we ask it to load tests from that directory. This - # might also save some build time? - unzip -n dist/ExtensionClass-*whl -d src - # Use "--pre" here because dependencies with support for this future - # Python release may only be available as pre-releases - set PIP_CONSTRAINT=%cd%\cffi_constraint.txt - pip install --pre -U -e .[test] - name: Install ExtensionClass - if: ${{ !startsWith(matrix.python-version, '3.13.0-alpha - 3.13.0') }} run: | pip install -U wheel setuptools pip install -U coverage diff --git a/.manylinux-install.sh b/.manylinux-install.sh index fd62ab3..d74f6e0 100755 --- a/.manylinux-install.sh +++ b/.manylinux-install.sh @@ -28,7 +28,6 @@ yum -y install libffi-devel tox_env_map() { case $1 in - *"cp313"*) echo 'py313';; *"cp37"*) echo 'py37';; *"cp38"*) echo 'py38';; *"cp39"*) echo 'py39';; @@ -42,20 +41,14 @@ tox_env_map() { # Compile wheels for PYBIN in /opt/python/*/bin; do if \ - [[ "${PYBIN}" == *"cp313"* ]] || \ [[ "${PYBIN}" == *"cp311"* ]] || \ [[ "${PYBIN}" == *"cp312"* ]] || \ [[ "${PYBIN}" == *"cp37"* ]] || \ [[ "${PYBIN}" == *"cp38"* ]] || \ [[ "${PYBIN}" == *"cp39"* ]] || \ [[ "${PYBIN}" == *"cp310"* ]] ; then - if [[ "${PYBIN}" == *"cp313"* ]] ; then - "${PYBIN}/pip" install --pre -e /io/ - "${PYBIN}/pip" wheel /io/ --pre -w wheelhouse/ - else - "${PYBIN}/pip" install -e /io/ - "${PYBIN}/pip" wheel /io/ -w wheelhouse/ - fi + "${PYBIN}/pip" install -e /io/ + "${PYBIN}/pip" wheel /io/ -w wheelhouse/ if [ `uname -m` == 'aarch64' ]; then cd /io/ ${PYBIN}/pip install tox diff --git a/.meta.toml b/.meta.toml index f2aea30..ba921c3 100644 --- a/.meta.toml +++ b/.meta.toml @@ -2,13 +2,13 @@ # https://github.com/zopefoundation/meta/tree/master/config/c-code [meta] template = "c-code" -commit-id = "32bb1a75" +commit-id = "8daa034c" [python] with-windows = true with-pypy = true with-sphinx-doctests = false -with-future-python = true +with-future-python = false with-macos = false with-docs = false diff --git a/tox.ini b/tox.ini index 120acd9..69f37fc 100644 --- a/tox.ini +++ b/tox.ini @@ -10,13 +10,11 @@ envlist = py310,py310-pure py311,py311-pure py312,py312-pure - py313,py313-pure pypy3 coverage [testenv] usedevelop = true -pip_pre = py313: true deps = setenv = pure: PURE_PYTHON=1