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

Virtualenv module #19

Closed mcyprian closed 8 years ago

mcyprian commented 9 years ago

It is possible to get more accurate metadata using this module, it installs package to virtualenv in temporary directory and scans scripts, and site_pacakges file that appears after instalation. It can also get list of other installed packages - package runtime dependancies. Metadata from virtualenv are appended to metadata from archive and don't overwrite them.

mcyprian commented 9 years ago

I 've rewritten it using virtualenv-api, code doesn't seem to be much faster but it is definitely a bit nicer. I 've also added tests for this module and made it all Python2.6 compatible.

rkuska commented 8 years ago

Trying pyp2rpm pytest I end up with:

%{_bindir}/py.test
%{_bindir}/py.test-2
%{_bindir}/py.test-%{python2_version}
%{_bindir}/py.test-2.7
%{_bindir}/py.test-2.7-2
%{_bindir}/py.test-2.7-%{python2_version}