[Python-modules-commits] r29410 - in packages/pycparser/trunk/debian (7 files)

stefanor at users.alioth.debian.org stefanor at users.alioth.debian.org
Thu Jun 19 22:11:46 UTC 2014


    Date: Thursday, June 19, 2014 @ 22:11:45
  Author: stefanor
Revision: 29410

* Suggest cpp, as there are functions that can use cpp, although they don't
  by default.
* Depend on cpp for ADT unittests (Closes: #740159)
* Use uscan's Files-Excluded feature instead of manual repacking in
  debian/rules.
* Use find to locate ply generated tables, instead of hardcoding
  python-version-specific paths.
* Bump Standards-Version to 3.9.5, no changes needed.
* Bump copyright years.
* Add DEP-12 upstream metadata.

Added:
  packages/pycparser/trunk/debian/upstream/
  packages/pycparser/trunk/debian/upstream/metadata
Modified:
  packages/pycparser/trunk/debian/changelog
  packages/pycparser/trunk/debian/control
  packages/pycparser/trunk/debian/copyright
  packages/pycparser/trunk/debian/rules
  packages/pycparser/trunk/debian/tests/control

Modified: packages/pycparser/trunk/debian/changelog
===================================================================
--- packages/pycparser/trunk/debian/changelog	2014-06-19 22:00:54 UTC (rev 29409)
+++ packages/pycparser/trunk/debian/changelog	2014-06-19 22:11:45 UTC (rev 29410)
@@ -1,3 +1,18 @@
+pycparser (2.10+dfsg-3) UNRELEASED; urgency=medium
+
+  * Suggest cpp, as there are functions that can use cpp, although they don't
+    by default.
+  * Depend on cpp for ADT unittests (Closes: #740159)
+  * Use uscan's Files-Excluded feature instead of manual repacking in
+    debian/rules.
+  * Use find to locate ply generated tables, instead of hardcoding
+    python-version-specific paths.
+  * Bump Standards-Version to 3.9.5, no changes needed.
+  * Bump copyright years.
+  * Add DEP-12 upstream metadata.
+
+ -- Stefano Rivera <stefanor at debian.org>  Thu, 19 Jun 2014 23:41:47 +0200
+
 pycparser (2.10+dfsg-2) unstable; urgency=medium
 
   * Team upload.

Modified: packages/pycparser/trunk/debian/control
===================================================================
--- packages/pycparser/trunk/debian/control	2014-06-19 22:00:54 UTC (rev 29409)
+++ packages/pycparser/trunk/debian/control	2014-06-19 22:11:45 UTC (rev 29410)
@@ -10,7 +10,7 @@
  python-ply (>= 3.4-1~),
  python3-all (>= 3.1.2-6~),
  python3-ply
-Standards-Version: 3.9.4
+Standards-Version: 3.9.5
 Homepage: https://github.com/eliben/pycparser
 X-Python-Version: >= 2.6
 X-Python3-Version: >= 3.2
@@ -21,6 +21,7 @@
 Package: python-pycparser
 Architecture: all
 Depends: ${misc:Depends}, ${python-ply:Depends}, ${python:Depends}
+Suggests: cpp
 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
@@ -29,6 +30,7 @@
 Package: python3-pycparser
 Architecture: all
 Depends: ${misc:Depends}, ${python3-ply:Depends}, ${python3:Depends}
+Suggests: cpp
 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

Modified: packages/pycparser/trunk/debian/copyright
===================================================================
--- packages/pycparser/trunk/debian/copyright	2014-06-19 22:00:54 UTC (rev 29409)
+++ packages/pycparser/trunk/debian/copyright	2014-06-19 22:11:45 UTC (rev 29410)
@@ -1,6 +1,9 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: pycparser
 Upstream-Contact: Eli Bendersky <eliben at gmail.com>
+Files-Excluded:
+ utils/*.exe
+ pycparser/ply
 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.
@@ -11,7 +14,7 @@
 License: bsd-3-bendersky
 
 Files: debian/*
-Copyright: 2012-2013, Stefano Rivera <stefanor at debian.org>
+Copyright: 2012-2014, Stefano Rivera <stefanor at debian.org>
 License: bsd-3-bendersky
 
 License: bsd-3-bendersky

Modified: packages/pycparser/trunk/debian/rules
===================================================================
--- packages/pycparser/trunk/debian/rules	2014-06-19 22:00:54 UTC (rev 29409)
+++ packages/pycparser/trunk/debian/rules	2014-06-19 22:11:45 UTC (rev 29410)
@@ -17,25 +17,16 @@
 
 override_dh_python2:
 	dh_python2
-	dh_python-ply debian/python-pycparser/usr/lib/python2.7/dist-packages/pycparser/lextab.py \
-	              debian/python-pycparser/usr/lib/python2.7/dist-packages/pycparser/yacctab.py
+	dh_python-ply $$(find $(PYBUILD_DESTDIR_python2) -name '*tab.py')
 
 override_dh_python3:
 	dh_python3
 	# I blame jwilk for this temporary hack: (waiting for #714099)
 	sed -e 's/python-/python3-/g' /usr/bin/dh_python-ply | \
-		perl - debian/python3-pycparser/usr/lib/python3/dist-packages/pycparser/lextab.py \
-	           debian/python3-pycparser/usr/lib/python3/dist-packages/pycparser/yacctab.py
+		perl - $$(find $(PYBUILD_DESTDIR_python3) -name '*tab.py')
 
 clean-generated-code:
 	cd pycparser && rm -f lextab.py yacctab.py c_ast.py
 
 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 --exclude=pycparser/ply -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
+	uscan --noconf --rename --repack --download-current-version --destdir=.

Modified: packages/pycparser/trunk/debian/tests/control
===================================================================
--- packages/pycparser/trunk/debian/tests/control	2014-06-19 22:00:54 UTC (rev 29409)
+++ packages/pycparser/trunk/debian/tests/control	2014-06-19 22:11:45 UTC (rev 29410)
@@ -1,2 +1,2 @@
 Tests: unittests
-Depends: @, python-all, python3-all
+Depends: @, cpp, python-all, python3-all

Added: packages/pycparser/trunk/debian/upstream/metadata
===================================================================
--- packages/pycparser/trunk/debian/upstream/metadata	                        (rev 0)
+++ packages/pycparser/trunk/debian/upstream/metadata	2014-06-19 22:11:45 UTC (rev 29410)
@@ -0,0 +1,9 @@
+Name: pycparser
+Archive: PyPI
+Bug-Database: https://github.com/eliben/pycparser/issues
+Bug-Submit: https://github.com/eliben/pycparser/issues/new
+Changelog: https://github.com/eliben/pycparser/blob/master/CHANGES
+Contact: Eli Bendersky <eliben at gmail.com>
+Homepage: https://github.com/eliben/pycparser
+Repository-Browse: https://github.com/eliben/pycparser
+Repository: https://github.com/eliben/pycparser




More information about the Python-modules-commits mailing list