openSUSE / py2pack

Generate distribution packages from PyPI
Apache License 2.0
69 stars 40 forks source link

Don't use too wide glob in %files #164

Closed mcepl closed 2 years ago

mcepl commented 2 years ago

py2pack generate tends to generate too broad statements in %files section:

%{python_sitelib}/*

is a great way how to hide many packaging errors (like ever present directory test/). I would much prefer if we get as a default something more tight, for example:

%{python_sitelib}/%{modname}
%{python_sitelib}/%{modname}-%{version}*-info

(which also protects against badly generated metadata, which quite have incorrect version number).

Of course, the same for %{python_sitearch}.

mcepl commented 2 years ago

Invalid, fixed in https://github.com/openSUSE/py2pack/pull/154.