befeleme / pyp2spec

Generate Fedora RPM spec files for Python packages
MIT License
11 stars 4 forks source link

RFE: Pacakges for different Python version #16

Closed hroncok closed 3 months ago

hroncok commented 2 years ago

This is a very low-priority RFE.

I'd like to be able to create a package for e.g. Python 3.12 when the "main" Python is 3.9. This is relevant namely on EL9.

Such packages will differ in a way:

MrMEEE commented 4 months ago

Is someone actively working on this? I could REALLY use the feature.. If nobody is working on it, I might give it a shot..

befeleme commented 4 months ago

Feel free to give it a go.

MrMEEE commented 4 months ago

@befeleme PR commited, please tell me if there is anything missing..

befeleme commented 4 months ago

Thank you! Can you share what your use case is/ for which OS you'd like to generate specfiles? The reason I'm asking it because your PR generates slightly different output than what's requested by @hroncok. So I'd like to know more before addressing that. I'll do the review in the upcoming days.

MrMEEE commented 4 months ago

Hi

I have just added a fix for the %{__python3} issue..

In regards to subpackages, I want to keep the individual subpackages like: python3.11-bcrypt-4.1.2-1.el9.x86_64.rpm python3.11-bcrypt+tests-4.1.2-1.el9.x86_64.rpm python3.11-bcrypt+typecheck-4.1.2-1.el9.x86_64.rpm

I think this is a better way to implement "extras" into rpms..

Are there any other differences that I'm missing??

I'm using this on RHEL, as I'm the maintainer of AWX-RPM (https://awx.wiki), and it requires A LOT of python packages..

befeleme commented 4 months ago

Please take a look at #46 and let me know if this generally covers your needs.