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
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to