Merge pull request #2319 from rick-gnous/master

Various fix on some packages of dev-python
This commit is contained in:
Anton Bolshakov 2025-05-16 22:49:38 +08:00 committed by GitHub
commit 87923e3bba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 103 additions and 21 deletions

View file

@ -1 +1 @@
DIST acora-2.2.tar.gz 20835 BLAKE2B e0423507d0f5ee1b453e8e6dfd626c970fbbce16e85230a3dfccb59062db0fe761c3c14acea5c14d17ce733a7381343a4b545e6e03bfe0479bef1e419b0e8cf0 SHA512 731fe1d185e86ca7b8a3b6e4fc2630266527d2084a01d5756354e3eab24cd57ee3f812525f0d6e828f8e6cc64162ffa0e334b28b0c2a489cabf2d4ca87f24bbf
DIST acora-2.5.gh.tar.gz 22323 BLAKE2B 052462b81a0a371246a1b13e6a51dd81578552e8baa888e9f2f1f9cb76a0d40615d9ba93f6e1e680444406b032902a23fb294f610b2627a98a8f4467cf5b1d4c SHA512 7779748e25467608f1305c664bf3fb8943662282df4fb704a3e4724403f3b78bc2897c6297f517af6dd6e150a43b6e782932c4b24f986204ba4767c17d6c1dc3

View file

@ -1,28 +1,34 @@
# Copyright 1999-2020 Gentoo Authors
# 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_{11..13} )
inherit distutils-r1
MY_PV="acora-${PV}"
MY_PV="acora-${P}-2"
if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/scoder/acora.git"
else
HASH_COMMIT="${MY_PV}"
SRC_URI="https://github.com/scoder/acora/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
#SRC_URI="https://github.com/scoder/acora/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/scoder/acora/archive/refs/tags/${P}-2.tar.gz -> ${P}.gh.tar.gz"
fi
DESCRIPTION="Fast multi-keyword search engine for text strings"
HOMEPAGE="https://github.com/scoder/acora"
S="${WORKDIR}/${MY_PV}"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${PN}-${MY_PV}"
BDEPEND="
dev-python/cython[${PYTHON_USEDEP}]
"

View file

@ -5,4 +5,8 @@
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">scoder/acora</remote-id>
<remote-id type="pypi">acora</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1 +1 @@
DIST glom-22.1.0.tar.gz 189738 BLAKE2B c7b4548fd662e57147c07ed4f4bbc21337af993e9c6d4de2cb9095a5f95aab4d1a08e04d44f3c9dfc112e0b075f72b0ee2da85a228a3abb41ab5d84d069fab8e SHA512 be6eadd6ea6347e0b44092f3996d7bd51de5dcaf3e1b7bca5653a8bca0b368a0067f2ce9f153835cb30e966e14aba9663302c88a55889200f001970d2e3e549d
DIST glom-24.11.0.gh.tar.gz 191809 BLAKE2B fa991c65fb553200c5446541699b0c3eef10838d081cf9898bd492705f54051f25dc8431f3e441198133266eb18b6b64d0171345a74cd54c6821b77632df25c0 SHA512 3e8b425b2cbd483cb1528554df4312451772f16097c811c5bcb942b828483ed7983a67203beb75b9048b903eb5690596a82faffe5963f42074a43fed69ac7641

View file

@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -10,7 +10,8 @@ inherit distutils-r1
DESCRIPTION="A declarative object transformer for conglomerating nested data"
HOMEPAGE="https://github.com/mahmoud/glom"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
SRC_URI="https://github.com/mahmoud/glom/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">mahmoud/glom</remote-id>
<remote-id type="pypi">glom</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1 +1 @@
DIST promise-2.3.0.tar.gz 28147 BLAKE2B d7ea153e320cbba4fa074355b48ed25fcd5d80679cb7386f7d7c1fd09fe0559c7c970bae9c3121cde99e2cf8b98d6c496e6382b0e2ca14ad35ae9f82425cf376 SHA512 5b0b6879b2a3abe244d85ec4667ea3c594cb5051887af275226d0f05a50e9735b0fbf4c8890bba55d24d0daf45629db2506c53a784025e706a56705600199958
DIST promise-2.3.0.gh.tar.gz 28147 BLAKE2B d7ea153e320cbba4fa074355b48ed25fcd5d80679cb7386f7d7c1fd09fe0559c7c970bae9c3121cde99e2cf8b98d6c496e6382b0e2ca14ad35ae9f82425cf376 SHA512 5b0b6879b2a3abe244d85ec4667ea3c594cb5051887af275226d0f05a50e9735b0fbf4c8890bba55d24d0daf45629db2506c53a784025e706a56705600199958

