Skip to content

Commit 4e7fd71

Browse files
authored
PYTHON-4165 [winkerberos] Fix creation of sdist file (#60)
* PYTHON-4165 [winkerberos] Fix creation of sdist file * update action and include correct file
1 parent 722e737 commit 4e7fd71

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/release-python.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
buildplat: ["win_amd64", "win32"]
2424
python: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
2727
- name: Build wheels
2828
uses: pypa/[email protected]
2929
env:
@@ -40,16 +40,23 @@ jobs:
4040
name: Make SDist
4141
runs-on: ubuntu-latest
4242
steps:
43-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
44+
45+
- uses: actions/setup-python@v4
46+
with:
47+
# Build sdist on lowest supported Python
48+
python-version: '3.7'
49+
4450
- name: Build SDist
4551
run: |
46-
pip install check-manifest
52+
pip install check-manifest build
4753
check-manifest -v
48-
python setup.py sdist --formats=zip
49-
- uses: actions/upload-artifact@v2
54+
python -m build --sdist .
55+
56+
- uses: actions/upload-artifact@v3
5057
with:
5158
name: "sdist"
52-
path: dist/*.zip
59+
path: dist/*.tar.gz
5360

5461
collect_dist:
5562
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)