[Rpm-maint] [rpm-software-management/rpm] scripts/pythondistdeps: Implement provides/requires for extras packages + Rework error messages (#1546)

torsava notifications at github.com
Thu Feb 18 14:56:29 UTC 2021


In Fedora we have adapted the pythondistdeps.py script (that generates python3.Xdist(foo) dependencies) to also generate requirements on Python extras (e.g. python3.Xdist(foo[bar])) whenever upstream metadata indicate such dependency.

The script was also adapted to be able to process a new Python extras packages that have the format `base_package+extras_name` (e.g. `python3-setuptools_scm+toml`) and generate provides and requires for them.

This has been implemented in Fedora 33: https://fedoraproject.org/wiki/Changes/PythonExtras

The change also includes an improvement of the error messages: Previously the error messages were printed to stdout, they were part of the output of the script, and thus the words were treated like dependencies, sorted alphabetically, thus rendering the message unreadable. This change prints a single keyword indicating the error and details are outputted to stderr. It also outputs *** on purpose to ensure the dependency would not be valid, causing a failure of the build.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1546

-- Commit Summary --

  * scripts/pythondistdeps: Rework error messages
  * scripts/pythondistdeps: Implement provides/requires for extras packages

-- File Changes --

    M scripts/pythondistdeps.py (113)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1546.patch
https://github.com/rpm-software-management/rpm/pull/1546.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1546
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210218/2bfc8014/attachment.html>


More information about the Rpm-maint mailing list