[Python-modules-commits] r28300 - in packages/portalocker/trunk (17 files)

noahfx-guest at users.alioth.debian.org noahfx-guest at users.alioth.debian.org
Sat Mar 22 20:28:22 UTC 2014


    Date: Saturday, March 22, 2014 @ 20:28:21
  Author: noahfx-guest
Revision: 28300

[svn-inject] Applying Debian modifications (0.4~ds0-2) to trunk

Added:
  packages/portalocker/trunk/debian/
  packages/portalocker/trunk/debian/changelog
  packages/portalocker/trunk/debian/compat
  packages/portalocker/trunk/debian/control
  packages/portalocker/trunk/debian/copyright
  packages/portalocker/trunk/debian/docs
  packages/portalocker/trunk/debian/gbp.conf
  packages/portalocker/trunk/debian/python-portalocker.install.off
  packages/portalocker/trunk/debian/python3-portalocker.install
  packages/portalocker/trunk/debian/repack.local
  packages/portalocker/trunk/debian/repack.sh
  packages/portalocker/trunk/debian/repack.stub
  packages/portalocker/trunk/debian/rules
  packages/portalocker/trunk/debian/rules.python3
  packages/portalocker/trunk/debian/source/
  packages/portalocker/trunk/debian/source/format
  packages/portalocker/trunk/debian/watch


