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

generated only-python3 specfile #122

Closed brianjmurrell closed 7 years ago

brianjmurrell commented 7 years ago

Using pyp2rpm on httpagentparser-1.5.0) I get a specfile that only seems to be building the python3 variant of that package. The command I used to build the spec was:

$ pyp2rpm -t epel7 httpagentparser-1.5.0.tar.gz > python-httpagentparser.spec
hroncok commented 7 years ago

That package only supports Python 3 according to the classifiers.

https://github.com/shon/httpagentparser/blob/8bfc1c9b393d83da5544f392bbbe57cf7e7d2ff3/setup.py#L51

According to the README, it supports 2.5+ as well. Please open an issue in https://github.com/shon/httpagentparser

brianjmurrell commented 7 years ago

Ahh. Thanks. Learned something new about Python software distribution today. Ticket filed.

brianjmurrell commented 7 years ago

So in a case like this, I guess there is no switch (or other way) to force pyp2rpm to build a specfile (i.e. while waiting for upstream to fix) for Python 2.x is there?

Never mind. I found -p

shon commented 7 years ago

Fixed this issue in httpagentparser