[Python-modules-commits] r22282 - in packages/pycparser (20 files)

stefanor at users.alioth.debian.org stefanor at users.alioth.debian.org
Sun Jun 24 16:55:28 UTC 2012


    Date: Sunday, June 24, 2012 @ 16:55:27
  Author: stefanor
Revision: 22282

Hand-inject pycparser 2.07+dfsg-1

Added:
  packages/pycparser/trunk/
  packages/pycparser/trunk/debian/
  packages/pycparser/trunk/debian/changelog
  packages/pycparser/trunk/debian/clean
  packages/pycparser/trunk/debian/compat
  packages/pycparser/trunk/debian/control
  packages/pycparser/trunk/debian/copyright
  packages/pycparser/trunk/debian/patches/
  packages/pycparser/trunk/debian/patches/abort-on-test-failure
  packages/pycparser/trunk/debian/patches/series
  packages/pycparser/trunk/debian/python-pycparser.docs
  packages/pycparser/trunk/debian/python-pycparser.examples
  packages/pycparser/trunk/debian/python-pycparser.install
  packages/pycparser/trunk/debian/python3-pycparser.docs
  packages/pycparser/trunk/debian/python3-pycparser.examples
  packages/pycparser/trunk/debian/python3-pycparser.install
  packages/pycparser/trunk/debian/rules
  packages/pycparser/trunk/debian/source/
  packages/pycparser/trunk/debian/source/format
  packages/pycparser/trunk/debian/watch

Added: packages/pycparser/trunk/debian/changelog
===================================================================
--- packages/pycparser/trunk/debian/changelog	                        (rev 0)
+++ packages/pycparser/trunk/debian/changelog	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1,5 @@
+pycparser (2.07+dfsg-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #581847)
+
+ -- Stefano Rivera <stefanor at debian.org>  Mon, 18 Jun 2012 15:54:01 +0200

Added: packages/pycparser/trunk/debian/clean
===================================================================
--- packages/pycparser/trunk/debian/clean	                        (rev 0)
+++ packages/pycparser/trunk/debian/clean	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1,4 @@
+yacctab.py
+parser.out
+pycparser/yacctab.py
+pycparser/c_ast.py

Added: packages/pycparser/trunk/debian/compat
===================================================================
--- packages/pycparser/trunk/debian/compat	                        (rev 0)
+++ packages/pycparser/trunk/debian/compat	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1 @@
+7

Added: packages/pycparser/trunk/debian/control
===================================================================
--- packages/pycparser/trunk/debian/control	                        (rev 0)
+++ packages/pycparser/trunk/debian/control	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1,33 @@
+Source: pycparser
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Stefano Rivera <stefanor at debian.org>
+Build-Depends:
+ debhelper (>= 7.0.50~),
+ python-all (>= 2.6.6-3~),
+ python-ply,
+ python3-all (>= 3.1.2-6~),
+ python3-ply
+Standards-Version: 3.9.3
+Homepage: https://code.google.com/p/pycparser/
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+
+Package: python-pycparser
+Architecture: all
+Depends: python-ply, ${misc:Depends}, ${python:Depends}
+Description: C parser in Python
+ pycparser is a complete parser of the C language, written in pure Python using
+ the PLY parsing library. It parses C code into an AST and can serve as a
+ front-end for C compilers or analysis tools.
+
+Package: python3-pycparser
+Architecture: all
+Depends: python3-ply, ${misc:Depends}, ${python3:Depends}
+Description: C parser in Python 3
+ pycparser is a complete parser of the C language, written in pure Python using
+ the PLY parsing library. It parses C code into an AST and can serve as a
+ front-end for C compilers or analysis tools.
+ .
+ This package contains the Python 3 version.

Added: packages/pycparser/trunk/debian/copyright
===================================================================
--- packages/pycparser/trunk/debian/copyright	                        (rev 0)
+++ packages/pycparser/trunk/debian/copyright	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1,36 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pycparser
+Upstream-Contact: Eli Bendersky <eliben at gmail.com>
+Source: http://pypi.python.org/pypi/pycparser
+ lcc.exe was removed from the source package, as the license isn't DFSG-free
+ and it isn't needed on Debian.
+
+Files: *
+Copyright: 2008-2012, Eli Bendersky <eliben at gmail.com>
+License: bsd-3-bendersky
+
+Files: debian/*
+Copyright: 2012, Stefano Rivera <stefanor at debian.org>
+License: bsd-3-bendersky
+
+License: bsd-3-bendersky
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright notice, this
+   list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+   this list of conditions and the following disclaimer in the documentation
+   and/or other materials provided with the distribution.
+ * Neither the name of Eli Bendersky nor the names of its contributors may
+   be used to endorse or promote products derived from this software without
+   specific prior written permission.
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Added: packages/pycparser/trunk/debian/patches/abort-on-test-failure
===================================================================
--- packages/pycparser/trunk/debian/patches/abort-on-test-failure	                        (rev 0)
+++ packages/pycparser/trunk/debian/patches/abort-on-test-failure	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1,16 @@
+Description: Return a non-zero exit code if tests fail
+Author: Stefano Rivera <stefanor at debian.org>
+Forwarded: https://code.google.com/p/pycparser/issues/detail?id=69
+
+--- a/tests/all_tests.py
++++ b/tests/all_tests.py
+@@ -14,5 +14,7 @@
+         'test_c_parser',
+     ]
+ )
+-    
+-unittest.TextTestRunner(verbosity=1).run(suite)
++
++r = unittest.TextTestRunner(verbosity=1).run(suite)
++if r.failures:
++    sys.exit(1)

Added: packages/pycparser/trunk/debian/patches/series
===================================================================
--- packages/pycparser/trunk/debian/patches/series	                        (rev 0)
+++ packages/pycparser/trunk/debian/patches/series	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1 @@
+abort-on-test-failure

Added: packages/pycparser/trunk/debian/python-pycparser.docs
===================================================================
--- packages/pycparser/trunk/debian/python-pycparser.docs	                        (rev 0)
+++ packages/pycparser/trunk/debian/python-pycparser.docs	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1 @@
+README.*

Added: packages/pycparser/trunk/debian/python-pycparser.examples
===================================================================
--- packages/pycparser/trunk/debian/python-pycparser.examples	                        (rev 0)
+++ packages/pycparser/trunk/debian/python-pycparser.examples	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1 @@
+examples/*

Added: packages/pycparser/trunk/debian/python-pycparser.install
===================================================================
--- packages/pycparser/trunk/debian/python-pycparser.install	                        (rev 0)
+++ packages/pycparser/trunk/debian/python-pycparser.install	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1 @@
+utils/fake_libc_include /usr/share/python-pycparser

Added: packages/pycparser/trunk/debian/python3-pycparser.docs
===================================================================
--- packages/pycparser/trunk/debian/python3-pycparser.docs	                        (rev 0)
+++ packages/pycparser/trunk/debian/python3-pycparser.docs	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1 @@
+README.*

Added: packages/pycparser/trunk/debian/python3-pycparser.examples
===================================================================
--- packages/pycparser/trunk/debian/python3-pycparser.examples	                        (rev 0)
+++ packages/pycparser/trunk/debian/python3-pycparser.examples	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1 @@
+examples/*

Added: packages/pycparser/trunk/debian/python3-pycparser.install
===================================================================
--- packages/pycparser/trunk/debian/python3-pycparser.install	                        (rev 0)
+++ packages/pycparser/trunk/debian/python3-pycparser.install	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1 @@
+utils/fake_libc_include /usr/share/python3-pycparser

Added: packages/pycparser/trunk/debian/rules
===================================================================
--- packages/pycparser/trunk/debian/rules	                        (rev 0)
+++ packages/pycparser/trunk/debian/rules	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1,44 @@
+#!/usr/bin/make -f
+
+PYVERS = $(shell pyversions -r)
+PY3VERS = $(shell py3versions -r)
+
+%:
+	dh $@ --with python2,python3
+
+override_dh_auto_build:
+	cd pycparser && python _build_tables.py
+	set -e -x; \
+	for py in $(PYVERS) $(PY3VERS); do \
+		$$py setup.py build; \
+	done
+
+override_dh_auto_test:
+	set -e -x; \
+	for py in $(PYVERS) $(PY3VERS); do \
+		$$py tests/all_tests.py; \
+	done
+
+override_dh_auto_install:
+	set -e -x; \
+	for py in $(PYVERS); do \
+		$$py setup.py install --skip-build --root debian/python-pycparser --install-layout=deb; \
+	done
+	set -e -x; \
+	for py in $(PY3VERS); do \
+		$$py setup.py install --skip-build --root debian/python3-pycparser --install-layout=deb; \
+	done
+
+override_dh_auto_clean:
+	rm -rf build
+	find . -name '*.pyc' -delete
+
+get-packaged-orig-source:
+	set -e -x; \
+	VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p'); \
+	uscan --noconf --force-download --rename --download-version=$$VER --destdir=.; \
+	tar -x --exclude=utils/cpp.exe -f pycparser_$$VER.orig.tar.gz; \
+	rm -f pycparser_$$VER.orig.tar.gz; \
+	GZIP=--best tar -cz --owner root --group root --mode a+rX \
+		-f pycparser_$$VER+dfsg.orig.tar.gz pycparser-$$VER; \
+	rm -rf pycparser-$$VER


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

Added: packages/pycparser/trunk/debian/source/format
===================================================================
--- packages/pycparser/trunk/debian/source/format	                        (rev 0)
+++ packages/pycparser/trunk/debian/source/format	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/pycparser/trunk/debian/watch
===================================================================
--- packages/pycparser/trunk/debian/watch	                        (rev 0)
+++ packages/pycparser/trunk/debian/watch	2012-06-24 16:55:27 UTC (rev 22282)
@@ -0,0 +1,4 @@
+version=3
+
+opts=dversionmangle=s/\+dfsg// \
+http://pypi.python.org/packages/source/p/pycparser/pycparser-(.+).tar.gz




More information about the Python-modules-commits mailing list