]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1941: * ACK last three NMUs with thanks to Raphael Hertzog for making the best of
authorjoeyh <joeyh>
Sun, 1 Oct 2006 17:13:11 +0000 (17:13 +0000)
committerjoeyh <joeyh>
Sun, 1 Oct 2006 17:13:11 +0000 (17:13 +0000)
  a difficult situation.
* Revert all dh_python changes. Closes: #381389, #378604
* Conflict with python-support << 0.5.3 and python-central << 0.5.5.
* Make dh_python do nothing if debian/pycompat is found.
  The new versions of dh_pysupport or dh_pycentral will take care of
  everything dh_python used to do in this situation.
* dh_python is now deprecated. Closes: #358392, #253582, #189474
* Non-maintainer upload.
* Update of dh_python
  - when buidling for a non-standard Python version, generate more
    reasonable Depends like "python (>= X.Y) | pythonX.Y"
Closes: #375576
  - fix handling of private extensions. Closes: #375948
  - fix parsing of XS-Python-Version, it didn't work if only fixed versions
    were listed in XS-Python-Version.
  - fix use of unitialized value. Closes: #374776
  - fix typos in POD documentation. Closes: #375936
* Non-maintainer upload.
* Update of dh_python
  - vastly refactored, easier to understand, and the difference
    between old policy and new policy is easier to grasp
  - it supports an -X option which can be used to not scan some files
  - uses debian/pyversions as reference source of information for
    dependencies but also parse the XS-Python-Version header as fallback.
  - ${python:Versions}'s default value is XS-Python-Version's value
    instead of "all" when the package doesn't depend on a
    specific python version. Closes: #373853
  - always generate ${python:Provides} and leave the responsibility to the
    maintainer to not use ${python:Provides} if he doesn't want the
    provides.
  - uses debian/pycompat or DH_PYCOMPAT as reference field to run in new
    policy mode. The presence of XS-Python-Version will also trigger the
    new policy mode (this is for short-term compatibility, it may be removed in
    the not too-distant future).
    DH_PYCOMPAT=1 is the default mode and is compatible to the old policy.
    DH_PYCOMPAT=2 is the new mode and is compatible with the new policy.
* Use "grep ^Version:" instead of "grep Version:" on the output of
  dpkg-parsechangelog since the above changelog entry matched "Version:" and
  thus made the build fail.
* Non-maintainer upload.
* Integrate the new dh_python implementing the new Python policy. Closes: #370833

debian/changelog
debian/control
dh_python
doc/TODO
t/size

index 9a993bd502fc8eab6acceafd2a12a561f11516f5..c0fdb87da40f3322fb0dfe1c3c8b7507dffb0f3f 100644 (file)
@@ -1,17 +1,71 @@
-NOTE: debhelper has been NMUed. That NMU will need to be investigated and/or
-merged before any further debhelper releases can be made.
-
 debhelper (5.0.38) UNRELEASED; urgency=low
 
   [ Valery Perrin ]
   * Update french translation with recent change in dh_installmodules
   
   [ Joey Hess]
+  * ACK last three NMUs with thanks to Raphael Hertzog for making the best of
+    a difficult situation.
+  * Revert all dh_python changes. Closes: #381389, #378604
+  * Conflict with python-support << 0.5.3 and python-central << 0.5.5.
+  * Make dh_python do nothing if debian/pycompat is found.
+    The new versions of dh_pysupport or dh_pycentral will take care of
+    everything dh_python used to do in this situation.
+  * dh_python is now deprecated. Closes: #358392, #253582, #189474
   * move po4a to Build-Depends as it's run in clean.
   * Add size test, which fails on any debhelper program of more than 150
     lines. This is not a joke, and 100 lines would be better.
 
