ci: Test on Python 3.13 alpha

This commit is contained in:
Valentin Lorentz 2024-05-05 19:04:12 +02:00 committed by Val Lorentz
parent 9ae7690484
commit b1ba8ecb2a
2 changed files with 10 additions and 4 deletions

View File

@ -15,7 +15,11 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- python-version: "3.12.0-alpha.7" - python-version: "3.13.0-alpha.6"
with-opt-deps: false # https://github.com/pyca/cryptography/issues/10806
runs-on: ubuntu-22.04
- python-version: "3.12.0"
with-opt-deps: true with-opt-deps: true
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -67,7 +71,7 @@ jobs:
- name: Upgrade pip - name: Upgrade pip
run: | run: |
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip setuptools
- name: Install optional dependencies - name: Install optional dependencies
if: ${{ matrix.with-opt-deps }} if: ${{ matrix.with-opt-deps }}

View File

@ -49,10 +49,12 @@ except ImportError:
install. This package is pretty standard, and often installed alongside install. This package is pretty standard, and often installed alongside
Python, but it is missing on your system. Python, but it is missing on your system.
Try installing it with your package manager, it is usually called Try installing it with your package manager, it is usually called
'python3-setuptools'. If that does not work, try installing python3-pip 'python3-setuptools'; or with '%s -m pip install setuptools'.
If that does not work, try installing python3-pip
instead, either with your package manager or by following these instead, either with your package manager or by following these
instructions: https://pip.pypa.io/en/stable/installation/ (replace instructions: https://pip.pypa.io/en/stable/installation/ (replace
'python' with 'python3' in all the commands)""") 'python' with 'python3' in all the commands)"""
% sys.executable)
sys.stderr.write(os.linesep*2) sys.stderr.write(os.linesep*2)
sys.stderr.write(textwrap.fill(s)) sys.stderr.write(textwrap.fill(s))
sys.stderr.write(os.linesep*2) sys.stderr.write(os.linesep*2)