diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-11-05 17:56:40 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-11-05 17:56:40 +0000 |
| commit | 8e2a024866693650b07dbc2f43e4be74952feb05 (patch) | |
| tree | 8add0aed8397d3bb7b1ea141fecaf043ce74aadd /dev-python | |
| parent | 1e1ad59bb4d445add435d8a12ae5338f96ad605e (diff) | |
| download | baldeagleos-repo-8e2a024866693650b07dbc2f43e4be74952feb05.tar.gz baldeagleos-repo-8e2a024866693650b07dbc2f43e4be74952feb05.tar.xz baldeagleos-repo-8e2a024866693650b07dbc2f43e4be74952feb05.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/ansi2html/ansi2html-1.8.0-r2.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/py-ubjson/files/py-ubjson-0.16.1-py312.patch | 35 | ||||
| -rw-r--r-- | dev-python/py-ubjson/py-ubjson-0.16.1-r1.ebuild | 5 | ||||
| -rw-r--r-- | dev-python/python-discid/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/python-discid/python-discid-1.2.0-r1.ebuild | 25 | ||||
| -rw-r--r-- | dev-python/python-mpd2/python-mpd2-3.1.0.ebuild | 1 | ||||
| -rw-r--r-- | dev-python/python-pam/python-pam-2.0.2-r2.ebuild | 1 | ||||
| -rw-r--r-- | dev-python/python-redmine/python-redmine-2.4.0.ebuild | 6 | ||||
| -rw-r--r-- | dev-python/python-stdnum/python-stdnum-1.19.ebuild | 3 | ||||
| -rw-r--r-- | dev-python/qstylizer/qstylizer-0.2.2.ebuild | 36 | ||||
| -rw-r--r-- | dev-python/reedsolo/reedsolo-2.1.1_beta1-r2.ebuild | 43 | ||||
| -rw-r--r-- | dev-python/slixmpp/metadata.xml | 1 | ||||
| -rw-r--r-- | dev-python/slixmpp/slixmpp-1.8.4.ebuild | 9 | ||||
| -rw-r--r-- | dev-python/slixmpp/slixmpp-9999.ebuild | 10 | ||||
| -rw-r--r-- | dev-python/spake2/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/spake2/spake2-0.8-r1.ebuild | 27 |
16 files changed, 171 insertions, 37 deletions
diff --git a/dev-python/ansi2html/ansi2html-1.8.0-r2.ebuild b/dev-python/ansi2html/ansi2html-1.8.0-r2.ebuild index 58a47b561868..adfeb1f25440 100644 --- a/dev-python/ansi2html/ansi2html-1.8.0-r2.ebuild +++ b/dev-python/ansi2html/ansi2html-1.8.0-r2.ebuild @@ -14,7 +14,7 @@ HOMEPAGE="https://pypi.org/project/ansi2html/ LICENSE="LGPL-3+" SLOT="0" -KEYWORDS="~amd64 ~arm ~riscv ~x86" +KEYWORDS="amd64 arm ~riscv x86" RDEPEND=">=dev-python/six-1.7.3[${PYTHON_USEDEP}]" BDEPEND=" diff --git a/dev-python/py-ubjson/files/py-ubjson-0.16.1-py312.patch b/dev-python/py-ubjson/files/py-ubjson-0.16.1-py312.patch new file mode 100644 index 000000000000..ab2bb2cab503 --- /dev/null +++ b/dev-python/py-ubjson/files/py-ubjson-0.16.1-py312.patch @@ -0,0 +1,35 @@ +From 1e69041e86947e360f30b8ee5ee0993ddd68469c Mon Sep 17 00:00:00 2001 +From: Vilnis Termanis <vilnis.termanis@iotics.com> +Date: Fri, 20 Oct 2023 17:10:10 +0200 +Subject: [PATCH] Fix recursion test case for Python 3.12 + +--- + test/test.py | 6 +++--- + 3 files changed, 11 insertions(+), 3 deletions(-) + +diff --git a/test/test.py b/test/test.py +index c3920c4..d685194 100644 +--- a/test/test.py ++++ b/test/test.py +@@ -465,10 +465,10 @@ def assert_raises_regex(self, *args, **kwargs): + + def test_recursion(self): + old_limit = getrecursionlimit() +- setrecursionlimit(200) ++ setrecursionlimit(100) + try: + obj = current = [] +- for _ in range(getrecursionlimit() * 2): ++ for _ in range(getrecursionlimit() * 30): + new_list = [] + current.append(new_list) + current = new_list +@@ -476,7 +476,7 @@ def test_recursion(self): + with self.assert_raises_regex(RuntimeError, 'recursion'): + self.ubjdumpb(obj) + +- raw = ARRAY_START * (getrecursionlimit() * 2) ++ raw = ARRAY_START * (getrecursionlimit() * 30) + with self.assert_raises_regex(RuntimeError, 'recursion'): + self.ubjloadb(raw) + finally: diff --git a/dev-python/py-ubjson/py-ubjson-0.16.1-r1.ebuild b/dev-python/py-ubjson/py-ubjson-0.16.1-r1.ebuild index a0137b18e747..1e223a81e050 100644 --- a/dev-python/py-ubjson/py-ubjson-0.16.1-r1.ebuild +++ b/dev-python/py-ubjson/py-ubjson-0.16.1-r1.ebuild @@ -22,6 +22,11 @@ KEYWORDS="amd64 arm arm64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux" distutils_enable_tests unittest +PATCHES=( + # https://github.com/Iotic-Labs/py-ubjson/pull/19 + "${FILESDIR}/${P}-py312.patch" +) + python_test() { eunittest -s test } diff --git a/dev-python/python-discid/Manifest b/dev-python/python-discid/Manifest index e455554b623c..7bbf1b7d40f7 100644 --- a/dev-python/python-discid/Manifest +++ b/dev-python/python-discid/Manifest @@ -1 +1 @@ -DIST python-discid-1.2.0.tar.gz 30756 BLAKE2B 616613de23b66adfc92227a9f36b710649f2a419ffd83443766ebcf1dbfaf528b7d933011bcbdcd19f5092726b81e40d905a62a64262a528dfad89e561210992 SHA512 239cb608508e94109aa9b8b582bc3de1fb9408b508d56698d7f17ec9ebb0d37c1fb76557d98b6d194c1532e3047efcde3adc5d6e9634bc87533d331423a7f19f +DIST python-discid-1.2.0.gh.tar.gz 30756 BLAKE2B 616613de23b66adfc92227a9f36b710649f2a419ffd83443766ebcf1dbfaf528b7d933011bcbdcd19f5092726b81e40d905a62a64262a528dfad89e561210992 SHA512 239cb608508e94109aa9b8b582bc3de1fb9408b508d56698d7f17ec9ebb0d37c1fb76557d98b6d194c1532e3047efcde3adc5d6e9634bc87533d331423a7f19f diff --git a/dev-python/python-discid/python-discid-1.2.0-r1.ebuild b/dev-python/python-discid/python-discid-1.2.0-r1.ebuild index c160be2487f9..d9bfef66369a 100644 --- a/dev-python/python-discid/python-discid-1.2.0-r1.ebuild +++ b/dev-python/python-discid/python-discid-1.2.0-r1.ebuild @@ -9,15 +9,30 @@ PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 DESCRIPTION="Python bindings for libdiscid" -HOMEPAGE="https://github.com/JonnyJD/python-discid" -SRC_URI="https://github.com/JonnyJD/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE=" + https://python-discid.readthedocs.io/en/latest/ + https://github.com/JonnyJD/python-discid/ + https://pypi.org/project/discid/ +" +SRC_URI=" + https://github.com/JonnyJD/python-discid/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="LGPL-3+" SLOT="0" KEYWORDS="amd64 ~arm64 ~ppc x86" -RDEPEND=">=media-libs/libdiscid-0.2.2" -DEPEND="${RDEPEND}" +DEPEND=" + >=media-libs/libdiscid-0.2.2 +" +RDEPEND=" + ${DEPEND} +" distutils_enable_sphinx doc -distutils_enable_tests setup.py + +python_test() { + "${EPYTHON}" -m unittest -v test_discid.TestModule{Private,} || + die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/python-mpd2/python-mpd2-3.1.0.ebuild b/dev-python/python-mpd2/python-mpd2-3.1.0.ebuild index c9714c9956fd..9680c852fe54 100644 --- a/dev-python/python-mpd2/python-mpd2-3.1.0.ebuild +++ b/dev-python/python-mpd2/python-mpd2-3.1.0.ebuild @@ -4,6 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools +# py3.12: https://github.com/Mic92/python-mpd2/issues/214 PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 diff --git a/dev-python/python-pam/python-pam-2.0.2-r2.ebuild b/dev-python/python-pam/python-pam-2.0.2-r2.ebuild index 0fb536d58880..5b98a909778c 100644 --- a/dev-python/python-pam/python-pam-2.0.2-r2.ebuild +++ b/dev-python/python-pam/python-pam-2.0.2-r2.ebuild @@ -5,6 +5,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + inherit distutils-r1 DESCRIPTION="Python PAM module" diff --git a/dev-python/python-redmine/python-redmine-2.4.0.ebuild b/dev-python/python-redmine/python-redmine-2.4.0.ebuild index 1e2511817e9c..3c98da798287 100644 --- a/dev-python/python-redmine/python-redmine-2.4.0.ebuild +++ b/dev-python/python-redmine/python-redmine-2.4.0.ebuild @@ -25,6 +25,12 @@ RDEPEND=" distutils_enable_tests pytest +src_prepare() { + # https://github.com/maxtepkeev/python-redmine/pull/332 + sed -i -e 's:assertEquals:assertEqual:' tests/*.py || die + distutils-r1_src_prepare +} + python_test() { epytest -o addopts= } diff --git a/dev-python/python-stdnum/python-stdnum-1.19.ebuild b/dev-python/python-stdnum/python-stdnum-1.19.ebuild index 4d4b3d3623b8..828a23bca7ef 100644 --- a/dev-python/python-stdnum/python-stdnum-1.19.ebuild +++ b/dev-python/python-stdnum/python-stdnum-1.19.ebuild @@ -4,8 +4,9 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + inherit distutils-r1 pypi DESCRIPTION="A module to handle standardized numbers and codes" diff --git a/dev-python/qstylizer/qstylizer-0.2.2.ebuild b/dev-python/qstylizer/qstylizer-0.2.2.ebuild index 3484e572cb2e..d47bb90a002b 100644 --- a/dev-python/qstylizer/qstylizer-0.2.2.ebuild +++ b/dev-python/qstylizer/qstylizer-0.2.2.ebuild @@ -3,13 +3,20 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + inherit distutils-r1 DESCRIPTION="Stylesheet Generator for PyQt5/PySide2" -HOMEPAGE="https://github.com/blambright/qstylizer" -SRC_URI="https://github.com/blambright/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" +HOMEPAGE=" + https://github.com/blambright/qstylizer/ + https://pypi.org/project/qstylizer/ +" +SRC_URI=" + https://github.com/blambright/qstylizer/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="MIT" SLOT="0" @@ -24,7 +31,6 @@ RDEPEND=" BDEPEND=" dev-python/pbr[${PYTHON_USEDEP}] - dev-vcs/git test? ( dev-python/pytest-mock[${PYTHON_USEDEP}] dev-python/pytest-xdist[${PYTHON_USEDEP}] @@ -32,21 +38,17 @@ BDEPEND=" " distutils_enable_tests pytest -distutils_enable_sphinx doc dev-python/sphinx-rtd-theme dev-python/sphinxcontrib-autoprogram +distutils_enable_sphinx doc \ + dev-python/sphinx-rtd-theme \ + dev-python/sphinxcontrib-autoprogram python_prepare_all() { - # Exception: Versioning for this project requires either an sdist tarball, or access to an - # upstream git repository. It's also possible that there is a mismatch between the package - # name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name qstylizer - # was given, but was not able to be found. - # - # There are no tarballs on PyPI, so we do this as a workaround - git init -q || die - git config user.email "larry@gentoo.org" || die - git config user.name "Larry the Cow" || die - git add . || die - git commit -m "init" || die - git tag -a "${PV}" -m "${PV}" || die + # fix test + # https://github.com/blambright/qstylizer/pull/17 + sed -e 's:[.]called_once_with:.assert_called_once_with:' \ + -i test/unit/test_style.py || die distutils-r1_python_prepare_all + + export PBR_VERSION=${PV} } diff --git a/dev-python/reedsolo/reedsolo-2.1.1_beta1-r2.ebuild b/dev-python/reedsolo/reedsolo-2.1.1_beta1-r2.ebuild new file mode 100644 index 000000000000..d6c8dcdde407 --- /dev/null +++ b/dev-python/reedsolo/reedsolo-2.1.1_beta1-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 2021-2023 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_{8,9,10,11,12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python Reed Solomon encoder/decoder" +HOMEPAGE=" + https://github.com/tomerfiliba-org/reedsolomon/ + https://pypi.org/project/reedsolo/ +" + +LICENSE="|| ( Unlicense MIT-0 )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="+native-extensions" + +BDEPEND=" + >=dev-python/cython-3[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/pytest-cov/d' pyproject.toml || die + distutils-r1_src_prepare +} + +python_compile() { + local DISTUTILS_ARGS=() + if use native-extensions && [[ ${EPYTHON} != pypy3 ]] ; then + DISTUTILS_ARGS+=( + # TODO: switch to --cythonize once we're on cython-3 + --cythonize + ) + fi + distutils-r1_python_compile +} diff --git a/dev-python/slixmpp/metadata.xml b/dev-python/slixmpp/metadata.xml index 06c35a99a4f0..f92dd44bbba6 100644 --- a/dev-python/slixmpp/metadata.xml +++ b/dev-python/slixmpp/metadata.xml @@ -10,6 +10,7 @@ <name>Python</name> </maintainer> <upstream> + <remote-id type="codeberg">poezio/slixmpp</remote-id> <remote-id type="cpe">cpe:/a:slixmpp_project:slixmpp</remote-id> </upstream> <origin>gentoo-staging</origin> diff --git a/dev-python/slixmpp/slixmpp-1.8.4.ebuild b/dev-python/slixmpp/slixmpp-1.8.4.ebuild index 0ddc67aeb7b9..dc62681d5b5e 100644 --- a/dev-python/slixmpp/slixmpp-1.8.4.ebuild +++ b/dev-python/slixmpp/slixmpp-1.8.4.ebuild @@ -10,12 +10,15 @@ PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 DESCRIPTION="Python 3 library for XMPP" -HOMEPAGE="https://lab.louiz.org/poezio/slixmpp" +HOMEPAGE=" + https://codeberg.org/poezio/slixmpp/ + https://pypi.org/project/slixmpp/ +" LICENSE="MIT" SLOT="0" if [[ "${PV}" == "9999" ]]; then - EGIT_REPO_URI="https://lab.louiz.org/poezio/${PN}.git https://github.com/poezio/slixmpp.git" + EGIT_REPO_URI="https://codeberg.org/poezio/slixmpp.git" inherit git-r3 else inherit pypi @@ -42,5 +45,5 @@ distutils_enable_tests unittest python_test() { rm -rf slixmpp || die - eunittest + eunittest -s tests } diff --git a/dev-python/slixmpp/slixmpp-9999.ebuild b/dev-python/slixmpp/slixmpp-9999.ebuild index e3266d276771..47c5e20c30ee 100644 --- a/dev-python/slixmpp/slixmpp-9999.ebuild +++ b/dev-python/slixmpp/slixmpp-9999.ebuild @@ -3,18 +3,22 @@ EAPI=8 +DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 DESCRIPTION="Python 3 library for XMPP" -HOMEPAGE="https://lab.louiz.org/poezio/slixmpp" +HOMEPAGE=" + https://codeberg.org/poezio/slixmpp/ + https://pypi.org/project/slixmpp/ +" LICENSE="MIT" SLOT="0" if [[ "${PV}" == "9999" ]]; then - EGIT_REPO_URI="https://lab.louiz.org/poezio/${PN}.git https://github.com/poezio/slixmpp.git" + EGIT_REPO_URI="https://codeberg.org/poezio/slixmpp.git" inherit git-r3 else inherit pypi @@ -41,5 +45,5 @@ distutils_enable_tests unittest python_test() { rm -rf slixmpp || die - eunittest + eunittest -s tests } diff --git a/dev-python/spake2/Manifest b/dev-python/spake2/Manifest index 9f81f89fe54b..d4e8add8de7e 100644 --- a/dev-python/spake2/Manifest +++ b/dev-python/spake2/Manifest @@ -1 +1 @@ -DIST spake2-0.8.gh.tar.gz 62425 BLAKE2B 64215362af26fff0785fdabf4282f7111a4cc917750827075b616f009cb1fa6373fc2325382c26b43c051aa5b94e414ca2a5223d9ab666289eb2d04723b15cb5 SHA512 908c377c831f4a11551973ca917b113d51a66c533d35fd19b2692fdb7e575ed2a5045d9b632bc55c37b68ad092f01dff5da191e9dfbfb5599b72844788438d68 +DIST python-spake2-0.8.gh.tar.gz 62425 BLAKE2B 64215362af26fff0785fdabf4282f7111a4cc917750827075b616f009cb1fa6373fc2325382c26b43c051aa5b94e414ca2a5223d9ab666289eb2d04723b15cb5 SHA512 908c377c831f4a11551973ca917b113d51a66c533d35fd19b2692fdb7e575ed2a5045d9b632bc55c37b68ad092f01dff5da191e9dfbfb5599b72844788438d68 diff --git a/dev-python/spake2/spake2-0.8-r1.ebuild b/dev-python/spake2/spake2-0.8-r1.ebuild index 84987116045d..6698bdd9ca4a 100644 --- a/dev-python/spake2/spake2-0.8-r1.ebuild +++ b/dev-python/spake2/spake2-0.8-r1.ebuild @@ -3,26 +3,43 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) inherit distutils-r1 +MY_P=python-spake2-${PV} DESCRIPTION="python implementation of SPAKE2 password-authenticated key exchange algorithm" -HOMEPAGE="https://pypi.org/project/spake2/" -SRC_URI="https://github.com/warner/python-${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" +HOMEPAGE=" + https://github.com/warner/python-spake2/ + https://pypi.org/project/spake2/ +" +SRC_URI=" + https://github.com/warner/python-spake2/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -S="${WORKDIR}/python-${P}" RDEPEND=" dev-python/cryptography[${PYTHON_USEDEP}] - dev-python/more-itertools[${PYTHON_USEDEP}]" + dev-python/more-itertools[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/versioneer[${PYTHON_USEDEP}] +" PATCHES=( "${FILESDIR}"/${P}-do_not_use_hkdf_package.patch ) distutils_enable_tests pytest + +src_prepare() { + # remove outdated bundled versioneer + rm versioneer.py || die + distutils-r1_src_prepare +} |
