fedora-python / pyp2rpm

Tool to convert a package from PyPI to RPM SPECFILE or to generate SRPM.
MIT License
123 stars 39 forks source link

Add support for compatible releases #211

Closed stephenfin closed 3 years ago

stephenfin commented 4 years ago

These are a pretty nifty feature described in PEP 440 [1]. However, they're not supported in specfiles so we need to convert them. The approach here is rather hacky and may well break with more convoluted requirements, but it's a good start and better than what we have right now (nothing).

[1] https://www.python.org/dev/peps/pep-0440/#compatible-release

stephenfin commented 4 years ago

Should have looked before I jumped. Seems #196 should do this and is far more mature.

gordonmessmer commented 4 years ago

Thanks, @stephenfin . Miro approved several of my pull requests earlier this week, and once I merge those I think we can review #196 . I'm eager to get those done, but I spent the week preparing for vacation. I'll probably find some down time to merge those shortly, and I hope we'll get you support for compatible-release ASAP. :)

hroncok commented 4 years ago

If any one of you would like to look into =~, the support is missing both in https://src.fedoraproject.org/rpms/pyproject-rpm-macros/blob/master/f/pyproject_buildrequires.py and https://github.com/rpm-software-management/rpm/blob/master/scripts/pythondistdeps.py#L244

gordonmessmer commented 4 years ago

@stephenfin I've updated #196 if you'd like to test it and make any suggestions.