Property changes on: packages/portalocker/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/portalocker/trunk/debian/changelog
===================================================================
--- packages/portalocker/trunk/debian/changelog	                        (rev 0)
+++ packages/portalocker/trunk/debian/changelog	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,26 @@
+portalocker (0.4~ds0-2) unstable; urgency=low
+
+  * New Maintainer (Closes: #726634).
+  * Standards version updated to 3.9.5, no changes required.
+
+ -- Josue Ortega <josueortega at debian.org.gt>  Sun, 05 Jan 2014 16:01:37 -0600
+
+portalocker (0.4~ds0-1) unstable; urgency=low
+
+  * QA upload.
+  * New upstream bugfix release.
+
+ -- Alessio Treglia <alessio at debian.org>  Mon, 02 Dec 2013 11:20:51 +0000
+
+portalocker (0.3~ds0-2) unstable; urgency=low
+
+  * QA upload.
+  * Orphaning this.
+
+ -- Alessio Treglia <alessio at debian.org>  Thu, 17 Oct 2013 13:52:33 +0100
+
+portalocker (0.3~ds0-1) unstable; urgency=low
+
+  * Initial release. (Closes: #703832)
+
+ -- Alessio Treglia <alessio at debian.org>  Sat, 12 Jan 2013 21:34:30 +0000

Added: packages/portalocker/trunk/debian/compat
===================================================================
--- packages/portalocker/trunk/debian/compat	                        (rev 0)
+++ packages/portalocker/trunk/debian/compat	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1 @@
+9

Added: packages/portalocker/trunk/debian/control
===================================================================
--- packages/portalocker/trunk/debian/control	                        (rev 0)
+++ packages/portalocker/trunk/debian/control	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,33 @@
+Source: portalocker
+Section: python
+Priority: optional
+Maintainer: Josue Ortega <josueortega at debian.org.gt>
+Build-Depends:
+ debhelper (>= 9~),
+ python-all,
+ python-setuptools
+X-Python-Version: >= 2.6
+Standards-Version: 3.9.5
+Homepage: https://github.com/WoLpH/portalocker
+
+Package: python-portalocker
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python:Depends}
+Description: easy API to file locking (Python 2)
+ Portalocker is a cross-platform library to provide
+ an easy API to file locking.
+ .
+ This is the Python 2 version of the package.
+
+#Package: python3-portalocker
+#Architecture: all
+#Depends:
+# ${misc:Depends},
+# ${python3:Depends}
+#Description: easy API to file locking (Python 3)
+# Portalocker is a cross-platform library to provide
+# an easy API to file locking.
+# .
+# This is the Python 3 version of the package.

Added: packages/portalocker/trunk/debian/copyright
===================================================================
--- packages/portalocker/trunk/debian/copyright	                        (rev 0)
+++ packages/portalocker/trunk/debian/copyright	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,81 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Portalocker
+Upstream-Contact: Rick van Hattem <Rick.van.Hattem at Fawo.nl>
+Source: http://pypi.python.org/packages/source/p/portalocker/
+
+Files: *
+Copyright: 2007-2011 Dwayne C. Litzenberger <dlitz at dlitz.net>
+License: Python
+
+Files: debian/*
+Copyright: 2013 Alessio Treglia <alessio at debian.org>
+License: Expat
+
+License: Python
+ PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+ --------------------------------------------
+ .
+ 1. This LICENSE AGREEMENT is between the Python Software Foundation
+ ("PSF"), and the Individual or Organization ("Licensee") accessing and
+ otherwise using this software ("Python") in source or binary form and
+ its associated documentation.
+ .
+ 2. Subject to the terms and conditions of this License Agreement, PSF hereby
+ grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
+ analyze, test, perform and/or display publicly, prepare derivative works,
+ distribute, and otherwise use Python alone or in any derivative version,
+ provided, however, that PSF's License Agreement and PSF's notice of copyright,
+ i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ Python Software Foundation; All Rights Reserved" are retained in Python alone or
+ in any derivative version prepared by Licensee.
+ .
+ 3. In the event Licensee prepares a derivative work that is based on
+ or incorporates Python or any part thereof, and wants to make
+ the derivative work available to others as provided herein, then
+ Licensee hereby agrees to include in any such work a brief summary of
+ the changes made to Python.
+ .
+ 4. PSF is making Python available to Licensee on an "AS IS"
+ basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+ IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
+ INFRINGE ANY THIRD PARTY RIGHTS.
+ .
+ 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+ FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
+ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+ .
+ 6. This License Agreement will automatically terminate upon a material
+ breach of its terms and conditions.
+ .
+ 7. Nothing in this License Agreement shall be deemed to create any
+ relationship of agency, partnership, or joint venture between PSF and
+ Licensee.  This License Agreement does not grant permission to use PSF
+ trademarks or trade name in a trademark sense to endorse or promote
+ products or services of Licensee, or any third party.
+ .
+ 8. By copying, installing or otherwise using Python, Licensee
+ agrees to be bound by the terms and conditions of this License
+ Agreement.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Added: packages/portalocker/trunk/debian/docs
===================================================================
--- packages/portalocker/trunk/debian/docs	                        (rev 0)
+++ packages/portalocker/trunk/debian/docs	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1 @@
+README.rest

Added: packages/portalocker/trunk/debian/gbp.conf
===================================================================
--- packages/portalocker/trunk/debian/gbp.conf	                        (rev 0)
+++ packages/portalocker/trunk/debian/gbp.conf	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True

Added: packages/portalocker/trunk/debian/python-portalocker.install.off
===================================================================
--- packages/portalocker/trunk/debian/python-portalocker.install.off	                        (rev 0)
+++ packages/portalocker/trunk/debian/python-portalocker.install.off	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1 @@
+usr/lib/python2*

Added: packages/portalocker/trunk/debian/python3-portalocker.install
===================================================================
--- packages/portalocker/trunk/debian/python3-portalocker.install	                        (rev 0)
+++ packages/portalocker/trunk/debian/python3-portalocker.install	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1 @@
+usr/lib/python3

Added: packages/portalocker/trunk/debian/repack.local
===================================================================
--- packages/portalocker/trunk/debian/repack.local	                        (rev 0)
+++ packages/portalocker/trunk/debian/repack.local	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,4 @@
+SUFFIX=~ds0
+rm debian/
+rm portalocker.egg-info/ \
+  PKG-INFO

Added: packages/portalocker/trunk/debian/repack.sh
===================================================================
--- packages/portalocker/trunk/debian/repack.sh	                        (rev 0)
+++ packages/portalocker/trunk/debian/repack.sh	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,161 @@
+#!/bin/sh
+
+# see the repack.stub for how to use
+
+# TODO: provide example watch files and repack.locals
+# TODO: test suite. problems fixed that need to be tested:
+# * globbing
+# * whitespace and then comments in the MANIFEST
+# TODO: does / in weird places work? test suite too.
+# TODO: I actually broke stuff with the MANIFEST change not thinking..
+# TODO: allow for a sepearate (and multiple) MANIFEST files, then
+# de-uglify libsyntax-highlight-engine-kate-perl.
+# TODO: have each mv and rm check that something actually changed, and
+# if not, die
+
+set -e
+set -u
+
+usage() {
+    echo "Usage: repack.sh --upstream-version <ver> <downloaded file>"
+    exit 1
+}
+
+if [ "$#" != "3" ]; then
+    usage
+fi
+if [ "$1" != "--upstream-version" ]; then
+    usage
+fi
+if [ ! -f "$3" ]; then
+    if [ -n "$3" ]; then
+        echo "$3 doesn't exist"
+    fi
+    usage
+fi
+VER="$2"
+FILE="$3"
+PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'`
+
+SUFFIX="+dfsg"
+
+echo
+echo "Repackaging $FILE"
+echo
+
+DIR=`mktemp -d ./tmpRepackXXXXXX`
+DIR=$(readlink -f "$DIR")
+trap "/bin/rm -rf \"$DIR\"" QUIT INT EXIT
+
+# Create an extra directory to cope with rootless tarballs
+UP_BASE="$DIR/unpack"
+mkdir "$UP_BASE"
+tar xf "$FILE" -C "$UP_BASE" || unzip "$FILE" -d "$UP_BASE"
+
+if [ `ls -1 "$UP_BASE" | wc -l` -eq 1 ]; then
+	# Tarball does contain a root directory
+	UP_BASE="$UP_BASE/`ls -1 "$UP_BASE"`"
+fi
+
+RM_OPTS="-vrf"
+
+real_rm(){
+    /bin/rm "$@"
+}
+
+real_mv(){
+    /bin/mv "$@"
+}
+
+rm(){
+    set +f
+    MYOLDPWD=$(pwd)
+    cd "$UP_BASE"
+    if [ "$MANIFEST" = "1" ]; then
+        PERM=$(stat --format=%a "MANIFEST")
+        chmod u+w "MANIFEST"
+    fi
+    for i in $@; do
+        if [ "$MANIFEST" = "1" ]; then
+            PATTERN="^$i"
+            if [ -d "$i" ]; then
+                if ! { echo "$PATTERN" | grep -q "/$" ; }; then
+                    PATTERN="${PATTERN}/"
+                fi
+            else
+                PATTERN="${PATTERN}\s?"
+            fi
+            grep -Ev "$PATTERN" "MANIFEST" > "$DIR/MANIFEST"
+            real_mv "$DIR/MANIFEST" "MANIFEST"
+        fi
+        real_rm "$RM_OPTS" "$i"
+    done
+    if [ "$MANIFEST" = "1" ]; then
+        chmod $PERM "MANIFEST"
+    fi
+    cd $MYOLDPWD
+    set -f
+}
+
+mv(){
+    set +f
+    OLD=$(pwd)
+    cd $UP_BASE
+    real_mv "$@"
+    cd $OLD
+    if [ "$MANIFEST" = "1" ]; then
+        echo "MANIFEST cannot be manipulated with mv yet, patches welcome"
+        exit 1
+    fi
+    set -f
+}
+
+# bump with incompatible changes
+REPACK_VERSION=3
+
+requires_version(){
+    if [ $REPACK_VERSION -lt $1 ]; then
+        echo "repack.sh is not up to date enough for this package. you need at least version $1, while this script is only version $REPACK_VERSION"
+        exit 1
+    fi
+}
+
+MANIFEST=0
+## Remove stuff
+set -f
+MYORIGPWD=$(pwd)
+cd "$UP_BASE"
+. "$MYORIGPWD/debian/repack.local"
+cd $MYORIGPWD
+set +f
+## End
+
+REPACK_DIR="$PKG-${VER}${SUFFIX}.orig" # DevRef § 6.7.8.2
+DFSG_TAR="$(dirname $FILE)/${PKG}_${VER}${SUFFIX}.orig.tar"
+
+real_mv "$UP_BASE" "$DIR/$REPACK_DIR"
+
+# .gz or .bz2?
+FILETYPE=$(file --brief --mime-type --dereference "$FILE")
+case "$FILETYPE" in
+    application/x-gzip|application/zip)
+        C_PROGRAM="gzip"
+        C_SUFFIX="gz"
+        ;;
+    application/x-bzip2)
+        C_PROGRAM="bzip2"
+        C_SUFFIX="bz2"
+        ;;
+    *)
+        echo "E: Unknown filetye $FILETYPE"
+        exit 1
+        ;;
+esac
+    
+# Using a pipe hides tar errors!
+tar cfC "$DIR/repacked.tar" "$DIR" "$REPACK_DIR"
+$C_PROGRAM -9 < "$DIR/repacked.tar" > "$DIR/repacked.tar.$C_SUFFIX"
+
+real_mv "$DIR/repacked.tar.$C_SUFFIX" "$DFSG_TAR.$C_SUFFIX"
+
+echo "*** $DFSG_TAR.$C_SUFFIX ready"


Property changes on: packages/portalocker/trunk/debian/repack.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/portalocker/trunk/debian/repack.stub
===================================================================
--- packages/portalocker/trunk/debian/repack.stub	                        (rev 0)
+++ packages/portalocker/trunk/debian/repack.stub	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,82 @@
+#!/bin/sh
+
+: <<=cut
+=pod
+
+=head1 NAME
+
+repack.stub - script to repack upstream tarballs from uscan
+
+=head1 INSTRUCTIONS
+
+put this in debian/repack.stub and add "debian sh debian/repack.stub" to
+the end of the line in debian/watch. you will also need to add a version
+mangle to debian/watch.
+
+then create a debian/repack.local. this is a shell script that is
+sources under "set -e", so be careful to check returns codes.
+
+=head1 FUNCTIONS
+
+=over 4
+
+=item rm
+
+rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1
+
+=item mv
+
+mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1
+
+=item requires_version
+
+requires_version is there for future usage for requiring certain versions of the script
+
+=back
+
+=head1 VARIABLES
+
+=over 4
+
+=item SUFFIX
+
+defaults to +dfsg
+
+what to append to the upstream version
+
+=item RM_OPTS
+
+defaults to -vrf
+
+options to pass to rm
+
+=item MANIFEST
+
+defaults to 0, set to 1 to turn on.
+
+this will manipulate MANIFEST files in CPAN tarballs.
+
+=item UP_BASE
+
+this is the directory where the upstream source is.
+
+=back
+
+=cut
+
+if [ -z "$REPACK_SH" ]; then
+    if [ -f ../../scripts/repack.sh ]; then
+        REPACK_SH=../../scripts/repack.sh
+    fi
+    if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then
+        REPACK_SH=$(which repack.sh)
+    fi
+fi
+
+if [ ! -f "$REPACK_SH" ]; then
+    echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable"
+    echo "You can get it from http://svn.debian.org/viewsvn/pkg-perl/scripts/repack.sh"
+    exit 1
+fi
+
+exec "$REPACK_SH" "$@"

Added: packages/portalocker/trunk/debian/rules
===================================================================
--- packages/portalocker/trunk/debian/rules	                        (rev 0)
+++ packages/portalocker/trunk/debian/rules	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+export REPACK_SH=$(CURDIR)/debian/repack.sh
+
+%:
+	dh $@ --with python2
+
+override_dh_auto_clean:#
+	dh_auto_clean
+	rm -rf build
+	rm -rf *.egg-info
+
+get-orig-source:
+	uscan --force-download


Property changes on: packages/portalocker/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/portalocker/trunk/debian/rules.python3
===================================================================
--- packages/portalocker/trunk/debian/rules.python3	                        (rev 0)
+++ packages/portalocker/trunk/debian/rules.python3	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+export REPACK_SH=$(CURDIR)/debian/repack.sh
+
+PYTHON2=$(shell pyversions -vr)
+PYTHON3=$(shell py3versions -vr)
+
+%:
+	dh $@ --with python2,python3
+
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+test-python%:
+	python$* setup.py test -vv
+
+override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)
+endif
+
+build-python%:
+	python$* setup.py build
+
+override_dh_auto_build: $(PYTHON3:%=build-python%)
+	dh_auto_build
+
+install-python%:
+	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+	dh_auto_install
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf build
+	rm -rf *.egg-info
+
+get-orig-source:
+	uscan --force-download


Property changes on: packages/portalocker/trunk/debian/rules.python3
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/portalocker/trunk/debian/source/format
===================================================================
--- packages/portalocker/trunk/debian/source/format	                        (rev 0)
+++ packages/portalocker/trunk/debian/source/format	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/portalocker/trunk/debian/watch
===================================================================
--- packages/portalocker/trunk/debian/watch	                        (rev 0)
+++ packages/portalocker/trunk/debian/watch	2014-03-22 20:28:21 UTC (rev 28300)
@@ -0,0 +1,5 @@
+version=3
+opts="dversionmangle=s/~ds.*//" \
+http://pypi.python.org/packages/source/p/portalocker/ \
+	portalocker-(.*)\.tar\.gz \
+	debian sh debian/repack.stub




More information about the Python-modules-commits mailing list