Hardcode packages variable in setup.py to prevent installation of files in 'tests' directory#32
Hardcode packages variable in setup.py to prevent installation of files in 'tests' directory#32marioortizmanero merged 3 commits intovidify:masterfrom Nowa-Ammerlaan:setup.py-fix
Conversation
…es in 'tests' directory
…fy song Commit number 5, move some deps that were here to deps of this package. And improved the patch to actually fix the issue in setup.py, instead of just removing the 'tests' directory, see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.80, Repoman-2.3.19 Package-Manager: Portage-2.3.81, Repoman-2.3.20
|
Thanks for your contribution :)) I initially just used a lazy find_packages() but yeah, hardcoding them is a better idea since it's just one. Let me do a couple tests and I'll merge it. Edit: it seems you missed a |
Aah I missed that one, that's what I get for being lazy and just copying the change instead of applying the patch I pushed to my branch of the Gentoo repo earlier (I had it with the ',' there). Thanks for catching that |
|
Sorry, one last thing: the module name is |
Oops, sorry about that, I had it correct in the patch I uploaded to the Gentoo repo, but then made a mistake copying it (again). I think there's a lesson for me here: always apply the patch that has been proven to work instead of being lazy and thinking I can get away with copying the changes :D |
|
Don't worry it works perfectly now :) |
|
@AndrewAmmerlaan I've released the 1.8.1 version with this hotfix, in case you wanted to download the |
…fy song Version bump to 1.8.1 and remove now obsolete patch, changed src_uri because this version is not on pypi yet see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.81, Repoman-2.3.20
Awesome, thank you, I've updated the ebuild and removed the patch form my pull request in the gentoo repository |
…fy song Version bump to 1.8.1 and remove now obsolete patch, changed src_uri because this version is not on pypi yet see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20
…fy song Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.80, Repoman-2.3.19 Package-Manager: Portage-2.3.80, Repoman-2.3.19 dev-python/spotify-music-videos: Show Youtube videos/lyrics for Spotify song Version bump to 1.8.1 and remove now obsolete patch, changed src_uri because this version is not on pypi yet see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20
…fy song Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.80, Repoman-2.3.19 Package-Manager: Portage-2.3.80, Repoman-2.3.19 dev-python/spotify-music-videos: Show Youtube videos/lyrics for Spotify song Version bump to 1.8.1 and remove now obsolete patch, changed src_uri because this version is not on pypi yet see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20 dev-python/spotify-music-videos: Show Youtube videos/lyrics for Spotify song Version bump to 1.8.1 and remove now obsolete patch, changed src_uri because this version is not on pypi yet see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20
…fy song Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.80, Repoman-2.3.19 Package-Manager: Portage-2.3.80, Repoman-2.3.19 dev-python/spotify-music-videos: Show Youtube videos/lyrics for Spotify song Version bump to 1.8.1 and remove now obsolete patch, changed src_uri because this version is not on pypi yet see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20 dev-python/spotify-music-videos: Show Youtube videos/lyrics for Spotify song Version bump to 1.8.1 and remove now obsolete patch, changed src_uri because this version is not on pypi yet see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20 dev-python/spotify-music-videos: Show Youtube videos/lyrics for Spoti… …fy song Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20
…fy song Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.80, Repoman-2.3.19 Package-Manager: Portage-2.3.80, Repoman-2.3.19 dev-python/spotify-music-videos: Show Youtube videos/lyrics for Spotify song Version bump to 1.8.1 and remove now obsolete patch, changed src_uri because this version is not on pypi yet see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20 dev-python/spotify-music-videos: Show Youtube videos/lyrics for Spotify song Version bump to 1.8.1 and remove now obsolete patch, changed src_uri because this version is not on pypi yet see also: vidify/vidify#32 Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20 dev-python/spotify-music-videos: Show Youtube videos/lyrics for Spoti… …fy song Bug: https://bugs.gentoo.org/701922 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Package-Manager: Portage-2.3.82, Repoman-2.3.20 dev-python/spotify-music-videos: Package-Manager: Portage-2.3.82, Repoman-2.3.20
Hello,
I've ran into a small problem with the setup.py file. Portage (gentoo's package manager) kept complaining about my ebuild:
I was a bit confused about this, as I also wrote ebuilds for some dependencies (lyricwikia, python-vlc) which also have a 'tests' directory, yet portage was absolutely fine with these ebuilds.
In my initial ebuild I fixed this by just patching out the whole 'tests' directory prior to installing. However, this solution is imperfect so I kept looking for what was differentiating this repository from the lyricwikia one.
It took some time but I finally found the problem, in setup.py. The line
packages=find_packages(),causes setuptools to find all directories, including 'tests', (which shouldn't be installed). Hardcoding it to['spotify-videos']similarly to the setup.py's I found in other repositories fixes the problem.[EDIT]: See also: gentoo/gentoo#13870