Skip to content

Commit 20244b2

Browse files
committed
condition setuptools version and upgrade packaging to avoid error associated with PEP 639 and pypa/twine#1216
1 parent 9395d83 commit 20244b2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/release-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ jobs:
3131
python-version: '3.12'
3232

3333
- name: Install dependencies
34+
# we upgrade packaging to address https://github.com/pypa/twine/issues/1216
3435
run: >-
3536
python -m pip install --user --upgrade build
37+
python -m pip install -U packaging
3638
3739
- name: Build packages
3840
run: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools",
3+
"setuptools<77.0.0",
44
"wheel",
55
]
66

0 commit comments

Comments
 (0)