]> git.phdru.name Git - m_lib.git/commitdiff
Version 2.1.1: add Makefile and mk-distr
authorOleg Broytman <phd@phdru.name>
Tue, 24 Dec 2013 15:06:31 +0000 (19:06 +0400)
committerOleg Broytman <phd@phdru.name>
Tue, 24 Dec 2013 15:10:20 +0000 (19:10 +0400)
MANIFEST.in
Makefile [new file with mode: 0644]
mk-distr [new file with mode: 0755]
setup.py

index cf09d1dd21ee6ae06e4e686ddb188cfe306c216a..d7d9c16ea664fd21288e19c81b16eb0fe8609a56 100644 (file)
@@ -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 (file)
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 (executable)
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
index 1ad4af1fb46caab7ed462c72eaf2fb171b252fbc..4b66dbf6f3cec86e5e07fe3d1be64b9850aedf51 100755 (executable)
--- 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",