diff Makefile @ 5960:d8d1a130ee28

make dist (for trying release archive), make dist-release (for really releasing to pypi, with gnupg signature)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 13 Mar 2013 14:44:29 +0100
parents b43061e7c4d6
children f4028129b8cb
line wrap: on
line diff
--- a/Makefile	Tue Mar 12 21:44:49 2013 +0100
+++ b/Makefile	Wed Mar 13 14:44:29 2013 +0100
@@ -62,15 +62,20 @@
 	@MoinMoin/script/moin.py --config-dir=MoinMoin/_tests --wiki-url=http://localhost/ maint mkpagepacks
 	cd $(share) ; rm -rf underlay
 	cp -a $(testwiki)/underlay $(share)/
-	
-dist:
+
+dist-clean:
 	-rm MANIFEST
 	-rm -rf tests/wiki
 	-rm -rf wiki/data/cache/{__metalock__,__session__,wikiconfig}
 	->wiki/data/event-log
 	->wiki/data/edit-log
+
+dist: dist-clean
 	python setup.py sdist
 
+dist-release: dist-clean
+	python setup.py register sdist upload --identity="Thomas Waldmann" --sign
+
 # Create patchlevel module
 patchlevel:
 	@echo -e patchlevel = "\"`hg identify`\"\n" >MoinMoin/patchlevel.py