View file

@ -0,0 +1,23 @@
Patch bad attribute
Fix by rick <rick@gnous.eu>
--- a/tests/test_extra.py
+++ b/tests/test_extra.py
@@ -113,7 +113,7 @@ def test_thrown_exceptions_have_stacktrace():
with raises(AssertionError) as assert_exc:
p3.get()
- assert assert_exc.traceback[-1].path.strpath == __file__
+ assert str(assert_exc.traceback[-1].path) == __file__
def test_thrown_exceptions_preserve_stacktrace():
@@ -127,7 +127,7 @@ def test_thrown_exceptions_preserve_stacktrace():
with raises(AssertionError) as assert_exc:
p3.get()
- assert assert_exc.traceback[-1].path.strpath == __file__
+ assert str(assert_exc.traceback[-1].path) == __file__
# WAIT

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">syrusakbary/promise</remote-id>
<remote-id type="pypi">promise</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -10,13 +10,14 @@ inherit distutils-r1
DESCRIPTION="Promises/A+ implementation for Python"
HOMEPAGE="https://github.com/syrusakbary/promise"
SRC_URI="https://github.com/syrusakbary/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/syrusakbary/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
BDEPEND="test? (
dev-python/py[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-benchmark[${PYTHON_USEDEP}]
)"
@ -25,6 +26,11 @@ RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
distutils_enable_tests pytest
python_test() {
epytest --benchmark-disable --deselect tests/test_awaitable.py
src_prepare() {
use test && eapply "${FILESDIR}/${P}_fix-test.patch"
eapply_user
}
python_test() {
epytest --benchmark-disable --ignore tests/test_awaitable.py --deselect tests/test_issues.py::test_issue_9_safe
}

View file

@ -1 +1 @@
DIST pykcs11-1.5.10.tar.gz 77074 BLAKE2B 785e436a474f5c0cee5cbe666e88c3e46fd3969ca25908267cab379c24fb74cc557c0d670905d0d96a7e3eeddf92cdb5dc62281f31f22b1035dee43f93c7c550 SHA512 5ad4d4575f9eb3a93a817bf7c1adf704fdb6ed4c780e3bb135d909e97c8f9e29abb6ef8b59a5135bae495ba7e3da2e2fa7df82780f3f419e07be00397aee5d24
DIST pykcs11-1.5.17.gh.tar.gz 79665 BLAKE2B c96c92b0f973ef2cdde754e14093fc3dbf6dccab74554c3d0dfc842ff5fa6356121d4dfc0f841d2ba56f3c5011bb7d4a01b0685ae9bea32918003d47ef84ee7b SHA512 b6f8aa8c1ae090daa396cd6198cdd945a26834f767b0e717b0174552c7de8a244e93793544c6fb8b62b3a6bf76f3aae4e889ff803874791fae4634c1c7268136

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">LudovicRousseau/PyKCS11</remote-id>
<remote-id type="pypi">PyKCS11</remote-id>
<remote-id type="sourceforge">pkcs11wrap</remote-id>
<doc>https://pkcs11wrap.sourceforge.io/api/</doc>
</upstream>
</pkgmetadata>

View file

@ -1,19 +1,21 @@
# Copyright 1999-2021 Gentoo Authors
# 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_{11..13} )
inherit distutils-r1
MY_PN=PyKCS11
MY_P=${MY_PN}-${PV}
MY_P="PyKCS11-${PV}"
DESCRIPTION="A complete PKCS#11 wrapper for Python"
HOMEPAGE="https://github.com/LudovicRousseau/PyKCS11"
SRC_URI="https://codeload.github.com/LudovicRousseau/${MY_PN}/tar.gz/${PV} -> ${P}.tar.gz"
SRC_URI="https://github.com/LudovicRousseau/PyKCS11/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
@ -21,12 +23,14 @@ KEYWORDS="amd64 arm64 x86"
IUSE="examples"
RESTRICT="test"
DEPEND="dev-lang/swig
dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="
dev-lang/swig
dev-python/setuptools[${PYTHON_USEDEP}]
"
DOCS=( README.md )
S="${WORKDIR}/${MY_P}"
distutils_enable_sphinx docs
python_install_all() {
if use examples; then