- -- Joey Hess <joeyh@debian.org>  Sun,  2 Jul 2006 18:11:49 -0400
+ -- Joey Hess <joeyh@debian.org>  Sun,  1 Oct 2006 13:07:40 -0400
+
+debhelper (5.0.37.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update of dh_python
+    - when buidling for a non-standard Python version, generate more
+      reasonable Depends like "python (>= X.Y) | pythonX.Y"
+      Closes: #375576
+    - fix handling of private extensions. Closes: #375948
+    - fix parsing of XS-Python-Version, it didn't work if only fixed versions
+      were listed in XS-Python-Version.
+    - fix use of unitialized value. Closes: #374776
+    - fix typos in POD documentation. Closes: #375936
+
+ -- Raphael Hertzog <hertzog@debian.org>  Mon, 10 Jul 2006 13:20:06 +0200
+
+debhelper (5.0.37.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update of dh_python
+    - vastly refactored, easier to understand, and the difference
+      between old policy and new policy is easier to grasp
+    - it supports an -X option which can be used to not scan some files
+    - uses debian/pyversions as reference source of information for
+      dependencies but also parse the XS-Python-Version header as fallback.
+    - ${python:Versions}'s default value is XS-Python-Version's value
+      instead of "all" when the package doesn't depend on a
+      specific python version. Closes: #373853
+    - always generate ${python:Provides} and leave the responsibility to the
+      maintainer to not use ${python:Provides} if he doesn't want the
+      provides.
+    - uses debian/pycompat or DH_PYCOMPAT as reference field to run in new
+      policy mode. The presence of XS-Python-Version will also trigger the
+      new policy mode (this is for short-term compatibility, it may be removed in
+      the not too-distant future).
+      DH_PYCOMPAT=1 is the default mode and is compatible to the old policy.
+      DH_PYCOMPAT=2 is the new mode and is compatible with the new policy.
+  * Use "grep ^Version:" instead of "grep Version:" on the output of
+    dpkg-parsechangelog since the above changelog entry matched "Version:" and
+    thus made the build fail.
+
+ -- Raphael Hertzog <hertzog@debian.org>  Sat, 17 Jun 2006 20:44:29 +0200
+
+debhelper (5.0.37.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Integrate the new dh_python implementing the new Python policy. Closes: #370833
+
+ -- Raphael Hertzog <hertzog@debian.org>  Mon, 12 Jun 2006 08:58:22 +0200
 
 debhelper (5.0.37) unstable; urgency=low
 
index 296cbb1443dd28f809c6258355156d81720aac86..b7a08c3ef7a84047bafd79e080bf2d6e30af0ed9 100644 (file)
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Joey Hess <joeyh@debian.org>
 Build-Depends: po4a (>= 0.24)
 Standards-Version: 3.7.2
-XS-X-Vcs-Svn: svn://svn.debian.org/svn/debhelper/trunk/
+XS-Vcs-Svn: svn://svn.debian.org/svn/debhelper/trunk/
 
 Package: debhelper
 Architecture: all
index 6a1f78f154f34e248f24794466011d8cbb24d54a..a1012731d3cb5b4e03755ece8b4ddcbe3ab6bc4f 100755 (executable)
--- a/dh_python
+++ b/dh_python
@@ -16,6 +16,10 @@ B<dh_python> [S<I<debhelper options>>] [B<-n>] [B<-V> I<version>] [S<I<module di
 
 =head1 DESCRIPTION
 
+Note: This program is deprecated. You should use dh_pysupport or
+dh_pycentral instead. This program will do nothing if debian/pycompat
+exists.
+
 dh_python is a debhelper program that is responsible for generating the
 ${python:Depends} substitutions and adding them to substvars files. It
 will also add a postinst and a prerm script if required.
@@ -69,6 +73,13 @@ Python policy, version 0.3.7
 
 init();
 
+if (-e "debian/pycompat") {
+       warning("Doing nothing since dh_pycompat exists; dh_pysupport or dh_pycentral should do the work. You can remove dh_python from your rules file.");
+       exit 0;
+}
+
+warning("This program is deprecated, you should use dh_pysupport or dh_pycentral instead.");
+
 my $python = 'python';
 
 # The current python major version
index 24ba4abf7a7666cfe65c4491100026bd8025f1be..34d900f8eae9cfcc80bd0abf10155b252d9b624c 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -59,3 +59,4 @@ Deprecated:
   debconf-utils dependency.
 * dh_undocumented
 * dh_installinit --init-script
+* dh_python
diff --git a/t/size b/t/size
index ce613f8e87a0640e1d2a02cb43d5c137a74d3496..f661db642137f6325bad8a3e8c39b5af08351ad3 100755 (executable)
--- a/t/size
+++ b/t/size
@@ -3,13 +3,15 @@
 # Debhelper is supposed to consist of small, simple, easy to understand
 # programs. Programs growing in size and complexity without bounds is a
 # bug.
-use Test;
+use Test::More;
 
-my @progs=grep { -x $_ } glob("dh_*");
+# exclude dh_python since it's deprecated
+my @progs=grep { -x $_ && !/dh_python/ } glob("dh_*");
 
 plan(tests => (@progs + @progs));
 
 foreach my $file (@progs) {
+
        my $lines=0;
        my $maxlength=0;
        open(IN, $file) || die "open: $!";
@@ -23,6 +25,6 @@ foreach my $file (@progs) {
        }
        close IN;
        print "# $file has $lines lines, max length is $maxlength\n";
-       ok($lines < 150);
-       ok($maxlength < 160);
+       ok($lines < 150, $file);
+       ok($maxlength < 160, $file);
 }