X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=118c778b3d049ca42225b173dc19f7a4f9e7919a;hb=e96e370df463518cf451a8f8df9f9a93d2b94730;hp=01a1d3bf021f4b6a30d49eb34e1e176b3839aeb3;hpb=76ef9f2f2569384fcd9dfef45a2072e07aade965;p=nepi.git diff --git a/Makefile b/Makefile index 01a1d3bf..118c778b 100644 --- a/Makefile +++ b/Makefile @@ -64,3 +64,18 @@ dist: MANIFEST ./setup.py sdist .PHONY: all clean distclean dist test coverage install MANIFEST + +########## for uploading onto pypi +# use pypitest instead for tests (both entries need to be defined in your .pypirc) +PYPI_TARGET=pypi +PYPI_TARBALL_HOST=root@build.onelab.eu +PYPI_TARBALL_TOPDIR=/build/nepi + +VERSIONTAG=$(shell cat VERSION) + +# run this only once the sources are in on the right tag +pypi: + setup.py sdist upload -r $(PYPI_TARGET) + ssh $(PYPI_TARBALL_HOST) mkdir -p $(PYPI_TARBALL_TOPDIR)/$(VERSIONTAG) + rsync -av dist/nepi-$(VERSIONTAG).tar.gz $(PYPI_TARBALL_HOST):$(PYPI_TARBALL_TOPDIR)/ +