Skip to content

Commit

Permalink
cleaned up upload commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed May 13, 2020
1 parent 916aa5b commit 8280ec9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ bdist: all
$(PYTHON) setup.py -q bdist
@rm -rf ${NAME}.egg-info

upload: clean all tag upload-pypi upload-github

upload-pypi:
$(PYTHON) setup.py -q sdist upload --sign --identity="$(EMAIL)"
upload: clean all tag upload-github upload-pypi

upload-github:
git push
git push origin --tags

upload-pypi:
$(PYTHON) setup.py -q sdist upload --sign --identity="$(EMAIL)"

showtag: sdist
@ v=`ls -r dist | head -1 | sed -e 's/cloudflare-\([0-9.]*\)\.tar.*/\1/'` ; echo "\tDIST VERSION =" $$v ; (git tag | fgrep -q "$$v") && echo "\tGIT TAG EXISTS"

Expand All @@ -63,7 +64,6 @@ tag: sdist

sign:
v=`ls -r dist | head -1 | sed -e 's/cloudflare-\([0-9.]*\)\.tar.*/\1/'` ; echo "\tDIST VERSION =" $$v ; \
v="2.6.5" ; \
mkdir -p tarball ; \
rm -f tarball/$$v.tar.gz.asc tarball/$$v.zip.asc ; \
curl -sS -o tarball/$$v.tar.gz https://codeload.github.com/cloudflare/python-cloudflare/tar.gz/$$v ; \
Expand All @@ -82,5 +82,4 @@ clean:
mkdir build dist
$(PYTHON) setup.py -q clean
rm -rf ${NAME}.egg-info
rm -rf tarball

0 comments on commit 8280ec9

Please sign in to comment.