Skip to content

Commit

Permalink
use python -m build
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Oct 27, 2023
1 parent fc678b4 commit 18a3821
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/python_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Update pip and wheel
run: python -m pip install --upgrade pip wheel
- name: Update pip et al.
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel build
- uses: actions/checkout@v4
- name: Build sdist
run: python setup.py sdist
run: python -m build --sdist
- name: Install sdist
run: pip install ./dist/pyprep-*
- name: Clean up working directory
Expand All @@ -45,7 +47,7 @@ jobs:

- uses: actions/checkout@v4
- name: Build wheel
run: python setup.py bdist_wheel
run: python -m build --wheel
- name: Install wheel
run: pip install ./dist/pyprep-*.whl
- name: Clean up working directory
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel twine
python -m pip install --upgrade setuptools wheel build twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*

0 comments on commit 18a3821

Please sign in to comment.