dev-python/s3transfer: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-08-02 16:39:52 +02:00
parent daeb668e31
commit 00ca9618d1
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
3 changed files with 0 additions and 84 deletions

View File

@ -1,2 +1 @@
DIST s3transfer-0.13.0.tar.gz 150232 BLAKE2B b2acba8ceb4e6e218b9e43c21ed148a1bd7b63c4bb28d4b68c69e28c6af33cba72fc7fc492496fba2c9e4760d450264555142e6f47a3467eabfb2268a60b6032 SHA512 cb017501738f8aaf708cfc693514e084c49712bf72d1bd4f761470a93cadd8e12e7c19e5f168c180a695d7bb2423145a6836afc58728371e793d9f6cf926b090
DIST s3transfer-0.13.1.tar.gz 150589 BLAKE2B 45569c945eec18d31626dd7d75b90d48ba0504971d6b246281c508ea9f6ec27b85b042e29a63bb3630bb66af6af1dfcf2e1aa5aed5fc065868619a713568b294 SHA512 46ae91946ecb7f1c11cef7547e7f9532326298ba30e7b363738133963a86aed6477fa6128a13dd57c7668e11a3ad9505b55638acffcc9470e6162b8b73206429

View File

@ -1,38 +0,0 @@
From fed6e9872094908fae4fe6a441430fdb2d6b9b77 Mon Sep 17 00:00:00 2001
From: Karolina Surma <ksurma@redhat.com>
Date: Fri, 30 May 2025 13:46:29 +0200
Subject: [PATCH] Avoid the multiprocessing forkserver method
---
tests/unit/test_compat.py | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/tests/unit/test_compat.py b/tests/unit/test_compat.py
index 20f07c74..a50ad10a 100644
--- a/tests/unit/test_compat.py
+++ b/tests/unit/test_compat.py
@@ -10,6 +10,7 @@
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
+import multiprocessing
import os
import shutil
import signal
@@ -80,7 +81,15 @@ def test_non_file_like_obj(self):
class TestBaseManager(unittest.TestCase):
def create_pid_manager(self):
class PIDManager(BaseManager):
- pass
+ def __init__(self):
+ # Python 3.14 changed the non-macOS POSIX default to forkserver
+ # but the code in this module does not work with it
+ # See https://github.com/python/cpython/issues/125714
+ if multiprocessing.get_start_method() == 'forkserver':
+ ctx = multiprocessing.get_context(method='fork')
+ else:
+ ctx = multiprocessing.get_context()
+ super().__init__(ctx=ctx)
PIDManager.register('getpid', os.getpid)
return PIDManager()

View File

@ -1,45 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 pypi
DESCRIPTION="An Amazon S3 Transfer Manager"
HOMEPAGE="
https://github.com/boto/s3transfer/
https://pypi.org/project/s3transfer/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
RDEPEND="
<dev-python/botocore-2[${PYTHON_USEDEP}]
>=dev-python/botocore-1.37.4[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
src_prepare() {
local PATCHES=(
# https://github.com/boto/s3transfer/pull/347
"${FILESDIR}/${P}-py314.patch"
)
distutils-r1_src_prepare
# do not rely on bundled deps in botocore (sic!)
find -name '*.py' -exec sed -i \
-e 's:from botocore[.]vendored import:import:' \
-e 's:from botocore[.]vendored[.]:from :' \
{} + || die
}
python_test() {
epytest tests/{unit,functional}
}