From: Oleg Broytman Date: Tue, 24 Dec 2013 15:06:31 +0000 (+0400) Subject: Version 2.1.1: add Makefile and mk-distr X-Git-Tag: 2.1.3~15 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ba44e699d5adf8e3460c477d4715c3a811b0a82c;p=m_lib.git Version 2.1.1: add Makefile and mk-distr --- diff --git a/MANIFEST.in b/MANIFEST.in index cf09d1d..d7d9c16 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,5 @@ -include INSTALL.txt MANIFEST.in README-flad.txt TODO ez_setup.py +include INSTALL.txt MANIFEST.in Makefile README-flad.txt TODO +include ez_setup.py mk-distr recursive-include m_lib/flad/test *.py *.cfg *.txt recursive-include m_lib/hash/test *.py recursive-include m_lib/pbar/test *.py diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d447bbc --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ + +.PHONY: distr +distr: + ./mk-distr + +.PHONY: clean +clean: + find . -name '*.py[co]' -print | xargs rm -f diff --git a/mk-distr b/mk-distr new file mode 100755 index 0000000..ddcbb29 --- /dev/null +++ b/mk-distr @@ -0,0 +1,14 @@ +#! /bin/sh + +umask 022 + +if [ -n "$1" ]; then + git checkout "$1" +fi && + +git archive --format=tar --prefix=m_lib/ HEAD | + (cd "$HOME/tmp" && exec tar xf -) && + +cd "$HOME/tmp/m_lib" && +python setup.py sdist && +cd dist && mv m_lib-*.tar.gz ../.. && cd ../.. && exec rm -rf m_lib diff --git a/setup.py b/setup.py index 1ad4af1..4b66dbf 100755 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ if is_setuptools: } setup(name = "m_lib", - version = "2.1.0", + version = "2.1.1", description = "Broytman Library for Python", long_description = "Broytman Library for Python, Copyright (C) 1996-2013 PhiloSoft Design", author = "Oleg Broytman",