summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-18 18:58:58 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-18 18:58:58 +0000
commitf671fe7d3cc2f70e5eb31e083f7d3e9419a34c39 (patch)
tree361f48767c150f337a2f11f18d9e50cddd943ec3 /dev-python
parentfac0acb695f0ee17d0a8cd649d40775806e93174 (diff)
downloadbaldeagleos-repo-f671fe7d3cc2f70e5eb31e083f7d3e9419a34c39.tar.gz
baldeagleos-repo-f671fe7d3cc2f70e5eb31e083f7d3e9419a34c39.tar.xz
baldeagleos-repo-f671fe7d3cc2f70e5eb31e083f7d3e9419a34c39.zip
Adding metadata
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/attrs/attrs-25.3.0.ebuild6
-rw-r--r--dev-python/distlib/distlib-0.3.9.ebuild5
-rw-r--r--dev-python/distlib/files/distlib-0.3.9-freethreading.patch26
-rw-r--r--dev-python/hatch-fancy-pypi-readme/hatch-fancy-pypi-readme-24.1.0.ebuild2
-rw-r--r--dev-python/hypothesis/hypothesis-6.131.2.ebuild6
-rw-r--r--dev-python/pyside/pyside-6.8.2-r1.ebuild4
-rw-r--r--dev-python/pyside/pyside-6.8.3.ebuild4
-rw-r--r--dev-python/pyside/pyside-6.9.0.ebuild4
-rw-r--r--dev-python/pyside/pyside-6.9.9999.ebuild4
-rw-r--r--dev-python/pyside/pyside-6.9999.ebuild4
-rw-r--r--dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild2
-rw-r--r--dev-python/tpm2-pytss/files/tpm2-pytss-2.3.0-use-CC-enviromental-variable.patch54
-rw-r--r--dev-python/tpm2-pytss/tpm2-pytss-2.3.0-r1.ebuild48
-rw-r--r--dev-python/virtualenv/virtualenv-20.30.0.ebuild2
14 files changed, 155 insertions, 16 deletions
diff --git a/dev-python/attrs/attrs-25.3.0.ebuild b/dev-python/attrs/attrs-25.3.0.ebuild
index 3fae19614c42..e1dfb85c7c46 100644
--- a/dev-python/attrs/attrs-25.3.0.ebuild
+++ b/dev-python/attrs/attrs-25.3.0.ebuild
@@ -26,10 +26,12 @@ BDEPEND="
test? (
$(python_gen_impl_dep sqlite)
dev-python/hypothesis[${PYTHON_USEDEP}]
- dev-python/zope-interface[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/zope-interface[${PYTHON_USEDEP}]
+ ' python3_{10..13} 'pypy*')
$(python_gen_cond_dep '
dev-python/cloudpickle[${PYTHON_USEDEP}]
- ' 'python*' pypy3)
+ ' python3_{10..13} pypy3)
)
"
diff --git a/dev-python/distlib/distlib-0.3.9.ebuild b/dev-python/distlib/distlib-0.3.9.ebuild
index 14e804710746..5a190a15fe84 100644
--- a/dev-python/distlib/distlib-0.3.9.ebuild
+++ b/dev-python/distlib/distlib-0.3.9.ebuild
@@ -11,7 +11,7 @@ inherit distutils-r1
DESCRIPTION="Low-level components of distutils2/packaging"
HOMEPAGE="
https://pypi.org/project/distlib/
- https://github.com/pypa/distlib
+ https://github.com/pypa/distlib/
"
SRC_URI="
https://github.com/pypa/distlib/archive/${PV}.tar.gz -> ${P}.gh.tar.gz
@@ -27,6 +27,7 @@ RESTRICT="!test? ( test )"
BDEPEND="
test? (
dev-python/pypiserver
+ dev-python/test[${PYTHON_USEDEP}]
)
"
@@ -34,6 +35,8 @@ src_prepare() {
local PATCHES=(
# use system pypiserver instead of bundled one
"${FILESDIR}"/distlib-0.3.9-system-pypiserver.py
+ # https://github.com/pypa/distlib/pull/244
+ "${FILESDIR}/${P}-freethreading.patch"
)
# make sure it's not used
diff --git a/dev-python/distlib/files/distlib-0.3.9-freethreading.patch b/dev-python/distlib/files/distlib-0.3.9-freethreading.patch
new file mode 100644
index 000000000000..5f7ccb28bfcd
--- /dev/null
+++ b/dev-python/distlib/files/distlib-0.3.9-freethreading.patch
@@ -0,0 +1,26 @@
+From 99248e3681036af5132bf5338ec939148da13478 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Fri, 18 Apr 2025 16:33:35 +0200
+Subject: [PATCH] Update `test_wheel.WheelTestCase.test_abi` for freethreading
+
+Update `test_wheel.WheelTestCase.test_abi` to account for the `t` suffix
+added in freethreaded CPython builds.
+
+Fixes #243
+---
+ tests/test_wheel.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/test_wheel.py b/tests/test_wheel.py
+index da5bd58..c14bba3 100644
+--- a/tests/test_wheel.py
++++ b/tests/test_wheel.py
+@@ -719,6 +719,8 @@ def test_abi(self):
+ us = sysconfig.get_config_var('Py_UNICODE_SIZE')
+ if us == 4 or (us is None and sys.maxunicode == 0x10FFFF):
+ parts.append('u')
++ if bool(sysconfig.get_config_var("Py_GIL_DISABLED")):
++ parts.append('t')
+ if vi < (3, 5):
+ abi = ABI
+ else:
diff --git a/dev-python/hatch-fancy-pypi-readme/hatch-fancy-pypi-readme-24.1.0.ebuild b/dev-python/hatch-fancy-pypi-readme/hatch-fancy-pypi-readme-24.1.0.ebuild
index e18572f7ea50..02312374acbf 100644
--- a/dev-python/hatch-fancy-pypi-readme/hatch-fancy-pypi-readme-24.1.0.ebuild
+++ b/dev-python/hatch-fancy-pypi-readme/hatch-fancy-pypi-readme-24.1.0.ebuild
@@ -26,7 +26,7 @@ RDEPEND="
dev-python/hatchling[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/tomli[${PYTHON_USEDEP}]
- ' 3.{9..10})
+ ' 3.10)
"
distutils_enable_tests pytest
diff --git a/dev-python/hypothesis/hypothesis-6.131.2.ebuild b/dev-python/hypothesis/hypothesis-6.131.2.ebuild
index ba7cfa420917..377138685f65 100644
--- a/dev-python/hypothesis/hypothesis-6.131.2.ebuild
+++ b/dev-python/hypothesis/hypothesis-6.131.2.ebuild
@@ -69,6 +69,12 @@ python_test() {
hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture
)
;;
+ python3.13t)
+ EPYTEST_DESELECT+=(
+ # TODO: missing warning
+ 'hypothesis-python/tests/cover/test_random_module.py::test_passing_referenced_instance_within_function_scope_warns'
+ )
+ ;&
python3.1[23]*)
EPYTEST_DESELECT+=(
# TODO
diff --git a/dev-python/pyside/pyside-6.8.2-r1.ebuild b/dev-python/pyside/pyside-6.8.2-r1.ebuild
index b4cfcfd57959..aecebb8a2f77 100644
--- a/dev-python/pyside/pyside-6.8.2-r1.ebuild
+++ b/dev-python/pyside/pyside-6.8.2-r1.ebuild
@@ -365,7 +365,7 @@ python_compile() {
# The build system uses its own build dir, find the name of this dir.
local pyside_build_dir=$(find "${BUILD_DIR}/build$((${#DISTUTILS_WHEELS[@]}-1))" -maxdepth 1 -type d -name 'qfp*-py*-qt*-*' -printf "%f\n")
- export BUILD_ID=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
+ export pyside_build_id=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
DISTUTILS_ARGS=(
"${MAIN_DISTUTILS_ARGS[@]}"
@@ -495,7 +495,7 @@ python_compile() {
python_test() {
# Otherwise it picks the last built directory breaking assumption for multi target builds
mkdir -p build_history/9999-99-99_999999/ || die
- local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${BUILD_ID}
+ local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${pyside_build_id}
echo "$(ls -d "${BUILD_DIR}"/build*/${pyside_build_dir}/build | sort -V | tail -n 1)" > build_history/9999-99-99_999999/build_dir.txt || die
echo "${pyside_build_dir}" >> build_history/9999-99-99_999999/build_dir.txt || die
diff --git a/dev-python/pyside/pyside-6.8.3.ebuild b/dev-python/pyside/pyside-6.8.3.ebuild
index 21c6b4aef2b0..c197621c52fc 100644
--- a/dev-python/pyside/pyside-6.8.3.ebuild
+++ b/dev-python/pyside/pyside-6.8.3.ebuild
@@ -363,7 +363,7 @@ python_compile() {
# The build system uses its own build dir, find the name of this dir.
local pyside_build_dir=$(find "${BUILD_DIR}/build$((${#DISTUTILS_WHEELS[@]}-1))" -maxdepth 1 -type d -name 'qfp*-py*-qt*-*' -printf "%f\n")
- export BUILD_ID=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
+ export pyside_build_id=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
DISTUTILS_ARGS=(
"${MAIN_DISTUTILS_ARGS[@]}"
@@ -493,7 +493,7 @@ python_compile() {
python_test() {
# Otherwise it picks the last built directory breaking assumption for multi target builds
mkdir -p build_history/9999-99-99_999999/ || die
- local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${BUILD_ID}
+ local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${pyside_build_id}
echo "$(ls -d "${BUILD_DIR}"/build*/${pyside_build_dir}/build | sort -V | tail -n 1)" > build_history/9999-99-99_999999/build_dir.txt || die
echo "${pyside_build_dir}" >> build_history/9999-99-99_999999/build_dir.txt || die
diff --git a/dev-python/pyside/pyside-6.9.0.ebuild b/dev-python/pyside/pyside-6.9.0.ebuild
index 1d3922fbc44a..6d4844edaf7b 100644
--- a/dev-python/pyside/pyside-6.9.0.ebuild
+++ b/dev-python/pyside/pyside-6.9.0.ebuild
@@ -363,7 +363,7 @@ python_compile() {
# The build system uses its own build dir, find the name of this dir.
local pyside_build_dir=$(find "${BUILD_DIR}/build$((${#DISTUTILS_WHEELS[@]}-1))" -maxdepth 1 -type d -name 'qfp*-py*-qt*-*' -printf "%f\n")
- export BUILD_ID=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
+ export pyside_build_id=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
DISTUTILS_ARGS=(
"${MAIN_DISTUTILS_ARGS[@]}"
@@ -493,7 +493,7 @@ python_compile() {
python_test() {
# Otherwise it picks the last built directory breaking assumption for multi target builds
mkdir -p build_history/9999-99-99_999999/ || die
- local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${BUILD_ID}
+ local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${pyside_build_id}
echo "$(ls -d "${BUILD_DIR}"/build*/${pyside_build_dir}/build | sort -V | tail -n 1)" > build_history/9999-99-99_999999/build_dir.txt || die
echo "${pyside_build_dir}" >> build_history/9999-99-99_999999/build_dir.txt || die
diff --git a/dev-python/pyside/pyside-6.9.9999.ebuild b/dev-python/pyside/pyside-6.9.9999.ebuild
index 1d3922fbc44a..6d4844edaf7b 100644
--- a/dev-python/pyside/pyside-6.9.9999.ebuild
+++ b/dev-python/pyside/pyside-6.9.9999.ebuild
@@ -363,7 +363,7 @@ python_compile() {
# The build system uses its own build dir, find the name of this dir.
local pyside_build_dir=$(find "${BUILD_DIR}/build$((${#DISTUTILS_WHEELS[@]}-1))" -maxdepth 1 -type d -name 'qfp*-py*-qt*-*' -printf "%f\n")
- export BUILD_ID=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
+ export pyside_build_id=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
DISTUTILS_ARGS=(
"${MAIN_DISTUTILS_ARGS[@]}"
@@ -493,7 +493,7 @@ python_compile() {
python_test() {
# Otherwise it picks the last built directory breaking assumption for multi target builds
mkdir -p build_history/9999-99-99_999999/ || die
- local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${BUILD_ID}
+ local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${pyside_build_id}
echo "$(ls -d "${BUILD_DIR}"/build*/${pyside_build_dir}/build | sort -V | tail -n 1)" > build_history/9999-99-99_999999/build_dir.txt || die
echo "${pyside_build_dir}" >> build_history/9999-99-99_999999/build_dir.txt || die
diff --git a/dev-python/pyside/pyside-6.9999.ebuild b/dev-python/pyside/pyside-6.9999.ebuild
index 1d3922fbc44a..6d4844edaf7b 100644
--- a/dev-python/pyside/pyside-6.9999.ebuild
+++ b/dev-python/pyside/pyside-6.9999.ebuild
@@ -363,7 +363,7 @@ python_compile() {
# The build system uses its own build dir, find the name of this dir.
local pyside_build_dir=$(find "${BUILD_DIR}/build$((${#DISTUTILS_WHEELS[@]}-1))" -maxdepth 1 -type d -name 'qfp*-py*-qt*-*' -printf "%f\n")
- export BUILD_ID=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
+ export pyside_build_id=${pyside_build_dir#qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-}
DISTUTILS_ARGS=(
"${MAIN_DISTUTILS_ARGS[@]}"
@@ -493,7 +493,7 @@ python_compile() {
python_test() {
# Otherwise it picks the last built directory breaking assumption for multi target builds
mkdir -p build_history/9999-99-99_999999/ || die
- local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${BUILD_ID}
+ local pyside_build_dir=qfp$(usev debug d)-py${EPYTHON#python}-qt$(ver_cut 1-3)-${pyside_build_id}
echo "$(ls -d "${BUILD_DIR}"/build*/${pyside_build_dir}/build | sort -V | tail -n 1)" > build_history/9999-99-99_999999/build_dir.txt || die
echo "${pyside_build_dir}" >> build_history/9999-99-99_999999/build_dir.txt || die
diff --git a/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild b/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild
index f4936a8a6156..4fdd05f2f1f2 100644
--- a/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild
+++ b/dev-python/pytest-timeout/pytest-timeout-2.3.1.ebuild
@@ -27,7 +27,7 @@ BDEPEND="
!hppa? (
$(python_gen_cond_dep '
dev-python/pytest-cov[${PYTHON_USEDEP}]
- ' python3_{10..11} pypy3)
+ ' python3_{10..13} 'pypy3*')
)
)
"
diff --git a/dev-python/tpm2-pytss/files/tpm2-pytss-2.3.0-use-CC-enviromental-variable.patch b/dev-python/tpm2-pytss/files/tpm2-pytss-2.3.0-use-CC-enviromental-variable.patch
new file mode 100644
index 000000000000..9e7de8ef7c03
--- /dev/null
+++ b/dev-python/tpm2-pytss/files/tpm2-pytss-2.3.0-use-CC-enviromental-variable.patch
@@ -0,0 +1,54 @@
+diff --git a/setup.py b/setup.py
+index 0e6208f..eec85ad 100644
+--- a/setup.py
++++ b/setup.py
+@@ -20,6 +20,14 @@ from textwrap import dedent
+ site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
+
+
++def cpp_path():
++ return os.environ.get("CC", "cc")
++
++
++def cpp_args(args=[]):
++ return ["-E"] + args
++
++
+ class type_generator(build_ext):
+ cares = set(
+ (
+@@ -184,7 +192,9 @@ class type_generator(build_ext):
+ f"unable to find tss2_tpm2_types.h in {pk['include_dirs']}"
+ )
+ pdata = preprocess_file(
+- header_path, cpp_args=["-std=c99", "-D__extension__=", "-D__attribute__(x)="]
++ header_path,
++ cpp_path=cpp_path(),
++ cpp_args=cpp_args(["-std=c99", "-D__extension__=", "-D__attribute__(x)="]),
+ )
+ parser = c_parser.CParser()
+ ast = parser.parse(pdata, "tss2_tpm2_types.h")
+@@ -204,13 +214,16 @@ class type_generator(build_ext):
+ if policy_header_path:
+ pdata = preprocess_file(
+ policy_header_path,
+- cpp_args=[
+- "-std=c99",
+- "-D__extension__=",
+- "-D__attribute__(x)=",
+- "-D__float128=long double",
+- "-D_FORTIFY_SOURCE=0",
+- ],
++ cpp_path=cpp_path(),
++ cpp_args=cpp_args(
++ [
++ "-std=c99",
++ "-D__extension__=",
++ "-D__attribute__(x)=",
++ "-D__float128=long double",
++ "-D_FORTIFY_SOURCE=0",
++ ]
++ ),
+ )
+ parser = c_parser.CParser()
+ past = parser.parse(pdata, "tss2_policy.h")
diff --git a/dev-python/tpm2-pytss/tpm2-pytss-2.3.0-r1.ebuild b/dev-python/tpm2-pytss/tpm2-pytss-2.3.0-r1.ebuild
new file mode 100644
index 000000000000..eb619644e4c1
--- /dev/null
+++ b/dev-python/tpm2-pytss/tpm2-pytss-2.3.0-r1.ebuild
@@ -0,0 +1,48 @@
+# 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
+PYPI_NO_NORMALIZE=1
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python bindings for TSS"
+HOMEPAGE="
+ https://pypi.org/project/tpm2-pytss/
+ https://github.com/tpm2-software/tpm2-pytss/
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+fapi test"
+
+DEPEND="
+ app-crypt/tpm2-tss:=[fapi=]
+ fapi? ( >=app-crypt/tpm2-tss-3.0.3:= )
+ test? ( app-crypt/swtpm )
+"
+RDEPEND="${DEPEND}
+ dev-python/cffi[${PYTHON_USEDEP}]
+ dev-python/asn1crypto[${PYTHON_USEDEP}]
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/pycparser[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/pkgconfig[${PYTHON_USEDEP}]
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.3.0-preprocess-as-C99.patch"
+ "${FILESDIR}/${PN}-2.3.0-use-CC-enviromental-variable.patch"
+ )
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+distutils_enable_tests pytest
diff --git a/dev-python/virtualenv/virtualenv-20.30.0.ebuild b/dev-python/virtualenv/virtualenv-20.30.0.ebuild
index 6017c7205cb9..d7f41d759b6e 100644
--- a/dev-python/virtualenv/virtualenv-20.30.0.ebuild
+++ b/dev-python/virtualenv/virtualenv-20.30.0.ebuild
@@ -46,7 +46,7 @@ BDEPEND="
' "${PYTHON_TESTED[@]}")
$(python_gen_cond_dep '
dev-python/time-machine[${PYTHON_USEDEP}]
- ' 'python3*')
+ ' python3_{10..13})
$(python_gen_cond_dep '
>=dev-python/pytest-freezer-0.4.6[${PYTHON_USEDEP}]
' 'pypy3*')