[Python-modules-commits] r21006 - in packages/python-regex/trunk (13 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Apr 1 21:26:17 UTC 2012


    Date: Sunday, April 1, 2012 @ 21:26:15
  Author: morph
Revision: 21006

[svn-inject] Applying Debian modifications (0.1.20120323-1) to trunk

Added:
  packages/python-regex/trunk/debian/
  packages/python-regex/trunk/debian/changelog
  packages/python-regex/trunk/debian/compat
  packages/python-regex/trunk/debian/control
  packages/python-regex/trunk/debian/copyright
  packages/python-regex/trunk/debian/docs
  packages/python-regex/trunk/debian/patches/
  packages/python-regex/trunk/debian/patches/10_fix_unicodedata_copy
  packages/python-regex/trunk/debian/patches/series
  packages/python-regex/trunk/debian/rules
  packages/python-regex/trunk/debian/source/
  packages/python-regex/trunk/debian/source/format
  packages/python-regex/trunk/debian/watch


Property changes on: packages/python-regex/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/python-regex/trunk/debian/changelog
===================================================================
--- packages/python-regex/trunk/debian/changelog	                        (rev 0)
+++ packages/python-regex/trunk/debian/changelog	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1,5 @@
+python-regex (0.1.20120323-1) unstable; urgency=low
+
+  * Initial release; Closes: #666790
+
+ -- Sandro Tosi <morph at debian.org>  Sun, 01 Apr 2012 17:14:01 +0200

Added: packages/python-regex/trunk/debian/compat
===================================================================
--- packages/python-regex/trunk/debian/compat	                        (rev 0)
+++ packages/python-regex/trunk/debian/compat	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1 @@
+8

Added: packages/python-regex/trunk/debian/control
===================================================================
--- packages/python-regex/trunk/debian/control	                        (rev 0)
+++ packages/python-regex/trunk/debian/control	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1,59 @@
+Source: python-regex
+Section: python
+Priority: optional
+Maintainer: Sandro Tosi <morph at debian.org>
+Build-Depends: debhelper (>= 8.0.0), python-all-dev, python-all-dbg, python3-all-dev, python3-all-dbg, python-support, python-docutils
+Standards-Version: 3.9.3
+X-Python-Version: all
+X-Python3-Version: 3.2
+Homepage: https://code.google.com/p/mrab-regex-hg/
+
+Package: python-regex
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Description: alternative regular expression module
+ This new regex implementation is intended eventually to replace Python's
+ current re module implementation.
+ .
+ For testing and comparison with the current 're' module the new implementation
+ is in the form of a module called 'regex'.
+
+Package: python-regex-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-all-dbg, python-regex (= ${binary:Version})
+Description: alternative regular expression module (debug extension)
+ This new regex implementation is intended eventually to replace Python's
+ current re module implementation.
+ .
+ For testing and comparison with the current 're' module the new implementation
+ is in the form of a module called 'regex'.
+ .
+ This package contains the debug extension for python-regex.
+
+Package: python3-regex
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Description: alternative regular expression module (Python 3)
+ This new regex implementation is intended eventually to replace Python's
+ current re module implementation.
+ .
+ For testing and comparison with the current 're' module the new implementation
+ is in the form of a module called 'regex'.
+ .
+ This is the Python 3 version of the package.
+
+Package: python3-regex-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python3-all-dbg, python3-regex (= ${binary:Version})
+Description: alternative regular expression module (Python 3 debug extension)
+ This new regex implementation is intended eventually to replace Python's
+ current re module implementation.
+ .
+ For testing and comparison with the current 're' module the new implementation
+ is in the form of a module called 'regex'.
+ .
+ This package contains the debug extension for python3-regex.

Added: packages/python-regex/trunk/debian/copyright
===================================================================
--- packages/python-regex/trunk/debian/copyright	                        (rev 0)
+++ packages/python-regex/trunk/debian/copyright	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1,58 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: regex
+Source: https://code.google.com/p/mrab-regex-hg/
+
+Files: *
+Copyright: 2009-2011 Matthew Barnett <regex at mrabarnett.plus.com>
+License: Python Software Foundation License
+ 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.
+
+Files: debian/*
+Copyright: 2012 Sandro Tosi <morph at debian.org>
+License: same as upstream

Added: packages/python-regex/trunk/debian/docs
===================================================================
--- packages/python-regex/trunk/debian/docs	                        (rev 0)
+++ packages/python-regex/trunk/debian/docs	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1,4 @@
+README
+Python2/UnicodeProperties.txt
+Python2/Features.rst
+Features.html

Added: packages/python-regex/trunk/debian/patches/10_fix_unicodedata_copy
===================================================================
--- packages/python-regex/trunk/debian/patches/10_fix_unicodedata_copy	                        (rev 0)
+++ packages/python-regex/trunk/debian/patches/10_fix_unicodedata_copy	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1,28 @@
+Description: don't copy unicodedata_db.h if running 'clean' command
+Author: Sandro Tosi <morph at debian.org>
+Index: regex-0.1.20120323/setup.py
+===================================================================
+--- regex-0.1.20120323.orig/setup.py	2012-04-01 18:27:49.947372325 +0200
++++ regex-0.1.20120323/setup.py	2012-04-01 18:28:22.508447240 +0200
+@@ -12,13 +12,14 @@
+ PKG_BASE = 'Python%i' % MAJOR
+ SRC_DIR = os.path.join(BASE_DIR, PKG_BASE)
+ 
+-if (MAJOR, MINOR) in ((2,5), (2,6), (2,7), (3,1), (3,2)):
+-    unicodedata_db_h = os.path.join(SRC_DIR, 'Python%i%i' % (MAJOR, MINOR),
+-                                    'unicodedata_db.h')
+-    shutil.copy(unicodedata_db_h, SRC_DIR)
+-else:
+-    sys.exit("No unicodedata_db.h could be prepared for Python %s"
+-             % sys.version)
++if sys.argv[1] != 'clean':
++    if (MAJOR, MINOR) in ((2,5), (2,6), (2,7), (3,1), (3,2)):
++        unicodedata_db_h = os.path.join(SRC_DIR, 'Python%i%i' % (MAJOR, MINOR),
++                                        'unicodedata_db.h')
++        shutil.copy(unicodedata_db_h, SRC_DIR)
++    else:
++        sys.exit("No unicodedata_db.h could be prepared for Python %s"
++                 % sys.version)
+ 
+ setup(
+     name='regex',

Added: packages/python-regex/trunk/debian/patches/series
===================================================================
--- packages/python-regex/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-regex/trunk/debian/patches/series	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1 @@
+10_fix_unicodedata_copy

Added: packages/python-regex/trunk/debian/rules
===================================================================
--- packages/python-regex/trunk/debian/rules	                        (rev 0)
+++ packages/python-regex/trunk/debian/rules	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1,60 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PYTHON2=$(shell pyversions -r)
+PYTHON3=$(shell py3versions -r)
+
+%:
+	dh $@ --with python3
+
+override_dh_clean:
+	dh_clean
+	rm -rf Features.html build/ Python?/unicodedata_db.h
+
+override_dh_auto_build:
+	dh_auto_build
+	set -e; \
+	for python in $(PYTHON3); do \
+		$$python setup.py build ; \
+		$$python-dbg setup.py build ; \
+	done
+	rst2html Python2/Features.rst > Features.html
+
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+override_dh_auto_test:
+	set -e; \
+	for python in $(PYTHON2); do \
+		LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib"); \
+		PYTHONPATH=$$LIB $$python Python2/test_regex.py; \
+	done
+	set -e; \
+	for python in $(PYTHON3); do \
+		LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_platlib)"); \
+		PYTHONPATH=$$LIB $$python Python3/test_regex.py; \
+	done
+endif
+
+override_dh_install:
+	set -e; \
+	for python in $(PYTHON2); do \
+		$$python setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-regex; \
+		$$python-dbg setup.py install --install-layout=deb --root=$(CURDIR)/debian/python-regex-dbg; \
+	done
+	set -e; \
+	for python in $(PYTHON3); do \
+		$$python setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-regex; \
+		$$python-dbg setup.py install --install-layout=deb --root=$(CURDIR)/debian/python3-regex-dbg; \
+	done
+
+override_dh_installdocs:
+	dh_installdocs -A
+
+override_dh_strip:
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+	dh_strip -ppython-regex --dbg-package=python-regex-dbg
+	dh_strip -ppython3-regex --dbg-package=python3-regex-dbg
+	cd debian/python-regex-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
+endif


Property changes on: packages/python-regex/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/python-regex/trunk/debian/source/format
===================================================================
--- packages/python-regex/trunk/debian/source/format	                        (rev 0)
+++ packages/python-regex/trunk/debian/source/format	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/python-regex/trunk/debian/watch
===================================================================
--- packages/python-regex/trunk/debian/watch	                        (rev 0)
+++ packages/python-regex/trunk/debian/watch	2012-04-01 21:26:15 UTC (rev 21006)
@@ -0,0 +1,4 @@
+# Compulsory line, this is a version 3 file
+version=3
+
+http://pypi.python.org/packages/source/r/regex/regex-(.*)\.tar.gz




More information about the Python-modules-commits mailing list