Skip to content

Commit 757e9b6

Browse files
ci: restore distutils via setuptools<81 instead of pinning Python
Reverts the workflow pin. Keeping setup-python at "3.x" avoids the workflow-modification approval gate on fork PRs; adding setuptools<81 to the dev requirements restores the vendored distutils that fixit==0.1.4 imports (distutils was removed from CPython 3.12).
1 parent 9b5e12a commit 757e9b6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-python@v4
1414
with:
15-
# fixit 0.1.4 imports the stdlib ``distutils`` module, which was removed
16-
# in Python 3.12. Pin to 3.11 until the fixit pin is upgraded.
17-
python-version: "3.11"
15+
python-version: "3.x"
1816
- uses: actions/cache@v3
1917
with:
2018
path: |

‎requirements-dev.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ pytest==7.4.2
33
pytest-aiohttp==1.0.5
44
pytest-asyncio==0.21.1
55
pytest-cov==4.1.0
6+
# setuptools<81 still vendors the stdlib ``distutils`` (removed from CPython in
7+
# 3.12); fixit==0.1.4 imports it, so keep the shim available under "3.x" CI.
8+
setuptools<81

0 commit comments

Comments
 (0)