Upload to pypi and test python description.

This commit is contained in:
Bastian Kleineidam 2014-06-08 13:00:41 +02:00
parent 9910d84501
commit f39a8c0b1a
1 changed files with 10 additions and 5 deletions

View File

@ -9,7 +9,7 @@ ARCHIVE_SOURCE:=$(LAPPNAME)-$(VERSION).tar.gz
ARCHIVE_WIN32:=$(LAPPNAME)-$(VERSION).exe ARCHIVE_WIN32:=$(LAPPNAME)-$(VERSION).exe
GITUSER:=wummel GITUSER:=wummel
GITREPO:=$(LAPPNAME) GITREPO:=$(LAPPNAME)
WEBPAGE:=$(HOME)/public_html/patool-webpage.git HOMEPAGE:=$(HOME)/public_html/patool-webpage.git
WEBMETA:=doc/web/app.yaml WEBMETA:=doc/web/app.yaml
DEBUILDDIR:=$(HOME)/projects/debian/official DEBUILDDIR:=$(HOME)/projects/debian/official
DEBORIGFILE:=$(DEBUILDDIR)/$(LAPPNAME)_$(VERSION).orig.tar.gz DEBORIGFILE:=$(DEBUILDDIR)/$(LAPPNAME)_$(VERSION).orig.tar.gz
@ -35,10 +35,14 @@ sign:
[ -f dist/$(ARCHIVE_SOURCE).asc ] || gpg --detach-sign --armor dist/$(ARCHIVE_SOURCE) [ -f dist/$(ARCHIVE_SOURCE).asc ] || gpg --detach-sign --armor dist/$(ARCHIVE_SOURCE)
[ -f dist/$(ARCHIVE_WIN32).asc ] || gpg --detach-sign --armor dist/$(ARCHIVE_WIN32) [ -f dist/$(ARCHIVE_WIN32).asc ] || gpg --detach-sign --armor dist/$(ARCHIVE_WIN32)
upload: upload: upload_source upload_binary
cp dist/$(ARCHIVE_SOURCE) dist/$(ARCHIVE_WIN32) \
dist/$(ARCHIVE_SOURCE).asc dist/$(ARCHIVE_WIN32).asc \ upload_source:
$(WEBPAGE)/dist twine upload dist/$(ARCHIVE_SOURCE) dist/$(ARCHIVE_SOURCE).asc
upload_binary:
cp dist/$(ARCHIVE_WIN32) dist/$(ARCHIVE_WIN32).asc \
$(HOMEPAGE)/dist
homepage: homepage:
# update metadata # update metadata
@ -80,6 +84,7 @@ releasecheck: test check
@if ! grep "Version: $(VERSION)" $(LAPPNAME).freecode > /dev/null; then \ @if ! grep "Version: $(VERSION)" $(LAPPNAME).freecode > /dev/null; then \
echo "Could not release: edit $(LAPPNAME).freecode version"; false; \ echo "Could not release: edit $(LAPPNAME).freecode version"; false; \
fi fi
$(PYTHON) setup.py check --restructuredtext
check: check:
# The check programs used here are mostly local scripts on my private system. # The check programs used here are mostly local scripts on my private system.