Skip to content

Commit

Permalink
Update package build configuration and publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Oct 5, 2023
1 parent 343ea36 commit 6e7dc21
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,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/*
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "piffle"
Expand Down Expand Up @@ -44,4 +47,4 @@ test = [
dev = [
"pre-commit",
"piffle[test]"
]
]
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[bdist_wheel]
universal = 1
[metadata]
description-file = README.md
description_file = README.md

0 comments on commit 6e7dc21

Please sign in to comment.