From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8856F158089 for ; Sat, 28 Oct 2023 18:40:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6E8C2BC045; Sat, 28 Oct 2023 18:40:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 968A52BC045 for ; Sat, 28 Oct 2023 18:40:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 676FE335C2A for ; Sat, 28 Oct 2023 18:40:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DCADAF3D for ; Sat, 28 Oct 2023 18:40:19 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1698517975.ff943fcfc106395e582f6f8132173f6b4879272b.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pysrt/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pysrt/pysrt-1.1.2-r1.ebuild dev-python/pysrt/pysrt-9999.ebuild X-VCS-Directories: dev-python/pysrt/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ff943fcfc106395e582f6f8132173f6b4879272b X-VCS-Branch: master Date: Sat, 28 Oct 2023 18:40:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 211b310e-8ae0-45cf-84af-ecc1ac021efd X-Archives-Hash: 04bda557d9e3f62be24a6e163f7f66ac commit: ff943fcfc106395e582f6f8132173f6b4879272b Author: Michał Górny gentoo org> AuthorDate: Sat Oct 28 18:32:55 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Oct 28 18:32:55 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff943fcf dev-python/pysrt: Enable py3.12 Signed-off-by: Michał Górny gentoo.org> dev-python/pysrt/pysrt-1.1.2-r1.ebuild | 18 +++++++++++++++--- dev-python/pysrt/pysrt-9999.ebuild | 12 +++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/dev-python/pysrt/pysrt-1.1.2-r1.ebuild b/dev-python/pysrt/pysrt-1.1.2-r1.ebuild index 9c4b2eee378c..3dcd3f63654d 100644 --- a/dev-python/pysrt/pysrt-1.1.2-r1.ebuild +++ b/dev-python/pysrt/pysrt-1.1.2-r1.ebuild @@ -4,11 +4,15 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{9..11} ) +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + inherit distutils-r1 DESCRIPTION="Python library used to edit or create SubRip files" -HOMEPAGE="https://github.com/byroot/pysrt https://pypi.org/project/pysrt/" +HOMEPAGE=" + https://github.com/byroot/pysrt/ + https://pypi.org/project/pysrt/ +" if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/byroot/pysrt.git" @@ -20,6 +24,14 @@ fi LICENSE="GPL-3+" SLOT="0" -RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]" +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] +" distutils_enable_tests pytest + +src_prepare() { + # https://github.com/byroot/pysrt/commit/93f52f6d4f70f4e18dc71deeaae0ec1e9100a50f + sed -i -e 's:assertEquals:assertEqual:' tests/*.py || die + distutils-r1_src_prepare +} diff --git a/dev-python/pysrt/pysrt-9999.ebuild b/dev-python/pysrt/pysrt-9999.ebuild index 5943e93f9f56..122ca75948b9 100644 --- a/dev-python/pysrt/pysrt-9999.ebuild +++ b/dev-python/pysrt/pysrt-9999.ebuild @@ -4,11 +4,15 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{9..11} ) +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + inherit distutils-r1 DESCRIPTION="Python library used to edit or create SubRip files" -HOMEPAGE="https://github.com/byroot/pysrt https://pypi.org/project/pysrt/" +HOMEPAGE=" + https://github.com/byroot/pysrt/ + https://pypi.org/project/pysrt/ +" if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/byroot/pysrt.git" @@ -20,6 +24,8 @@ fi LICENSE="GPL-3+" SLOT="0" -RDEPEND="dev-python/chardet[${PYTHON_USEDEP}]" +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] +" distutils_enable_tests pytest