Merge lp://staging/~mitya57/ubuntu/saucy/dh-python/adt into lp://staging/ubuntu/saucy/dh-python

Proposed by Dmitry Shachnev
Status: Merged
Merged at revision: 11
Proposed branch: lp://staging/~mitya57/ubuntu/saucy/dh-python/adt
Merge into: lp://staging/ubuntu/saucy/dh-python
Diff against target: 568 lines (+87/-200)
11 files modified
.pc/applied-patches (+1/-0)
.pc/ubuntu-python-versions.patch/tests/Makefile (+26/-0)
.pc/unbreck-pybuild.patch/dh/pybuild.pm (+0/-172)
debian/changelog (+16/-0)
debian/patches/series (+0/-1)
debian/patches/ubuntu-python-versions.patch (+21/-0)
debian/patches/unbreck-pybuild.patch (+0/-15)
debian/tests/control (+6/-2)
debian/tests/dh-python (+5/-7)
debian/tests/nosetests (+9/-0)
tests/Makefile (+3/-3)
To merge this branch: bzr merge lp://staging/~mitya57/ubuntu/saucy/dh-python/adt
Reviewer Review Type Date Requested Status
Dimitri John Ledkov (community) Approve
Martin Pitt Pending
Ubuntu Development Team Pending
Review via email: mp+182561@code.staging.launchpad.net

Description of the change

This fixes existing "dh-python" autopkgtest, and adds a new one ("nosetests"). When this is confirmed to work on jenkins.u.c, I will forward these changes to Debian.

Based on Dmitrijs' initial work.

To post a comment you must log in.
11. By Dmitry Shachnev

Merge lp:ubuntu/pybuild

Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Download full text (5.0 KiB)

not sure why, it still tries to run python3.2 tests.

Doctest: dhpython.interpreter.Interpreter.cache_file ... FAIL
Doctest: dhpython.interpreter.Interpreter.magic_tag ... FAIL
Doctest: dhpython.interpreter.Interpreter.parse ... ok
Doctest: dhpython.interpreter.Interpreter.sitedir ... ok
Doctest: dhpython.pydist._pl2py ... ok
Doctest: dhpython.pydist._translate ... ok
Doctest: dhpython.tools.clean_egg_name ... ok
Doctest: dhpython.tools.relpath ... ok
Doctest: dhpython.version.Version.__add__ ... ok
Doctest: dhpython.version.Version.__lshift__ ... ok
Doctest: dhpython.version.Version.__repr__ ... ok
Doctest: dhpython.version.Version.__rshift__ ... ok
Doctest: dhpython.version.Version.__str__ ... ok
Doctest: dhpython.version.Version.__sub__ ... ok
Doctest: dhpython.version.VersionRange.__repr__ ... ok
Doctest: dhpython.version.VersionRange.__str__ ... ok
Doctest: dhpython.version.VersionRange._parse_pycentral ... ok
Doctest: dhpython.version.VersionRange.parse ... ok
Doctest: dhpython.version.get_requested_versions ... ok

======================================================================
FAIL: Doctest: dhpython.interpreter.Interpreter.cache_file
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.3/doctest.py", line 2154, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
nose.proxy.AssertionError: Failed doctest test for dhpython.interpreter.Interpreter.cache_file
  File "/usr/share/dh-python/dhpython/interpreter.py", line 282, in cache_file

----------------------------------------------------------------------
File "/usr/share/dh-python/dhpython/interpreter.py", line 293, in dhpython.interpreter.Interpreter.cache_file
Failed example:
    i.cache_file('bar/foo.py', '3.2')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.3/doctest.py", line 1287, in __run
        compileflags, 1), test.globs)
      File "<doctest dhpython.interpreter.Interpreter.cache_file[2]>", line 1, in <module>
        i.cache_file('bar/foo.py', '3.2')
      File "/usr/share/dh-python/dhpython/interpreter.py", line 305, in cache_file
        (fname[:-3], self.magic_tag(version), last_char))
      File "/usr/share/dh-python/dhpython/interpreter.py", line 325, in magic_tag
        return self._execute('import imp; print(imp.get_tag())', version)
      File "/usr/share/dh-python/dhpython/interpreter.py", line 440, in _execute
        raise Exception('{} failed with status code {}'.format(command, output['returncode']))
    Exception: python3.2 -c 'import imp; print(imp.get_tag())' failed with status code 127

-------------------- >> begin captured logging << --------------------
dhpython: INFO: cannot initialize 'cmake'
Traceback (most recent call last):
  File "/usr/share/dh-python/dhpython/build/__init__.py", line 32, in <module>
    module.BuildSystem.is_usable()
  File "/usr/share/dh-python/dhpython/build/base.py", line 72, in is_usable
    raise Exception("missing command: %s" % command)
Exception: missing command: cmake
dhpython: DEBUG: invoking: python3.2 -c 'import imp; print(imp.get_tag())'
dhpython: DEBUG: /bin/sh: 1:...

Read more...

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I fixed doctests s/3.2/3.3/ will upload now.

review: Approve
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Thanks for fixing and uploading!

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

It currently fails on Jenkins with:

The following packages have unmet dependencies:
cloud-utils: Depends: cloud-guest-utils but it is not going to be installed
             Depends: cloud-image-utils but it is not going to be installed

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Yeah, jibel raised that with smoser at vUDS yesterday =) should be sorted out soon.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches