diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/sabctools | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/sabctools')
| -rw-r--r-- | dev-python/sabctools/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/sabctools/files/sabctools-8.2.6-py314testfix.patch | 46 | ||||
| -rw-r--r-- | dev-python/sabctools/metadata.xml | 13 | ||||
| -rw-r--r-- | dev-python/sabctools/sabctools-8.2.6.ebuild | 42 | ||||
| -rw-r--r-- | dev-python/sabctools/sabctools-9.4.0.ebuild | 40 |
5 files changed, 143 insertions, 0 deletions
diff --git a/dev-python/sabctools/Manifest b/dev-python/sabctools/Manifest new file mode 100644 index 000000000000..efbc44ef11a0 --- /dev/null +++ b/dev-python/sabctools/Manifest @@ -0,0 +1,2 @@ +DIST sabctools-8.2.6.gh.tar.gz 8974199 BLAKE2B cefafb57802e7d9b32b99de16b7df2745276c4602c7aa2f9f750bf2c741224b3a9180c2a9dd6d0e807c5297e2a70dbfb3784e546618536e7fa8d6273bc5d3684 SHA512 230a3c78a11d459703bb79d765ac5bf3e21ae239731ada73103e641af64c0cccd6f8e82d4a8a6016585c9935c93f9535cb5a0ead951f4f536a038fc2ebf056db +DIST sabctools-9.4.0.gh.tar.gz 9732762 BLAKE2B 1c54ffd605ed5f3839d697a6c8a372f2800e758b6d3f12e462b97ad2c19fd7643a9923cf8f4cc4766dc18f9993366fb2b0fd4ec2c9c423190dd73622276ccc7e SHA512 fc22a3f6bc195b4a4ec2c2ab24cab71dd5b3935f4825de7b35c4ae1cf3ac0a7236a9230f9a412ac18dddbf49f38afe6b81c47570a7a99292010d954a4b298ac3 diff --git a/dev-python/sabctools/files/sabctools-8.2.6-py314testfix.patch b/dev-python/sabctools/files/sabctools-8.2.6-py314testfix.patch new file mode 100644 index 000000000000..50b26be43caf --- /dev/null +++ b/dev-python/sabctools/files/sabctools-8.2.6-py314testfix.patch @@ -0,0 +1,46 @@ +diff --git a/tests/test_decoder.py b/tests/test_decoder.py +index 9503923..d45e607 100644 +--- a/tests/test_decoder.py ++++ b/tests/test_decoder.py +@@ -76,29 +76,32 @@ def test_empty(): +
+ def test_ref_counts():
+ """Note that sys.getrefcount itself adds another reference!"""
++ # In Python 3.14+, getrefcount returns 1, in earlier versions it returns 2
++ expected_refcount = 1 if sys.version_info >= (3, 14) else 2
++
+ # Test regular case
+ data_plain = read_plain_yenc_file("test_regular.yenc")
+ data_out, filename, filesize, begin, end, crc_correct = sabctools_yenc_wrapper(data_plain)
+
+- assert sys.getrefcount(data_plain) == 2
+- assert sys.getrefcount(data_out) == 2
+- assert sys.getrefcount(filename) == 2
+- assert sys.getrefcount(begin) == 2
+- assert sys.getrefcount(end) == 2
+- assert sys.getrefcount(crc_correct) == 2
++ assert sys.getrefcount(data_plain) == expected_refcount
++ assert sys.getrefcount(data_out) == expected_refcount
++ assert sys.getrefcount(filename) == expected_refcount
++ assert sys.getrefcount(begin) == expected_refcount
++ assert sys.getrefcount(end) == expected_refcount
++ assert sys.getrefcount(crc_correct) == expected_refcount
+
+ # Test simple error case
+ fake_inp = memoryview(bytearray(b"1234"))
+- assert sys.getrefcount(fake_inp) == 2
++ assert sys.getrefcount(fake_inp) == expected_refcount
+ with pytest.raises(ValueError):
+ sabctools.yenc_decode(fake_inp)
+- assert sys.getrefcount(fake_inp) == 2
++ assert sys.getrefcount(fake_inp) == expected_refcount
+
+ # Test further processing
+ data_plain = read_plain_yenc_file("test_bad_crc_end.yenc")
+ with pytest.raises(ValueError):
+ sabctools_yenc_wrapper(data_plain)
+- assert sys.getrefcount(data_plain) == 2
++ assert sys.getrefcount(data_plain) == expected_refcount
+
+
+ def test_crc_pickles():
diff --git a/dev-python/sabctools/metadata.xml b/dev-python/sabctools/metadata.xml new file mode 100644 index 000000000000..46b04da5b0df --- /dev/null +++ b/dev-python/sabctools/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>kangie@gentoo.org</email> + <name>Matt Jolly</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/sabctools/sabctools-8.2.6.ebuild b/dev-python/sabctools/sabctools-8.2.6.ebuild new file mode 100644 index 000000000000..a7343ae99896 --- /dev/null +++ b/dev-python/sabctools/sabctools-8.2.6.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +MY_PN="sabctools" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Module providing raw yEnc encoding/decoding for SABnzbd" +HOMEPAGE=" + https://github.com/sabnzbd/sabctools/ + https://pypi.org/project/sabctools/ +" +SRC_URI=" + https://github.com/sabnzbd/${MY_PN}/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="amd64 ~x86" + +PATCHES=( "${FILESDIR}/${P}-py314testfix.patch" ) + +BDEPEND=" + test? ( + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/portend[${PYTHON_USEDEP}] + ) +" + +DOCS=( README.md doc/yenc-draft.1.3.txt ) + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest diff --git a/dev-python/sabctools/sabctools-9.4.0.ebuild b/dev-python/sabctools/sabctools-9.4.0.ebuild new file mode 100644 index 000000000000..7ffd19e28e5d --- /dev/null +++ b/dev-python/sabctools/sabctools-9.4.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +MY_PN="sabctools" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Module providing raw yEnc encoding/decoding for SABnzbd" +HOMEPAGE=" + https://github.com/sabnzbd/sabctools/ + https://pypi.org/project/sabctools/ +" +SRC_URI=" + https://github.com/sabnzbd/${MY_PN}/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~x86" + +BDEPEND=" + test? ( + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/portend[${PYTHON_USEDEP}] + ) +" + +DOCS=( README.md doc/yenc-draft.1.3.txt ) + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest |
