← Back to team overview

touch-packages team mailing list archive

[Bug 1501805] Re: Sync python-apt 1.0.0 (main) from Debian unstable (main)

 

I ran the DEP-8 tests for the Debian version of the package in a Wily VM
and got some failures related to the deprecation warnings.  This would
prevent promotion from wily-proposed.  So either a `Restrictions: allow-
stderr` should be added or you should add a -W argument to suppress the
warnings.

Also I noticed that there aren't any DEP-8 tests for Python 3.  Those
should be added too.

Let me work up fixes for both those, and I'll apply them to an Ubuntu
delta and propose a patch to Debian.

adt-run [14:16:10]: test run-tests: -----------------------]
adt-run [14:16:11]: test run-tests:  - - - - - - - - - - results - - - - - - - - - -
run-tests            FAIL stderr: /tmp/adt-run.wtCaQa/build.Hft/python-apt-1.0.0/tests/test_paths.py:114: DeprecationWarning: IndexRecords is deprecated and will be removed in 1.1
adt-run [14:16:11]: test run-tests:  - - - - - - - - - - stderr - - - - - - - - - -
/tmp/adt-run.wtCaQa/build.Hft/python-apt-1.0.0/tests/test_paths.py:114: DeprecationWarning: IndexRecords is deprecated and will be removed in 1.1
  index = apt_pkg.IndexRecords()
/tmp/adt-run.wtCaQa/build.Hft/python-apt-1.0.0/tests/test_paths.py:114: DeprecationWarning: IndexRecords is deprecated and will be removed in 1.1
  index = apt_pkg.IndexRecords()
adt-run [14:16:12]: @@@@@@@@@@@@@@@@@@@@ summary
run-tests            FAIL stderr: /tmp/adt-run.wtCaQa/build.Hft/python-apt-1.0.0/tests/test_paths.py:114: DeprecationWarning: IndexRecords is deprecated and will be removed in 1.1

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/1501805

Title:
  Sync python-apt 1.0.0 (main) from Debian unstable (main)

Status in python-apt package in Ubuntu:
  In Progress

Bug description:
  Please sync python-apt 1.0.0 (main) from Debian unstable (main)

  Explanation of the Ubuntu delta and why it can be dropped:
    * Cherrypick d1d4e0848c5c2963d8411470bcf15a0e8c3538af from git
      to resolve the testsuite failures with the new pep8 version.
  -> Obviously uptream
    * debian/control: Drop apt build-depends to 1.0.9.10ubuntu6 to
      build in wily; can be dropped after apt >= 1.0.10 is merged.
  ->Upstream too
    * To properly conform to PEP 479 and Python 3.5, __iter__() methods
      should return when exhausted instead of raising StopIterator.  This
      diff can be dropped when Debian bug #792606 is fixed released.
  -> Upstream too

  Furthermore, this is somewhat annoying, because the current
  version in wily has an invalid (non-PEP440) upstream version
  number, and uploading 1.0.0 will fix that. Otherwise, you get
  setuptools to complain again, which we do not want.

  That release also deprecates some code that will be dropped
  in the next release, so it's kind of important to have that.

  Changelog entries since current wily version 1.0.0~beta3.1ubuntu1:

  python-apt (1.0.0) unstable; urgency=medium

    [ Julian Andres Klode ]
    * Fix pep8 1.6.2 issues
    * setup.py: Pass -std=c++11 and -Wno-write-strings to the compiler
    * Convert from SPtr and SPtrArray to unique_ptr and array
    * Replace pkgDistUpgrade and friend with APT::Upgrade::Upgrade
    * AcquireItem: Deprecate mode and introduce active_subprocess
    * APT 1.1: Fix a typo in a member access.
    * Deprecate IndexRecords
    * Document the new additions in 1.0
    * doc/source/conf.py: Do not set html_style, broken with recent sphinx
    * Revert the temporary build-deps on APT 1.0.10 and the new gcc,
      as they are not needed anymore.

    [ John R. Lenton ]
    * Discard stderr when calling system-image-cli (LP: #267935)

    [ Michael Schaller ]
    * apt.Cache: Add Cache._rawpkg_to_pkg method to consolidate duplicated code
    * apt.Version: Compare against package name and version (if available)
    * apt/package.py: Add target_versions method to [Base]Dependency
    * Add helpers/filters for installed packages/versions

   -- Julian Andres Klode <jak@xxxxxxxxxx>  Sat, 12 Sep 2015 14:35:27
  +0200

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1501805/+subscriptions


References