[Python-modules-team] Bug#767529: python-stdeb: Fails when a package has more than one release in PyPi

Teemu Ikonen tpikonen at gmail.com
Fri Oct 31 18:57:38 UTC 2014


Package: python-stdeb
Version: 0.8.2-3
Severity: normal
Tags: upstream

The PyPi xmlrpc API sometimes returns more than one release with the
package_releases() call. This makes pypi-download fail:

$ pypi-download gmvault
Traceback (most recent call last):
  File "/usr/bin/pypi-download", line 32, in <module>
    main()
  File "/usr/bin/pypi-download", line 28, in main
    allow_unsafe_download=options.allow_unsafe_download)
  File "/usr/lib/python2.7/dist-packages/stdeb/downloader.py", line 90,
in get_source_tarball
    release=release)
  File "/usr/lib/python2.7/dist-packages/stdeb/downloader.py", line 50,
in find_tar_gz
    default_releases,all_releases))
RuntimeError: Expected one and only one release. Non-hidden:
['1.8.1-beta', '1.8-beta']. All: ['1.8.1-beta', '1.8-beta', '1.7-beta',
'1.6-beta', '1.5-beta', '1.0-beta']

The fix in the python-stdeb side would be a trivial change to
downloader.py, but I'm not sure whether the problem is actually on the PyPi
side.

Best,
Teemu



More information about the Python-modules-team mailing list