[Python-modules-commits] r8652 - in packages (7 files)

zack at users.alioth.debian.org zack at users.alioth.debian.org
Sat May 30 22:49:28 UTC 2009


    Date: Saturday, May 30, 2009 @ 22:49:27
  Author: zack
Revision: 8652

initial packaging skeleton

Added:
  packages/python-repoze.what-plugins/
  packages/python-repoze.what-plugins/tags/
  packages/python-repoze.what-plugins/trunk/
  packages/python-repoze.what-plugins/trunk/debian/
  packages/python-repoze.what-plugins/trunk/debian/changelog
  packages/python-repoze.what-plugins/trunk/debian/get-orig-source.mk
    (from rev 8651, packages/python-repoze.who-plugins/trunk/debian/get-orig-source.mk)
  packages/python-repoze.what-plugins/trunk/setup.py
    (from rev 8635, packages/python-repoze.who-plugins/trunk/setup.py)


Property changes on: packages/python-repoze.what-plugins
___________________________________________________________________
Added: svn:ignore
   + build-area
tarballs



Property changes on: packages/python-repoze.what-plugins/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/python-repoze.what-plugins/trunk/debian/changelog
===================================================================
--- packages/python-repoze.what-plugins/trunk/debian/changelog	                        (rev 0)
+++ packages/python-repoze.what-plugins/trunk/debian/changelog	2009-05-30 22:49:27 UTC (rev 8652)
@@ -0,0 +1,5 @@
+python-repoze.what-plugins (20090601-1) UNRELEASED; urgency=low
+
+  * First release (Closes: #531208)
+
+ -- Stefano Zacchiroli <zack at debian.org>  Sun, 31 May 2009 00:33:09 +0200

Copied: packages/python-repoze.what-plugins/trunk/debian/get-orig-source.mk (from rev 8651, packages/python-repoze.who-plugins/trunk/debian/get-orig-source.mk)
===================================================================
--- packages/python-repoze.what-plugins/trunk/debian/get-orig-source.mk	                        (rev 0)
+++ packages/python-repoze.what-plugins/trunk/debian/get-orig-source.mk	2009-05-30 22:49:27 UTC (rev 8652)
@@ -0,0 +1,36 @@
+# debian/rules snippet for creating multi-upstream tarball relying on
+# several debian/*.watch files
+
+# Copyright © 2009 Stefano Zacchiroli <zack at debian.org>
+# License: GNU GPL version 3 or above
+# Created: Sat, 30 May 2009 11:58:16 +0200
+# Last-Modified: Sun, 31 May 2009 00:46:12 +0200
+
+# TODO: does not yet fully implement policy wrt get-orig-source:
+#       - the target cannot be invoked from any dir (rely on "debian/")
+#       - tmpdir handling is not fully safe (e.g., no "mktemp -d")
+
+GOSTMP = get-orig-source.tmp
+ORIGNAME = $(PKG)-$(shell date +%Y%m%d)
+ORIGTARBALL = $(PKG)_$(shell date +%Y%m%d).orig.tar.gz
+
+get-orig-source: $(patsubst %,%/get-orig-source,$(UPSTREAMS))
+	cd $(GOSTMP) && \
+	mkdir $(ORIGNAME) && \
+	for p in $(UPSTREAMS) ; do \
+		mv `readlink $$p` $(ORIGNAME) ; \
+		mv $$p $(ORIGNAME) ; \
+	done && \
+	tar cvzf $(ORIGTARBALL) $(ORIGNAME) && \
+	mv $(ORIGTARBALL) ../ && \
+	cd .. && \
+	rm -rf $(GOSTMP)/
+$(GOSTMP):
+	-mkdir $@
+%/get-orig-source: $(GOSTMP)
+	uscan --watchfile debian/$*.watch \
+		--upstream-version 0 --package $* \
+		--download --destdir $(GOSTMP)/
+	cd $(GOSTMP) && \
+	tar xzf $**.orig.tar.gz && \
+	ln -s `tar tzf $**.orig.tar.gz | head -n1` $*

Copied: packages/python-repoze.what-plugins/trunk/setup.py (from rev 8635, packages/python-repoze.who-plugins/trunk/setup.py)
===================================================================
--- packages/python-repoze.what-plugins/trunk/setup.py	                        (rev 0)
+++ packages/python-repoze.what-plugins/trunk/setup.py	2009-05-30 22:49:27 UTC (rev 8652)
@@ -0,0 +1,28 @@
+#!/usr/bin/python
+# Multiplexer for invoking multiple setup.py in subdir
+# Copyright (C) 2009 Stefano Zacchiroli <zack at debian.org>
+# License: GNU GPL version 3 or above
+
+# Created: Sat, 30 May 2009 14:47:04 +0200
+# Last-Modified: Sat, 30 May 2009 14:47:04 +0200
+
+import os, string, sys
+
+if not os.environ.has_key('SUBDIRS') or not os.environ['SUBDIRS']:
+    print >> sys.stderr, "Can't find subdirs, please set SUBDIRS envvar"
+    sys.exit(3)
+else:
+    subdirs = os.environ['SUBDIRS'].split()
+setup_cmd = "python setup.py %s" % string.join(sys.argv[1:])
+
+topdir = os.getcwd()
+for d in subdirs:
+    if not os.path.isdir(d):
+        print >> sys.stderr, "WARNING: can't find subdir %s" % d
+        continue
+    os.chdir(d)
+    retcode = os.system(setup_cmd)
+    if retcode:
+        print >> sys.stderr, "ERROR: setup.py in subdir %s failed" % d
+        sys.exit(retcode >> 8)
+    os.chdir(topdir)




More information about the Python-modules-commits mailing list