Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523226 - dev-python/discogs-client-2.0.2 version bump
Summary: dev-python/discogs-client-2.0.2 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Theofilos Intzoglou
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-19 11:32 UTC by Fabian Henze
Modified: 2017-07-25 15:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
discogs-client-2.0.2.patch (discogs-client-2.0.2.patch,916 bytes, patch)
2014-09-19 16:30 UTC, Theofilos Intzoglou
Details | Diff
discogs-client-2.0.2.patch (discogs-client-2.0.2.patch,1.08 KB, patch)
2014-09-29 17:52 UTC, Theofilos Intzoglou
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Henze 2014-09-19 11:32:47 UTC
dev-python/discogs-client 2.0.2 has been released and is required for the latest
version of media-sound/beets.
Renaming the ebuild and removing the README.patch works fine.

Reproducible: Always
Comment 1 Theofilos Intzoglou 2014-09-19 16:30:46 UTC
Created attachment 385130 [details, diff]
discogs-client-2.0.2.patch

Patch for the 2.0.2 ebuild. I removed the python_test() function as the test_discogs_client.py file was removed in this version.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2014-09-29 04:30:52 UTC
(In reply to int.teo from comment #1)
> Created attachment 385130 [details, diff] [details, diff]
> discogs-client-2.0.2.patch
> 
> Patch for the 2.0.2 ebuild. I removed the python_test() function as the
> test_discogs_client.py file was removed in this version.

This is NOT good.  Sadly the upstream maintainers do this by mistake due, to my surprise, to their own limited mastery over making tarballs.  Prompt him / them to put it back and I shall consider the bump.  

I note
SRC_URI="https://github.com/discogs/${PN/-/_}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
which is even worse.  Normally the tarball in pypi is incomplete but the tarball he put in the home repo is seemingly incomplete.  It happens.  Unless he states clearly he really didn't want it in, I presume he missed it, though I may be wrong.
Comment 3 Theofilos Intzoglou 2014-09-29 17:52:17 UTC
Created attachment 385762 [details, diff]
discogs-client-2.0.2.patch

Hi Ian, in https://github.com/discogs/discogs_client/pull/19 it is stated that the doctest is dropped and replaced by a proper test suite though I wasn't able to understand how to use the tests subdir. After doing some reading about unittest I managed to create a new patch with a python_test. I cannot test pypy as I no longer have a gentoo box and testing use flags in a sabayon box isn't fun.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2014-09-30 03:22:17 UTC
In the end;  

PYTHON_COMPAT had cruft needing removing
addition of dev-python/oauth2 killed off adding py3 support
The patch is now both superfluous with dropping of test_discogs_client.py
While your version of the test phase works, it can be reduced to the 1 line
"${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
and achieve the same functionality

*discogs-client-2.0.2 (30 Sep 2014)

  30 Sep 2014; Ian Delaney <idella4@gentoo.org> +discogs-client-2.0.2.ebuild:
  bump; clean old python impls, update deps, upgrade test phase, based on patch
  by F. Henze from, and closes, Bug #523226

This is 'basic' bump however the source has
discogs_client  docs  examples  LICENSE  README.mkd  requirements.txt  setup.py

There's a doc build AND examples. These warrant 2 extra additions to the ebuild, each with a use flag.  Do we want them?
Comment 5 Theofilos Intzoglou 2014-10-01 18:31:33 UTC
Both doc and examples folders are empty, I don't see the point in having USE flags for those. Also dev-python/oauth2 is now needed for discogs-client why should it be removed?
Comment 6 Louis Sautier (sbraz) gentoo-dev 2017-07-25 15:15:24 UTC
dev-python/discogs-client-2.2.1 is in tree and tests pass. I'll close this.