On 11/30/20 7:08 PM, Mattia Verga wrote:
I've just received  this bug report about wrong generated
Provides for py3dist() and py3.9dist() for package python-pytest-filter-subpackage.
It seems that the %py_provides macro doesn't generate the correct Provides. I think I
have another case with python-graphql-server .
Do you think this is really a bug in the %py_provides macro? What package should I fill a
The %py_provides macro does not provide py3dist() and py3.9dist(). It only
provide "compatibility names", e.g. %py_provides python3-foo provides python-foo
The py3dist() and py3.9dist() provides are generated automatically from upstream
The fact that the package provides python3dist(pytest-filter-subpackage) = 0 is
caused by the fact, that the upstream metadata says the version is 0.0.0.
Usually, the cause can be debugged from the build.log. E.g. in
/usr/lib64/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution
Copying pytest_filter_subpackage.egg-info to
setuptools doesn't understand the use_scm_version option, has no version and
fallbacks to 0.0.0. The option is not recognized, because setuptools_scm is not
installed. Adding this should fix the problem:
Consider using https://src.fedoraproject.org/rpms/pyproject-rpm-macros
generating the buildrequires from pyproject.toml (setuptools_scm is listed there).