On 19. 04. 20 9:51, Miro Hrončok wrote:
On 19. 04. 20 2:16, Jerry James wrote:
What generates the python3dist(module) provides? I ask because I did
a build of python-nb2plots today for which those provides were not
generated:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1495361
even though they were for the previous build:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1449952
although with questionable values:
python3.8dist(nb2plots) = 0+unknown
python3dist(nb2plots) = 0+unknown
This:
https://src.fedoraproject.org/rpms/python-rpm-generators/blob/master/f/pythondistdeps.py
https://src.fedoraproject.org/rpms/python-rpm-generators/blob/master/f/pythondist.attr
Let me try to debug it.
My first rough idea is:
The version in upstream metadata is not valid.
Downstream (dep generator):
Before the latest update, it generated something, now it fails.
The behavior with invalid versions is not well defined.
The log says:
Traceback (most recent call last):
File "/usr/lib/rpm/pythondistdeps.py", line 379, in <module>
spec_list.append(convert(name, spec[0], spec[1]))
File "/usr/lib/rpm/pythondistdeps.py", line 125, in convert
return OPERATORS[operator](name, operator, version_id)
File "/usr/lib/rpm/pythondistdeps.py", line 79, in convert_equal
return '{} = {}'.format(name, version)
File "/usr/lib/rpm/pythondistdeps.py", line 47, in __str__
while self.version[-1] == 0:
IndexError: list index out of range
I wonder if RPMbuild should fail in that case :/
Upstream (invalid version):
The versioneer.py file in the project root seem to not handle this well with git
snapshots.
From /usr/lib/python3.8/site-packages/nb2plots-0+unknown-py3.8.egg-info/PKG-INFO
Version: 0+unknown
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx