Skip to content

Commit d3df811

Browse files
committed
Update release script
1 parent 532ed04 commit d3df811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ release:
1919
@if ! type -P sponge; then echo "Please install moreutils"; exit 1; fi
2020
@if ! type -P http; then echo "Please install httpie"; exit 1; fi
2121
@if ! type -P twine; then echo "Please install twine"; exit 1; fi
22-
$(eval REMOTE=$(shell git remote get-url origin | perl -ne '/([^\/\:]+\/.+?)(\.git)?$$/; print $$1'))
22+
$(eval REMOTE=$(shell git remote get-url origin | perl -ne '/([^\/\:]+\/[^\/\:]+?)(\.git)?$$/; print $$1'))
2323
$(eval GIT_USER=$(shell git config --get user.email))
2424
$(eval GH_AUTH=$(shell if grep -q '@github.com' ~/.git-credentials; then echo $$(grep '@github.com' ~/.git-credentials | python3 -c 'import sys, urllib.parse as p; print(p.urlparse(sys.stdin.read()).netloc.split("@")[0])'); else echo $(GIT_USER); fi))
2525
$(eval RELEASES_API=https://api.github.com/repos/${REMOTE}/releases)
@@ -46,7 +46,7 @@ release:
4646
$(MAKE) release-docs
4747

4848
release-pypi:
49-
python setup.py sdist bdist_wheel
49+
python -m build
5050
twine upload dist/*.tar.gz dist/*.whl --sign --verbose
5151

5252
release-docs:

0 commit comments

Comments
 (0)