Skip to content

Commit

Permalink
Modify sdist workflow to also produce a py3-none-any wheel.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Jan 10, 2025
1 parent 73fdde6 commit d0cce6f
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/kit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
run: |
python -m pip install -r requirements/kit.pip
- name: "Build wheels"
- name: "Build binary wheels"
env:
CIBW_BUILD: ${{ matrix.py }}*-*
CIBW_ARCHS: ${{ matrix.arch }}
Expand All @@ -173,23 +173,23 @@ jobs:
run: |
python -m cibuildwheel --output-dir wheelhouse
- name: "List wheels"
- name: "List binary wheels"
run: |
ls -al wheelhouse/
- name: "Check wheels"
run: |
python -m twine check wheelhouse/*
- name: "Upload wheels"
- name: "Upload binary wheels"
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: dist-${{ env.MATRIX_ID }}
path: wheelhouse/*.whl
retention-days: 7

sdist:
name: "Source distribution"
non-binary:
name: "Non-binary artifacts"
runs-on: ubuntu-latest
steps:
- name: "Check out the repo"
Expand All @@ -208,23 +208,25 @@ jobs:
run: |
python -m pip install -r requirements/kit.pip
- name: "Build sdist"
- name: "Build non-binary artifacts"
env:
COVERAGE_DISABLE_EXTENSION: 1
run: |
python -m build
- name: "List sdist"
- name: "List non-binary artifacts"
run: |
ls -al dist/
- name: "Check sdist"
- name: "Check non-binary artifacts"
run: |
python -m twine check dist/*
- name: "Upload sdist"
- name: "Upload non-binary artifacts"
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: dist-sdist
path: dist/*.tar.gz
name: dist-non-binary
path: dist/*
retention-days: 7

pypy:
Expand Down

0 comments on commit d0cce6f

Please sign in to comment.