Skip to content

Commit

Permalink
Support Python 3.13a3 by installing not yet released packages. (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac authored Jan 23, 2024
1 parent 0160ca3 commit e45966c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/c-code/tests.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,22 @@ jobs:
steps:
{% include 'tests-cache.j2' %}

{% if with_future_python %}
- name: Install Build Dependencies (%(future_python_version)s)
if: matrix.python-version == '%(future_python_version)s'
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
pip install -U "cffi @ https://github.com/python-cffi/cffi/archive/refs/heads/main.zip"
# twine has no release for 3.13, yet, see https://github.com/pypa/twine/issues/1030
pip install -U "git+https://github.com/pypa/twine.git#egg=twine"
{% endif %}
- name: Install Build Dependencies
{% if with_future_python %}
if: matrix.python-version != '%(future_python_version)s'
{% endif %}
run: |
pip install -U pip
pip install -U setuptools wheel twine cffi
Expand Down Expand Up @@ -241,6 +256,9 @@ jobs:
if: ${{ startsWith(matrix.python-version, '%(future_python_version)s') }}
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
pip install -U 'cffi @ https://github.com/python-cffi/cffi/archive/refs/heads/main.zip ; platform_python_implementation == "CPython"'
# 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
Expand Down

0 comments on commit e45966c

Please sign in to comment.