[FTBS] error in kombu setup command: 'tests_require' must be a string or list of strings containing valid project/version requirement specifiers

Bug #2008306 reported by Felipe Reyes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Octavia Charm
Fix Released
Critical
Alex Kavanagh

Bug Description

octavia fails to build on zed/yoga/xena branches (at least) with the following error:

2023-02-23 14:53:53.933 :: Collecting kombu==5.2.4
2023-02-23 14:53:53.933 :: Downloading kombu-5.2.4.tar.gz (423 kB)
2023-02-23 14:53:53.933 :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 423.4/423.4 kB 18.2 MB/s eta 0:00:00
2023-02-23 14:53:53.933 :: Preparing metadata (setup.py): started
2023-02-23 14:53:53.933 :: Preparing metadata (setup.py): finished with status 'error'
2023-02-23 14:53:53.933 :: error: subprocess-exited-with-error
2023-02-23 14:53:53.933 ::
2023-02-23 14:53:53.933 :: × python setup.py egg_info did not run successfully.
2023-02-23 14:53:53.934 :: │ exit code: 1
2023-02-23 14:53:53.934 :: ╰─> [5 lines of output]
2023-02-23 14:53:53.934 :: /root/snap/charmcraft/common/tmprjgh9ibv/lib/python3.8/site-packages/setuptools/config/setupcfg.py:520: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
2023-02-23 14:53:53.934 :: warnings.warn(msg, warning_class)
2023-02-23 14:53:53.934 :: error in kombu setup command: 'tests_require' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after name and no valid version specifier)
2023-02-23 14:53:53.934 :: pytz>dev
2023-02-23 14:53:53.934 :: ^
2023-02-23 14:53:53.934 :: [end of output]

The issue seems to come from the fact we use an old version of setuptools.

Felipe Reyes (freyes)
Changed in charm-octavia:
importance: Undecided → Critical
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
Felipe Reyes (freyes) wrote :
Felipe Reyes (freyes)
Changed in charm-octavia:
assignee: Felipe Reyes (freyes) → nobody
Changed in charm-octavia:
assignee: nobody → Alex Kavanagh (ajkavanagh)
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

The issue is that charm-tools is using the latest version of setuptools (specifically) version 67+ which gets picky about modules not having pep440 compliant requirement specifiers. Realistically, we should probably pin them for different versions in charm-tools. Bug in charm-tools: https://github.com/juju/charm-tools/issues/652

Felipe Reyes (freyes)
Changed in charm-octavia:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.