Skip to content

Commit

Permalink
Add Python 3.13 to supported versions
Browse files Browse the repository at this point in the history
- use 3.13 together with allow-prereleases in CI
  this ensures that the released version is used as soon as available
  (currently rc3 is used, which should be identical to 3.13.0)
  • Loading branch information
mrbean-bremen committed Oct 7, 2024
1 parent b9d7b1d commit ad84fd3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13-dev"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
include:
- python-version: "pypy-3.7"
os: ubuntu-latest
Expand All @@ -50,6 +50,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Get pip cache dir
id: pip-cache
Expand Down Expand Up @@ -84,20 +85,16 @@ jobs:
fi
shell: bash
- name: Install extra dependencies
if: ${{ matrix.python-version != 'pypy-3.10' && ( matrix.python-version != '3.13-dev' || matrix.os != 'windows-latest' ) }}
if: ${{ matrix.python-version != 'pypy-3.10' }}
run: |
pip install -r extra_requirements.txt
pip install -r legacy_requirements.txt
if [[ '${{ matrix.python-version }}' != '3.13-dev' ]]; then
pip install zstandard cffi # needed to test #910
fi
pip install zstandard cffi # needed to test #910
shell: bash
- name: Run unit tests with extra packages as non-root user
if: ${{ matrix.python-version != 'pypy-3.10' && ( matrix.python-version != '3.13-dev' || matrix.os != 'windows-latest' ) }}
if: ${{ matrix.python-version != 'pypy-3.10' }}
run: |
if [[ '${{ matrix.python-version }}' != '3.13-dev' ]]; then
export PYTHON_ZSTANDARD_IMPORT_POLICY=cffi # needed to test #910
fi
export PYTHON_ZSTANDARD_IMPORT_POLICY=cffi # needed to test #910
python -m pyfakefs.tests.all_tests
shell: bash
- name: Run performance tests
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ The released versions correspond to PyPI releases.

## Unreleased

### Changes
* officially support Python 3.13

### Enhancements
* the `additional_skip_names` parameter now works with more modules (see [#1023](../../issues/1023))
* added support for `os.fchmod`, allow file descriptor argument for `os.chmod` only for POSIX
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ for more information about the limitations of pyfakefs.
### Continuous integration

pyfakefs is currently automatically tested on Linux, macOS and Windows, with
Python 3.7 to 3.12, and with PyPy3 on Linux, using
Python 3.7 to 3.13, and with PyPy3 on Linux, using
[GitHub Actions](https://github.com/pytest-dev/pyfakefs/actions).

### Running pyfakefs unit tests
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ classifiers =
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Operating System :: POSIX
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{37,38,39,310,311,312}
py{37,38,39,310,311,312,313}
pypy{37,39,310}

[testenv]
Expand Down

0 comments on commit ad84fd3

Please sign in to comment.