From bb00a4129350aab3b3f05068db33dfe59d56937d Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Thu, 23 Oct 2025 21:26:01 -0400 Subject: dev-python/yt-dlp-ejs: add 0.2.1, drop 0.1.0 git mv given this is just used to test unkeyworded yt-dlp right now Signed-off-by: Ionen Wolkens --- dev-python/yt-dlp-ejs/Manifest | 4 +-- .../yt-dlp-ejs/files/yt-dlp-ejs-0.1.0-tests.patch | 27 -------------- dev-python/yt-dlp-ejs/yt-dlp-ejs-0.1.0.ebuild | 41 ---------------------- dev-python/yt-dlp-ejs/yt-dlp-ejs-0.2.1.ebuild | 37 +++++++++++++++++++ 4 files changed, 39 insertions(+), 70 deletions(-) delete mode 100644 dev-python/yt-dlp-ejs/files/yt-dlp-ejs-0.1.0-tests.patch delete mode 100644 dev-python/yt-dlp-ejs/yt-dlp-ejs-0.1.0.ebuild create mode 100644 dev-python/yt-dlp-ejs/yt-dlp-ejs-0.2.1.ebuild (limited to 'dev-python') diff --git a/dev-python/yt-dlp-ejs/Manifest b/dev-python/yt-dlp-ejs/Manifest index 6842220e5d2c..b165c13d689d 100644 --- a/dev-python/yt-dlp-ejs/Manifest +++ b/dev-python/yt-dlp-ejs/Manifest @@ -1,2 +1,2 @@ -DIST yt_dlp_ejs-0.1.0-py3-none-any.whl.zip 52940 BLAKE2B 70f64f63442d26c710bc9f25c8a114378310f64bb81290f5fc34fd6f4e1b3cd5ade9fd7cdfd7aaa87765e88e22b999f59aa63b4b3d3f47d8d522b5c9e36348b2 SHA512 d1dff46683a0bb6c170d970de58309abd527000f3c2f9ed6fbc6ff4625171568fe0e0031483b288a60f1454963a272bb9040cf2374fddac78cb54d9707025f99 -DIST yt_dlp_ejs-0.1.0.tar.gz 11675 BLAKE2B 23bdf9673d197648604132efe077893adc471963bc88cc715d961ca2d97bfcff9c23277982897d624eeaead8316919a5ffbd65706681be2847df062c07afaf96 SHA512 f9d2c6faa8384f2d62e7cf9ac2a6e7367aa11c723334fd5863c890c56c4915ea0cbe2a9d2ea1418175a0979f357574836ff6a6e1799837f231c4ba8fb5460c5d +DIST yt_dlp_ejs-0.2.1-py3-none-any.whl.zip 53089 BLAKE2B 6ed77e2dc62ad7a297997bcaca103b849d71d5d5b041f3be083e753bcab84739e272f85a382784348b8a759045e28c4db31c0827681e0cd53315f05edaf1e604 SHA512 88748f566cb01db4f3a93c233d0b89eb114f423fd64669ee5cf3247569881071cb55002219a48bae6417de9ea84e20ba1771565ee8a0c0bb992d88fbaafa6786 +DIST yt_dlp_ejs-0.2.1.tar.gz 12732 BLAKE2B be5312f9cc450060c57238e7a5fc7c06503b5a74c5db9ce9efe9cc7dcebb79944337e20e470dc278eadb4bf99a5d72841802e094b7fe2e72836a11a6458650ae SHA512 8a1b7a0a7d820e5bb4cdac4dc19c66a1cf39dfd927f8c84e948d84a73185f8d86f7c512334dcb4a27597e116f465471f1ea84a87775bbe3b00d3a4e72398c974 diff --git a/dev-python/yt-dlp-ejs/files/yt-dlp-ejs-0.1.0-tests.patch b/dev-python/yt-dlp-ejs/files/yt-dlp-ejs-0.1.0-tests.patch deleted file mode 100644 index 96875159f08c..000000000000 --- a/dev-python/yt-dlp-ejs/files/yt-dlp-ejs-0.1.0-tests.patch +++ /dev/null @@ -1,27 +0,0 @@ -Very basic tests but adding early to ensure ebuild is sorted out -before this starts getting used in full. -https://github.com/yt-dlp/ejs/pull/17 ---- a/test/__init__.py -+++ b/test/__init__.py -@@ -0,0 +1 @@ -+ ---- a/test/test_modules.py -+++ b/test/test_modules.py -@@ -0,0 +1,17 @@ -+import unittest -+from pathlib import Path -+ -+import yt_dlp_ejs.yt.solver -+ -+CORE_PATH = Path('yt_dlp_ejs/yt/solver/core.min.js') -+LIB_PATH = Path('yt_dlp_ejs/yt/solver/lib.min.js') -+ -+ -+class TestModules(unittest.TestCase): -+ def test_yt_solver(self): -+ self.assertEqual(yt_dlp_ejs.yt.solver.core(), CORE_PATH.read_text(encoding='utf-8')) -+ self.assertEqual(yt_dlp_ejs.yt.solver.lib(), LIB_PATH.read_text(encoding='utf-8')) -+ -+ -+if __name__ == '__main__': -+ unittest.main() diff --git a/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.1.0.ebuild b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.1.0.ebuild deleted file mode 100644 index cd64dd650f91..000000000000 --- a/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.1.0.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) -inherit distutils-r1 pypi - -DESCRIPTION="External JavaScript for yt-dlp supporting many runtimes" -HOMEPAGE="https://github.com/yt-dlp/ejs/" -SRC_URI+=" $(pypi_wheel_url --unpack)" - -LICENSE="Unlicense" -LICENSE+=" ISC MIT" # .js dependencies from the wheel -SLOT="0" -# bumps should typically be done straight-to-stable like yt-dlp itself -KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86 ~arm64-macos ~x64-macos" - -BDEPEND=" - app-arch/unzip - dev-python/hatch-vcs[${PYTHON_USEDEP}] -" - -# this only tests basic python bits without javascript to avoid headaches -distutils_enable_tests unittest - -PATCHES=( - "${FILESDIR}"/${P}-tests.patch -) - -src_prepare() { - distutils-r1_src_prepare - - # drop deno/npm calls and use the pre-generated .js from the .whl - # instead, this both prevents network use and ensures no hash - # mismatch given yt-dlp checks the sha512sum of the .js files - # (makes generating our own meaningless given can't be patched) - sed -i '/wheel.hooks.custom/d' pyproject.toml || die - mv ../yt_dlp_ejs/yt/solver/*.js yt_dlp_ejs/yt/solver/ || die -} diff --git a/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.2.1.ebuild b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.2.1.ebuild new file mode 100644 index 000000000000..a915c54d984d --- /dev/null +++ b/dev-python/yt-dlp-ejs/yt-dlp-ejs-0.2.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) +inherit distutils-r1 pypi + +DESCRIPTION="External JavaScript for yt-dlp supporting many runtimes" +HOMEPAGE="https://github.com/yt-dlp/ejs/" +SRC_URI+=" $(pypi_wheel_url --unpack)" + +LICENSE="Unlicense" +LICENSE+=" ISC MIT" # .js dependencies from the wheel +SLOT="0" +# bumps should typically be done straight-to-stable like yt-dlp itself +KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86 ~arm64-macos ~x64-macos" + +BDEPEND=" + app-arch/unzip + dev-python/hatch-vcs[${PYTHON_USEDEP}] +" + +# this only tests basic python bits without javascript to avoid headaches +distutils_enable_tests unittest + +src_prepare() { + distutils-r1_src_prepare + + # drop deno/npm calls and use the pre-generated .js from the .whl + # instead, this both prevents network use and ensures no hash + # mismatch given yt-dlp checks the sha512sum of the .js files + # (makes generating our own meaningless given can't be patched) + sed -i '/wheel.hooks.custom/d' pyproject.toml || die + mv ../yt_dlp_ejs/yt/solver/*.js yt_dlp_ejs/yt/solver/ || die +} -- cgit v1.2.3