Source: devpi-common
Version: 3.2.2-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230203 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="cd {dir}; {interpreter} -m pytest" 
> dh_auto_test
> I: pybuild base:240: cd /<<PKGBUILDDIR>>; python3.11 -m pytest
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.1, pytest-7.2.1, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: tox.ini
> collected 175 items
> 
> testing/test_archive.py ............................                     [ 
> 16%]
> testing/test_lazydecorator.py ....                                       [ 
> 18%]
> testing/test_metadata.py ............................................... [ 
> 45%]
> .............F.F.                                                        [ 
> 54%]
> testing/test_proc.py ..                                                  [ 
> 56%]
> testing/test_request.py .....                                            [ 
> 58%]
> testing/test_types.py ..                                                 [ 
> 60%]
> testing/test_url.py .................................................... [ 
> 89%]
> ..                                                                       [ 
> 90%]
> testing/test_validation.py ................                              
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _________________ TestBasenameMeta.test_noversion_sameproject 
> __________________
> 
> self = <test_metadata.TestBasenameMeta object at 0x7f8496212990>
> 
>     def test_noversion_sameproject(self):
>         meta1 = BasenameMeta("py-1.0.zip", sameproject=True)
> >       meta2 = BasenameMeta("master", sameproject=True)
> 
> testing/test_metadata.py:132: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> devpi_common/metadata.py:151: in __init__
>     self.cmpval = (parse_version(version), normalize_name(name), ext)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <[AttributeError("'Version' object has no attribute '_version'") 
> raised in repr()] Version object at 0x7f8495c2cc90>
> version = ''
> 
>     def __init__(self, version: str) -> None:
>     
>         # Validate the version and parse it into pieces
>         match = self._regex.search(version)
>         if not match:
> >           raise InvalidVersion(f"Invalid version: '{version}'")
> E           pkg_resources.extern.packaging.version.InvalidVersion: Invalid 
> version: ''
> 
> /usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/version.py:266:
>  InvalidVersion
> _________________ TestBasenameMeta.test_sort_sameproject_links 
> _________________
> 
> self = <test_metadata.TestBasenameMeta object at 0x7f8496213790>
> 
>     def test_sort_sameproject_links(self):
>         links = ["master", "py-1.0.zip", "trunk.zip", "py-1.1.tgz"]
> >       newlinks = sorted_sameproject_links(links)
> 
> testing/test_metadata.py:147: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> devpi_common/metadata.py:159: in sorted_sameproject_links
>     s = sorted((BasenameMeta(link, sameproject=True)
> devpi_common/metadata.py:159: in <genexpr>
>     s = sorted((BasenameMeta(link, sameproject=True)
> devpi_common/metadata.py:151: in __init__
>     self.cmpval = (parse_version(version), normalize_name(name), ext)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <[AttributeError("'Version' object has no attribute '_version'") 
> raised in repr()] Version object at 0x7f8495b58650>
> version = ''
> 
>     def __init__(self, version: str) -> None:
>     
>         # Validate the version and parse it into pieces
>         match = self._regex.search(version)
>         if not match:
> >           raise InvalidVersion(f"Invalid version: '{version}'")
> E           pkg_resources.extern.packaging.version.InvalidVersion: Invalid 
> version: ''
> 
> /usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/version.py:266:
>  InvalidVersion
> =============================== warnings summary 
> ===============================
> ../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294: 
> PytestConfigWarning: Unknown config option: flakes-ignore
>   
>     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
> 
> ../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294: 
> PytestConfigWarning: Unknown config option: rsyncdirs
>   
>     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
> 
> ../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294: 
> PytestConfigWarning: Unknown config option: rsyncignore
>   
>     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
> 
> testing/test_archive.py:49
>   /<<PKGBUILDDIR>>/testing/test_archive.py:49: PytestDeprecationWarning: 
> @pytest.yield_fixture is deprecated.
>   Use @pytest.fixture instead; they are the same.
>     @pytest.yield_fixture(params=["path", "file"])
> 
> devpi_common/metadata.py:15
>   /<<PKGBUILDDIR>>/devpi_common/metadata.py:15: DeprecationWarning: invalid 
> escape sequence '\.'
>     "\.doc\.zip|"
> 
> devpi_common/metadata.py:16
>   /<<PKGBUILDDIR>>/devpi_common/metadata.py:16: DeprecationWarning: invalid 
> escape sequence '\.'
>     "\.macosx-\d+.*|"
> 
> devpi_common/metadata.py:17
>   /<<PKGBUILDDIR>>/devpi_common/metadata.py:17: DeprecationWarning: invalid 
> escape sequence '\.'
>     "\.linux-.*|"
> 
> devpi_common/metadata.py:18
>   /<<PKGBUILDDIR>>/devpi_common/metadata.py:18: DeprecationWarning: invalid 
> escape sequence '\.'
>     "\.[^\.]*\.rpm|"
> 
> devpi_common/metadata.py:19
>   /<<PKGBUILDDIR>>/devpi_common/metadata.py:19: DeprecationWarning: invalid 
> escape sequence '\.'
>     "\.win-amd68-py[23]\.\d\..*|"
> 
> devpi_common/metadata.py:20
>   /<<PKGBUILDDIR>>/devpi_common/metadata.py:20: DeprecationWarning: invalid 
> escape sequence '\.'
>     "\.win32-py[23]\.\d\..*|"
> 
> devpi_common/metadata.py:21
>   /<<PKGBUILDDIR>>/devpi_common/metadata.py:21: DeprecationWarning: invalid 
> escape sequence '\.'
>     "\.win.*\..*|"
> 
> devpi_common/metadata.py:22
>   /<<PKGBUILDDIR>>/devpi_common/metadata.py:22: DeprecationWarning: invalid 
> escape sequence '\d'
>     "-(?:py|cp|ip|pp|jy)[23][\d\.]*.*\..*|"
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ================== 2 failed, 173 passed, 12 warnings in 1.03s 
> ==================
> E: pybuild pybuild:388: test: plugin custom failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>; python3.11 -m pytest
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/02/03/devpi-common_3.2.2-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230203;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230203&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to