summaryrefslogtreecommitdiff
path: root/media-sound/beets
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-05-31 17:23:40 -0500
committerroot <root@alpha.trunkmasters.com>2026-05-31 17:23:40 -0500
commitf953dc70343485250b836ad157649aaad47ac5bc (patch)
treee3634b454cf48f10ce9f8d12f10e60ad0a749239 /media-sound/beets
parent5e07081cf4f5afaef79409b430a018b1daec073e (diff)
downloadbaldeagleos-repo-f953dc70343485250b836ad157649aaad47ac5bc.tar.gz
baldeagleos-repo-f953dc70343485250b836ad157649aaad47ac5bc.tar.xz
baldeagleos-repo-f953dc70343485250b836ad157649aaad47ac5bc.zip
Adding metadata
Diffstat (limited to 'media-sound/beets')
-rw-r--r--media-sound/beets/Manifest5
-rw-r--r--media-sound/beets/beets-1.7.0_pre20240501-r1.ebuild2
-rw-r--r--media-sound/beets/beets-2.10.0.ebuild (renamed from media-sound/beets/beets-2.2.0-r1.ebuild)90
-rw-r--r--media-sound/beets/beets-2.11.0.ebuild172
-rw-r--r--media-sound/beets/beets-2.3.1.ebuild2
-rw-r--r--media-sound/beets/beets-9999.ebuild74
-rw-r--r--media-sound/beets/metadata.xml10
7 files changed, 267 insertions, 88 deletions
diff --git a/media-sound/beets/Manifest b/media-sound/beets/Manifest
index d36b388af03b..3e2095d8c578 100644
--- a/media-sound/beets/Manifest
+++ b/media-sound/beets/Manifest
@@ -1,4 +1,7 @@
DIST beets-1.7.0_pre20240501.gh.tar.gz 2247319 BLAKE2B e215c8a2a30a44d298746351be4fa2de1cebb7d6aec2bc7dfc679b133ea5eddefec20d038aa1aa1d734b176c09163b93f917c6c29ea5115c4c2349e090c8c5df SHA512 f397c72b481d7d8822db598ab37c99d0b9063ae45455c0d34116fab7b5a4cc683a3357bdfe436181b1dea46ee05192cc37faf355b5e093d63c2e440e523b92bc
-DIST beets-2.2.0.gh.tar.gz 2414560 BLAKE2B 24c68b27c0d35afb26a39505810ba8ae224173c6f0e36ca551f32cb78250a6b0e777a603c47fd18b6d7e6cdecc5fcaa6b64fe4fd33379de8d6b545dbd49f369f SHA512 ff3a2ea7820129f4b793766ac7dbe3bcfb353563ed3b64ada47db3ba64930caa5841f6cbd20e97e58a4a9eb340bc9e8cd90c7fc188f11420a3cb680ea7a25e48
+DIST beets-2.10.0.tar.gz 2282966 BLAKE2B 7e5819f1857d48a32581e854a7e4095afc28c2cb446a5f1fca6a3621d7443005ba901a753340cd2035cc8e2bcf176323b268fe0b903563d4983b8d9a9e0ee05d SHA512 9a34720f7d851b769f74bf573d8a8d8324f443b20dd6ec5c91f18457144a9ab5a912cb24d58a1da4d50ba3438f1a58f7763cb7268f1db134195369b07064e5d6
+DIST beets-2.10.0.tar.gz.provenance 9362 BLAKE2B b5a0eb9fd1a9da6d51218aed9003018e4f32c7cc9ef005f9775417b10bc3961c1374691cb7511b1c4a25602c971531e2a5c8ca5bdd0728e10c58d37b513197df SHA512 34f83916b45d2c97af64b4a0f46b4e33509d2a055c112daee627a2c44ab8d3e49df0149b36a06e3bdf5674cd3bfa19f167cabf70c29400cde22638c55653bb00
+DIST beets-2.11.0.tar.gz 2298259 BLAKE2B 33a8bd82c79fc41b3303424e36f7fcb98ed9d1480fbd1c0939044f7f354c48162a344a06698fba718f4bc7bcec40fb4758f72f80577aeb0984cf983a49278bee SHA512 54e077d893485786f3448e04c956b74aa247e731b85f6359dc208cf993bf2b7f4a4139dec6e8bc81bca05a79326314ba4a0427256eee63b56fe29085b972cf3a
+DIST beets-2.11.0.tar.gz.provenance 9609 BLAKE2B 6dbcf6417c4127515e1860c7bee942bf824126aceae06a061ac2c7e2db92daaa0c584521c6e9c54f3faef63f3d0e08d5f1e6d0e9ee3779100d662c0298eb5bbc SHA512 f3f151bcb271c312f6b1927443701edebd2dcee1afee6c957aa80cf6789a6c2840446c231ba61f6e56633509d0e8c974607864b452b3f103238fd94ac5ed5992
DIST beets-2.3.1.tar.gz 2133246 BLAKE2B 1c5eb7ab0029683448bf996c82579f780940752146fa40a764cd3d353b7894226a4c7f8ae3c7ecca58c25dc1f2f8d44f0d66053f037c332f65396d0d90aa9754 SHA512 b065dd9f1ce5dd63779b085d44510e5158d23046fdc9ecaa1ce9a10d5f8fa660e1ad130c68fed4ddac323453fcbf6d1ea2dc2a9897931c486da099b87dcfc047
DIST beets-2.3.1.tar.gz.provenance 9322 BLAKE2B ce059df773672f050ef9c3e0dee65313ce064190a8d3a8b0448947a2a288433cc5eff7cddae1d0c295f9067ac3efedaaac9a4a01e925ea22202b925e1f446186 SHA512 39ee130a52bac880d4565200a61a85cb7b2b3169841e66318fa392a6302ef1f5bed2be7cac0aaec8172a34747a88a52f9032f28c8144346e2cac80c33fb900c8
diff --git a/media-sound/beets/beets-1.7.0_pre20240501-r1.ebuild b/media-sound/beets/beets-1.7.0_pre20240501-r1.ebuild
index 3dc17cd0abc6..62bc7d1ef6f1 100644
--- a/media-sound/beets/beets-1.7.0_pre20240501-r1.ebuild
+++ b/media-sound/beets/beets-1.7.0_pre20240501-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..14} )
+PYTHON_COMPAT=( python3_12 )
PYTHON_REQ_USE="sqlite"
# These envvars are used to treat github tarball builds differently
diff --git a/media-sound/beets/beets-2.2.0-r1.ebuild b/media-sound/beets/beets-2.10.0.ebuild
index c4ce29a93c8a..b63486e621d4 100644
--- a/media-sound/beets/beets-2.2.0-r1.ebuild
+++ b/media-sound/beets/beets-2.10.0.ebuild
@@ -5,8 +5,7 @@ EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=poetry
-# Passes tests with python3_13 but dev-python/audioread is problematic
-PYTHON_COMPAT=( python3_{10..14} )
+PYTHON_COMPAT=( python3_{12..14} )
PYTHON_REQ_USE="sqlite"
# These envvars are used to treat github tarball builds differently
@@ -14,7 +13,7 @@ PYTHON_REQ_USE="sqlite"
: ${IS_VCS_SOURCE="no"}
: ${UPDATE_VERSION="no"}
-inherit distutils-r1 bash-completion-r1 multiprocessing optfeature
+inherit distutils-r1 optfeature shell-completion
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/beetbox/beets.git"
@@ -22,13 +21,12 @@ if [[ ${PV} == "9999" ]]; then
UPDATE_VERSION="yes"
inherit git-r3
else
- # The 2.2.0 pypi tarball does not include zsh completions
- # https://github.com/beetbox/beets/issues/5531
- IS_VCS_SOURCE="yes"
- # The 2.2.0 tarball calls itself 2.1.0 for some reason?
- UPDATE_VERSION="yes"
- SRC_URI="https://github.com/beetbox/beets/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+ PYPI_VERIFY_REPO=https://github.com/beetbox/beets
+ inherit pypi
+ MY_PV=${PV/_beta/-beta.}
+ MY_P=${PN}-${MY_PV}
KEYWORDS="~amd64"
+ S="${WORKDIR}/${MY_P}"
fi
DESCRIPTION="Media library management system for obsessive music geeks"
@@ -36,32 +34,27 @@ HOMEPAGE="https://beets.io/ https://pypi.org/project/beets/"
LICENSE="MIT"
SLOT="0"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
+
+# TODO: test-full with GITHUB_ACTIONS=true. Would require packaging more dependencies.
RDEPEND="
$(python_gen_cond_dep '
>=dev-python/jellyfish-0.7.1[${PYTHON_USEDEP}]
- dev-python/munkres[${PYTHON_USEDEP}]
>=media-libs/mutagen-1.33[${PYTHON_USEDEP}]
- >=dev-python/musicbrainzngs-0.4[${PYTHON_USEDEP}]
- dev-python/confuse[${PYTHON_USEDEP}]
- dev-python/mediafile[${PYTHON_USEDEP}]
+ >=dev-python/confuse-2.2.0[${PYTHON_USEDEP}]
+ >=dev-python/lap-0.5.12[${PYTHON_USEDEP}]
+ >=dev-python/mediafile-0.16.2[${PYTHON_USEDEP}]
+ >=dev-python/numpy-2[${PYTHON_USEDEP}]
+ >=dev-python/packaging-24.0[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/reflink[${PYTHON_USEDEP}]
- dev-python/requests-oauthlib[${PYTHON_USEDEP}]
- dev-python/requests[${PYTHON_USEDEP}]
+ >=dev-python/requests-ratelimiter-0.7.0[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.32.5[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
- dev-python/unidecode[${PYTHON_USEDEP}]
- ')"
-DEPEND="
- ${RDEPEND}
+ >=dev-python/unidecode-1.3.6[${PYTHON_USEDEP}]
+ ')
"
BDEPEND="
- doc? (
- dev-python/sphinx
- dev-python/pydata-sphinx-theme
- )
$(python_gen_cond_dep '
test? (
dev-db/sqlite[icu]
@@ -74,7 +67,6 @@ BDEPEND="
dev-python/pyacoustid[${PYTHON_USEDEP}]
dev-python/pylast[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
- dev-python/pytest-flask[${PYTHON_USEDEP}]
dev-python/python-mpd2[${PYTHON_USEDEP}]
dev-python/pyxdg[${PYTHON_USEDEP}]
dev-python/reflink[${PYTHON_USEDEP}]
@@ -83,6 +75,7 @@ BDEPEND="
media-gfx/imagemagick
)
dev-python/rarfile[${PYTHON_USEDEP}]
+ dev-python/requests-mock[${PYTHON_USEDEP}]
dev-python/responses[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
media-libs/chromaprint[tools]
@@ -95,40 +88,47 @@ BDEPEND="
media-video/ffmpeg[encode(+)]
app-shells/bash-completion
)
- ')"
+ ')
+"
# Beets uses sphinx to generate manpages; these are not available
# directly in VCS sources, only pypi tarballs, so handle the dependency
# here automagically.
if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then
- BDEPEND+="
- dev-python/sphinx
- "
+ BDEPEND+=" $(python_gen_cond_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')"
fi
DOCS=( README.rst docs/changelog.rst )
+EPYTEST_PLUGINS=( pytest-flask )
+EPYTEST_IGNORE=(
+ # Not relevant downstream
+ test/test_release.py
+ # Unpackaged test dependencies: titlecase and pytest-factoryboy
+ # (These tests aren't included in the sdist)
+ test/plugins
+)
EPYTEST_XDIST=1
distutils_enable_tests pytest
-src_prepare() {
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
if [[ ${PV} == "9999" ]] || [[ ${UPDATE_VERSION} == "yes" ]]; then
sed -i -e "s/^version = \".*\"$/version = \"${PV}\"/" \
pyproject.toml \
|| die "Failed to update version in VCS sources"
sed -i -e "s/__version__ = \".*\"/__version__ = \"${PV}\"/" beets/__init__.py
fi
- default
-}
-python_prepare_all() {
- distutils-r1_python_prepare_all
+ # Don't require extra unpackaged sphinx dependencies to generate man pages on live
+ sed -e '/sphinx_design/d' \
+ -e '/sphinx_copybutton/d' \
+ -e '/sphinx_toolbox/d' \
+ -i docs/conf.py || die
}
python_compile_all() {
- if use doc ; then
- sphinx-build -b html docs docs/build/html || die
- fi
# If building from VCS sources we need to generate manpages, then copy them to ${S}/man
# We could install mans from the sphinx build path, but to be consistent with pypi for src_install
# we'll instead generate them and copy to the same install location if building from VCS sources.
@@ -140,22 +140,20 @@ python_compile_all() {
fi
}
-python_test() {
- # test/test_art_resize.py can be flaky, parallelisation?
- epytest -n$(makeopts_jobs) -v
-}
-
python_install_all() {
distutils-r1_python_install_all
+ # remove leftover file in sdist
+ if [[ -e man/_sphinx_design_static ]]; then
+ rm -rf man/_sphinx_design_static || die
+ fi
doman man/*
- use doc && local HTML_DOCS=( docs/build/html/. )
einstalldocs
+
# Generate the bash completions; we'll set PYTHONPATH for this invocation so that beets can start.
PYTHONPATH="${ED}/usr/lib/${PYTHON}:$PYTHONPATH" ${PYTHON} "${ED}/usr/bin/beet" completion > "${T}/beet.bash" || die
newbashcomp "${T}/beet.bash" beet
- insinto /usr/share/zsh/site-functions
- newins "${S}/extra/_beet" _beet
+ newzshcomp "${S}/extra/_beet" _beet
optfeature "badfiles support" "media-libs/flac media-sound/mp3val"
optfeature "chromaprint support" "dev-python/pyacoustid media-libs/chromaprint[tools]"
diff --git a/media-sound/beets/beets-2.11.0.ebuild b/media-sound/beets/beets-2.11.0.ebuild
new file mode 100644
index 000000000000..b63486e621d4
--- /dev/null
+++ b/media-sound/beets/beets-2.11.0.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{12..14} )
+PYTHON_REQ_USE="sqlite"
+
+# These envvars are used to treat github tarball builds differently
+# from pypi sources. Enable where required
+: ${IS_VCS_SOURCE="no"}
+: ${UPDATE_VERSION="no"}
+
+inherit distutils-r1 optfeature shell-completion
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="https://github.com/beetbox/beets.git"
+ IS_VCS_SOURCE="yes"
+ UPDATE_VERSION="yes"
+ inherit git-r3
+else
+ PYPI_VERIFY_REPO=https://github.com/beetbox/beets
+ inherit pypi
+ MY_PV=${PV/_beta/-beta.}
+ MY_P=${PN}-${MY_PV}
+ KEYWORDS="~amd64"
+ S="${WORKDIR}/${MY_P}"
+fi
+
+DESCRIPTION="Media library management system for obsessive music geeks"
+HOMEPAGE="https://beets.io/ https://pypi.org/project/beets/"
+
+LICENSE="MIT"
+SLOT="0"
+
+# TODO: test-full with GITHUB_ACTIONS=true. Would require packaging more dependencies.
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ >=dev-python/jellyfish-0.7.1[${PYTHON_USEDEP}]
+ >=media-libs/mutagen-1.33[${PYTHON_USEDEP}]
+ >=dev-python/confuse-2.2.0[${PYTHON_USEDEP}]
+ >=dev-python/lap-0.5.12[${PYTHON_USEDEP}]
+ >=dev-python/mediafile-0.16.2[${PYTHON_USEDEP}]
+ >=dev-python/numpy-2[${PYTHON_USEDEP}]
+ >=dev-python/packaging-24.0[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/reflink[${PYTHON_USEDEP}]
+ >=dev-python/requests-ratelimiter-0.7.0[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.32.5[${PYTHON_USEDEP}]
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+ >=dev-python/unidecode-1.3.6[${PYTHON_USEDEP}]
+ ')
+"
+BDEPEND="
+ $(python_gen_cond_dep '
+ test? (
+ dev-db/sqlite[icu]
+ dev-python/beautifulsoup4[${PYTHON_USEDEP}]
+ dev-python/bluelet[${PYTHON_USEDEP}]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/python3-discogs-client[${PYTHON_USEDEP}]
+ dev-python/flask[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pyacoustid[${PYTHON_USEDEP}]
+ dev-python/pylast[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/python-mpd2[${PYTHON_USEDEP}]
+ dev-python/pyxdg[${PYTHON_USEDEP}]
+ dev-python/reflink[${PYTHON_USEDEP}]
+ || (
+ dev-python/pillow[${PYTHON_USEDEP}]
+ media-gfx/imagemagick
+ )
+ dev-python/rarfile[${PYTHON_USEDEP}]
+ dev-python/requests-mock[${PYTHON_USEDEP}]
+ dev-python/responses[${PYTHON_USEDEP}]
+ dev-python/wheel[${PYTHON_USEDEP}]
+ media-libs/chromaprint[tools]
+ media-libs/flac
+ media-libs/gst-plugins-bad:1.0
+ media-libs/gst-plugins-good:1.0
+ media-sound/mp3val
+ media-sound/mp3gain
+ media-plugins/gst-plugins-libav:1.0
+ media-video/ffmpeg[encode(+)]
+ app-shells/bash-completion
+ )
+ ')
+"
+
+# Beets uses sphinx to generate manpages; these are not available
+# directly in VCS sources, only pypi tarballs, so handle the dependency
+# here automagically.
+if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then
+ BDEPEND+=" $(python_gen_cond_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')"
+fi
+
+DOCS=( README.rst docs/changelog.rst )
+
+EPYTEST_PLUGINS=( pytest-flask )
+EPYTEST_IGNORE=(
+ # Not relevant downstream
+ test/test_release.py
+ # Unpackaged test dependencies: titlecase and pytest-factoryboy
+ # (These tests aren't included in the sdist)
+ test/plugins
+)
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ if [[ ${PV} == "9999" ]] || [[ ${UPDATE_VERSION} == "yes" ]]; then
+ sed -i -e "s/^version = \".*\"$/version = \"${PV}\"/" \
+ pyproject.toml \
+ || die "Failed to update version in VCS sources"
+ sed -i -e "s/__version__ = \".*\"/__version__ = \"${PV}\"/" beets/__init__.py
+ fi
+
+ # Don't require extra unpackaged sphinx dependencies to generate man pages on live
+ sed -e '/sphinx_design/d' \
+ -e '/sphinx_copybutton/d' \
+ -e '/sphinx_toolbox/d' \
+ -i docs/conf.py || die
+}
+
+python_compile_all() {
+ # If building from VCS sources we need to generate manpages, then copy them to ${S}/man
+ # We could install mans from the sphinx build path, but to be consistent with pypi for src_install
+ # we'll instead generate them and copy to the same install location if building from VCS sources.
+ if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then
+ einfo "Building man pages"
+ sphinx-build -b man docs docs/build/man || die "Failed to generate man pages"
+ mkdir "${S}/man" || die
+ cp docs/build/man/{beet.1,beetsconfig.5} "${S}/man" || die
+ fi
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ # remove leftover file in sdist
+ if [[ -e man/_sphinx_design_static ]]; then
+ rm -rf man/_sphinx_design_static || die
+ fi
+ doman man/*
+ einstalldocs
+
+ # Generate the bash completions; we'll set PYTHONPATH for this invocation so that beets can start.
+ PYTHONPATH="${ED}/usr/lib/${PYTHON}:$PYTHONPATH" ${PYTHON} "${ED}/usr/bin/beet" completion > "${T}/beet.bash" || die
+ newbashcomp "${T}/beet.bash" beet
+ newzshcomp "${S}/extra/_beet" _beet
+
+ optfeature "badfiles support" "media-libs/flac media-sound/mp3val"
+ optfeature "chromaprint support" "dev-python/pyacoustid media-libs/chromaprint[tools]"
+ optfeature "discogs support" dev-python/python3-discogs-client
+ optfeature "ffmpeg support" media-video/ffmpeg
+ optfeature "gstreamer support" "media-libs/gst-plugins-bad media-libs/gst-plugins-good"
+ optfeature "icu support" dev-db/sqlite[icu]
+ optfeature "lastfm support" dev-python/pylast
+ optfeature "mpd support" "dev-python/bluelet dev-python/python-mpd2"
+ optfeature "replaygain with gstreamer support" "dev-python/pygobject media-plugins/gst-plugins-libav"
+ optfeature "replaygain without gstreamer support" media-sound/mp3gain
+ optfeature "thumbnail support" dev-python/pyxdg "dev-python/pillow media-gfx/imagemagick"
+ optfeature "webserver support" dev-python/flask
+ optfeature "webserver cors support" dev-python/flask-cors
+ optfeature "Amarok metadata synchronisation" dev-python/dbus-python
+}
diff --git a/media-sound/beets/beets-2.3.1.ebuild b/media-sound/beets/beets-2.3.1.ebuild
index 57a18318973b..69f876b8e66e 100644
--- a/media-sound/beets/beets-2.3.1.ebuild
+++ b/media-sound/beets/beets-2.3.1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=poetry
PYPI_VERIFY_REPO=https://github.com/beetbox/beets
-PYTHON_COMPAT=( python3_{10..14} )
+PYTHON_COMPAT=( python3_{12..13} )
PYTHON_REQ_USE="sqlite"
# These envvars are used to treat github tarball builds differently
diff --git a/media-sound/beets/beets-9999.ebuild b/media-sound/beets/beets-9999.ebuild
index 22bc77850cab..b63486e621d4 100644
--- a/media-sound/beets/beets-9999.ebuild
+++ b/media-sound/beets/beets-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..14} )
+PYTHON_COMPAT=( python3_{12..14} )
PYTHON_REQ_USE="sqlite"
# These envvars are used to treat github tarball builds differently
@@ -13,7 +13,7 @@ PYTHON_REQ_USE="sqlite"
: ${IS_VCS_SOURCE="no"}
: ${UPDATE_VERSION="no"}
-inherit distutils-r1 multiprocessing optfeature shell-completion
+inherit distutils-r1 optfeature shell-completion
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/beetbox/beets.git"
@@ -21,6 +21,7 @@ if [[ ${PV} == "9999" ]]; then
UPDATE_VERSION="yes"
inherit git-r3
else
+ PYPI_VERIFY_REPO=https://github.com/beetbox/beets
inherit pypi
MY_PV=${PV/_beta/-beta.}
MY_P=${PN}-${MY_PV}
@@ -33,33 +34,27 @@ HOMEPAGE="https://beets.io/ https://pypi.org/project/beets/"
LICENSE="MIT"
SLOT="0"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
+
+# TODO: test-full with GITHUB_ACTIONS=true. Would require packaging more dependencies.
RDEPEND="
$(python_gen_cond_dep '
>=dev-python/jellyfish-0.7.1[${PYTHON_USEDEP}]
>=media-libs/mutagen-1.33[${PYTHON_USEDEP}]
- >=dev-python/musicbrainzngs-0.4[${PYTHON_USEDEP}]
- dev-python/confuse[${PYTHON_USEDEP}]
+ >=dev-python/confuse-2.2.0[${PYTHON_USEDEP}]
>=dev-python/lap-0.5.12[${PYTHON_USEDEP}]
- dev-python/mediafile[${PYTHON_USEDEP}]
- >=dev-python/numpy-1.24.4[${PYTHON_USEDEP}]
+ >=dev-python/mediafile-0.16.2[${PYTHON_USEDEP}]
+ >=dev-python/numpy-2[${PYTHON_USEDEP}]
+ >=dev-python/packaging-24.0[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/reflink[${PYTHON_USEDEP}]
- dev-python/requests-oauthlib[${PYTHON_USEDEP}]
- dev-python/requests[${PYTHON_USEDEP}]
+ >=dev-python/requests-ratelimiter-0.7.0[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.32.5[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
- dev-python/unidecode[${PYTHON_USEDEP}]
- ')"
-DEPEND="
- ${RDEPEND}
+ >=dev-python/unidecode-1.3.6[${PYTHON_USEDEP}]
+ ')
"
BDEPEND="
- doc? (
- dev-python/sphinx
- dev-python/pydata-sphinx-theme
- )
$(python_gen_cond_dep '
test? (
dev-db/sqlite[icu]
@@ -72,7 +67,6 @@ BDEPEND="
dev-python/pyacoustid[${PYTHON_USEDEP}]
dev-python/pylast[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
- dev-python/pytest-flask[${PYTHON_USEDEP}]
dev-python/python-mpd2[${PYTHON_USEDEP}]
dev-python/pyxdg[${PYTHON_USEDEP}]
dev-python/reflink[${PYTHON_USEDEP}]
@@ -94,40 +88,47 @@ BDEPEND="
media-video/ffmpeg[encode(+)]
app-shells/bash-completion
)
- ')"
+ ')
+"
# Beets uses sphinx to generate manpages; these are not available
# directly in VCS sources, only pypi tarballs, so handle the dependency
# here automagically.
if [[ ${PV} == "9999" ]] || [[ ${IS_VCS_SOURCE} == "yes" ]]; then
- BDEPEND+="
- dev-python/sphinx
- "
+ BDEPEND+=" $(python_gen_cond_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')"
fi
DOCS=( README.rst docs/changelog.rst )
+EPYTEST_PLUGINS=( pytest-flask )
+EPYTEST_IGNORE=(
+ # Not relevant downstream
+ test/test_release.py
+ # Unpackaged test dependencies: titlecase and pytest-factoryboy
+ # (These tests aren't included in the sdist)
+ test/plugins
+)
EPYTEST_XDIST=1
distutils_enable_tests pytest
-src_prepare() {
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
if [[ ${PV} == "9999" ]] || [[ ${UPDATE_VERSION} == "yes" ]]; then
sed -i -e "s/^version = \".*\"$/version = \"${PV}\"/" \
pyproject.toml \
|| die "Failed to update version in VCS sources"
sed -i -e "s/__version__ = \".*\"/__version__ = \"${PV}\"/" beets/__init__.py
fi
- default
-}
-python_prepare_all() {
- distutils-r1_python_prepare_all
+ # Don't require extra unpackaged sphinx dependencies to generate man pages on live
+ sed -e '/sphinx_design/d' \
+ -e '/sphinx_copybutton/d' \
+ -e '/sphinx_toolbox/d' \
+ -i docs/conf.py || die
}
python_compile_all() {
- if use doc ; then
- sphinx-build -b html docs docs/build/html || die
- fi
# If building from VCS sources we need to generate manpages, then copy them to ${S}/man
# We could install mans from the sphinx build path, but to be consistent with pypi for src_install
# we'll instead generate them and copy to the same install location if building from VCS sources.
@@ -139,17 +140,16 @@ python_compile_all() {
fi
}
-python_test() {
- # test/test_art_resize.py can be flaky, parallelisation?
- epytest -n$(makeopts_jobs) -v
-}
-
python_install_all() {
distutils-r1_python_install_all
+ # remove leftover file in sdist
+ if [[ -e man/_sphinx_design_static ]]; then
+ rm -rf man/_sphinx_design_static || die
+ fi
doman man/*
- use doc && local HTML_DOCS=( docs/build/html/. )
einstalldocs
+
# Generate the bash completions; we'll set PYTHONPATH for this invocation so that beets can start.
PYTHONPATH="${ED}/usr/lib/${PYTHON}:$PYTHONPATH" ${PYTHON} "${ED}/usr/bin/beet" completion > "${T}/beet.bash" || die
newbashcomp "${T}/beet.bash" beet
diff --git a/media-sound/beets/metadata.xml b/media-sound/beets/metadata.xml
index 3ae3785f159d..b20fbd3ac876 100644
--- a/media-sound/beets/metadata.xml
+++ b/media-sound/beets/metadata.xml
@@ -2,6 +2,10 @@
<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
+ <email>vi@vimproved.dev</email>
+ <name>Violet Purcell</name>
+ </maintainer>
+ <maintainer type="person">
<email>guillaumeseren@gmail.com</email>
<name>Guillaume Seren</name>
</maintainer>
@@ -31,7 +35,9 @@
If beets doesn't do what you want yet, writing your own plugin is
shockingly simple if you know a little Python.
</longdescription>
-
- <origin>gentoo-staging</origin>
+ <upstream>
+ <doc>https://beets.readthedocs.io/</doc>
+ </upstream>
+ <origin>liguros-repo</origin>
<stabilize-allarches/>
</pkgmetadata> \ No newline at end of file