fedora-python / pyp2rpm

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

Updated python packaging guidelines #14

Closed mcyprian closed 9 years ago

mcyprian commented 9 years ago

Changes command lines switches to include default Python3 subpackage and updates fedora template to correspond with updated Fedora packaging guidelines. Fixes issues #8 and #9

rkuska commented 9 years ago

Newline is missing in %install phase when I run pyp2rpm with -b specified

pyp2rpm colour-runner -b 3

%installpushd python3
%{__python3} setup.py install --skip-build --root %{buildroot}
popd

No docs should be listed if pyp2rpm find none.

%files
%doc python3/
%{python3_sitelib}/colour_runner
mcyprian commented 9 years ago

Both template problems fixed, I've added 2 more commits. First commit fixes problem of getting license from PyPI (issue #7) when it is specified neither in setup.py classifiers nor in trove classifiers. The second fixes pylint tool errors and some of the warnings.