Skip to content

Commit

Permalink
Build source distribution and wheel with 'build' dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperCraeghs committed Jan 12, 2024
1 parent 3bd4acb commit b23051e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install 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/*
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ commands =
[testenv:check]
deps =
docutils
build
twine >= 1.12.0
readme-renderer
flake8
pygments
check-manifest
skip_install = true
commands =
python setup.py sdist bdist
python -m build
twine check dist/*
check-manifest {toxinidir}
flake8 src tests setup.py
Expand Down

0 comments on commit b23051e

Please sign in to comment.