Skip to content

Commit

Permalink
Makefile: separate out PyPI release target, and add GitHub release
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed May 21, 2023
1 parent 0deb282 commit d2e86f9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ dist:
mkdir dist && \
python -m build

release-pypi:
twine upload dist/*

release:
make test
make dist
twine upload dist/* && \
git tag v$$(grep version pyproject.toml | grep -o "[0-9.]\+") && \
package=psutils && \
version=$$(grep version pyproject.toml | grep -o "[0-9.]\+") && \
gh release create v$$version --title "Release v$$version" dist/$$package-$$version-py3-none-any.whl dist/$$package-$$version.tar.gz && \
git tag v$$version && \
git push --tags

loc:
Expand Down

0 comments on commit d2e86f9

Please sign in to comment.