Closed befeleme closed 2 years ago
Some of those versions are actually valid ones (according to PEP 440) and can be transformed to a correct RPM version scheme. There is a library for that: https://github.com/gordonmessmer/pyreq2rpm/blob/master/pyreq2rpm/pyreq2rpm.py - which is also used in pyproject-rpm-macros. The PyPI version shouldn't be used 1:1, the transformation to RPM version scheme should happen in pyp2spec as well.
Note that pyreq2rpm also strips trailing .0
s so you probably cannot reuse it as is.
And hence SRPM can't be built.