Skip to content

Commit 9ef0fdf

Browse files
authored
Merge pull request #12620 from notatallshaw/run-python-3.13-ci-tests-
2 parents 411b981 + 8c7dfb7 commit 9ef0fdf

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
- "3.10"
115115
- "3.11"
116116
- "3.12"
117+
- "3.13"
117118

118119
steps:
119120
- uses: actions/checkout@v4
@@ -167,14 +168,16 @@ jobs:
167168
# - "3.9"
168169
# - "3.10"
169170
# - "3.11"
170-
- "3.12"
171+
- "3.12" # Comment out when 3.13 is final
172+
- "3.13"
171173
group: [1, 2]
172174

173175
steps:
174176
- uses: actions/checkout@v4
175177
- uses: actions/setup-python@v5
176178
with:
177179
python-version: ${{ matrix.python }}
180+
allow-prereleases: true
178181

179182
# We use C:\Temp (which is already available on the worker)
180183
# as a temporary directory for all of the tests because the

news/12620.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enable Python 3.13 CI tests

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def should_update_common_wheels() -> bool:
6767
# -----------------------------------------------------------------------------
6868
# Development Commands
6969
# -----------------------------------------------------------------------------
70-
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3"])
70+
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3"])
7171
def test(session: nox.Session) -> None:
7272
# Get the common wheels.
7373
if should_update_common_wheels():

tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cffi @ https://github.com/python-cffi/cffi/archive/refs/heads/main.zip; python_version > "3.12" # Temporary workaround for Python 3.13 until next CFFI release
12
cryptography
23
freezegun
34
installer

tests/unit/test_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def test_falsey_path_none() -> None:
1313
assert wc.cache_dir is None
1414

1515

16-
def test_subdirectory_fragment() -> None:
16+
def test_subdirectory_fragment(tmp_path: Path) -> None:
1717
"""
1818
Test the subdirectory URL fragment is part of the cache key.
1919
"""
20-
wc = WheelCache("/tmp/.foo/")
20+
wc = WheelCache(os.fspath(tmp_path))
2121
link1 = Link("git+https://g.c/o/r#subdirectory=d1")
2222
link2 = Link("git+https://g.c/o/r#subdirectory=d2")
2323
assert wc.get_path_for_link(link1) != wc.get_path_for_link(link2)

0 commit comments

Comments
 (0)