Skip to content

Commit 800c88d

Browse files
committed
Add Python 3.13 to supported versions
- 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)
1 parent b9d7b1d commit 800c88d

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

.github/workflows/testsuite.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
os: [ubuntu-latest, macOS-latest, windows-latest]
35-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13-dev"]
35+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
3636
include:
3737
- python-version: "pypy-3.7"
3838
os: ubuntu-latest
@@ -50,6 +50,7 @@ jobs:
5050
uses: actions/setup-python@v5
5151
with:
5252
python-version: ${{ matrix.python-version }}
53+
allow-prereleases: true
5354

5455
- name: Get pip cache dir
5556
id: pip-cache
@@ -84,20 +85,16 @@ jobs:
8485
fi
8586
shell: bash
8687
- name: Install extra dependencies
87-
if: ${{ matrix.python-version != 'pypy-3.10' && ( matrix.python-version != '3.13-dev' || matrix.os != 'windows-latest' ) }}
88+
if: ${{ matrix.python-version != 'pypy-3.10' }}
8889
run: |
8990
pip install -r extra_requirements.txt
9091
pip install -r legacy_requirements.txt
91-
if [[ '${{ matrix.python-version }}' != '3.13-dev' ]]; then
92-
pip install zstandard cffi # needed to test #910
93-
fi
92+
pip install zstandard cffi # needed to test #910
9493
shell: bash
9594
- name: Run unit tests with extra packages as non-root user
96-
if: ${{ matrix.python-version != 'pypy-3.10' && ( matrix.python-version != '3.13-dev' || matrix.os != 'windows-latest' ) }}
95+
if: ${{ matrix.python-version != 'pypy-3.10' }}
9796
run: |
98-
if [[ '${{ matrix.python-version }}' != '3.13-dev' ]]; then
99-
export PYTHON_ZSTANDARD_IMPORT_POLICY=cffi # needed to test #910
100-
fi
97+
export PYTHON_ZSTANDARD_IMPORT_POLICY=cffi # needed to test #910
10198
python -m pyfakefs.tests.all_tests
10299
shell: bash
103100
- name: Run performance tests

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ The released versions correspond to PyPI releases.
1414

1515
## Unreleased
1616

17+
### Changes
18+
* officially support Python 3.13
19+
1720
### Enhancements
1821
* the `additional_skip_names` parameter now works with more modules (see [#1023](../../issues/1023))
1922
* added support for `os.fchmod`, allow file descriptor argument for `os.chmod` only for POSIX

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ for more information about the limitations of pyfakefs.
7373
### Continuous integration
7474

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

7979
### Running pyfakefs unit tests

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ classifiers =
3434
Programming Language :: Python :: 3.10
3535
Programming Language :: Python :: 3.11
3636
Programming Language :: Python :: 3.12
37+
Programming Language :: Python :: 3.13
3738
Programming Language :: Python :: Implementation :: CPython
3839
Programming Language :: Python :: Implementation :: PyPy
3940
Operating System :: POSIX

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310,311,312}
3+
py{37,38,39,310,311,312,313}
44
pypy{37,39,310}
55

66
[testenv]

0 commit comments

Comments
 (0)