summaryrefslogtreecommitdiff
path: root/dev-python/mechanize
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-22 12:05:36 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-22 12:05:36 +0100
commit02eb6576978c38afed5787f6f2dbab8353379d66 (patch)
tree0b82220aae58c1307bef3aff0f342f4cdf858161 /dev-python/mechanize
parent490ef2c2dc8b4e808f37add1adee21a754efd9a9 (diff)
gentoo auto-resync : 22:04:2024 - 12:05:36
Diffstat (limited to 'dev-python/mechanize')
-rw-r--r--dev-python/mechanize/Manifest3
-rw-r--r--dev-python/mechanize/files/mechanize-0.4.9-test.patch23
-rw-r--r--dev-python/mechanize/mechanize-0.4.9.ebuild9
3 files changed, 32 insertions, 3 deletions
diff --git a/dev-python/mechanize/Manifest b/dev-python/mechanize/Manifest
index 87f6789e3a74..bb356d76b586 100644
--- a/dev-python/mechanize/Manifest
+++ b/dev-python/mechanize/Manifest
@@ -1,3 +1,4 @@
+AUX mechanize-0.4.9-test.patch 995 BLAKE2B e2acd1287b51653e2504ba1d57ec4251284c41ffa1adfc0da0ce039386aa512995b7e66c2a30896002bdca8415411713b672b08ff0c47ec7cab480fa470e7f81 SHA512 bd8edf8e66c0532a11bdf7b7b2f95351f756ea268b2af404b679560fcc262dde63283cffc5fadf20f49c42c112410ac89794acf4b3ce6d001f4b2dbe5775ee21
DIST mechanize-0.4.9.tar.gz 218286 BLAKE2B 42ea97f843ec61b5ae05913e564f0cdb473976ea4e08a886c3bed15b27cea64def7fe5c73c1b809e48688d5ae41c269e85b633a24731c83409bf9855fc72b85f SHA512 a0c5d6e01ddabd35dded9908e4f7e24cb0a8c20a674af603cd2f5f146c75d38dc96c36af0898646691206ce41745dff9a736ce53efd03ff48e55e763814b893c
-EBUILD mechanize-0.4.9.ebuild 687 BLAKE2B 54434723531b70f865846f30f66b850eb377e6281cbbc7b41680b4275cf51f2402bb64453c592b58ef99589625f5a257b24a3c011e8ffd7cf6748dc3d23a6c2c SHA512 871849b08db99ca1265feb8c22e96a211dc0e6f1b6161119c63f68111316c2b4e0f083efb824419ff840e7397b83419ea1a40fb6734033ed529192c733aa7fe5
+EBUILD mechanize-0.4.9.ebuild 791 BLAKE2B aae52f0e662ebb0af165d3cf4343cc2de8dcf263adcbf73d2b8e7993ccd779ef41c1d242f9794be663e96c2013925512b140903369d1543745cf0110aec97396 SHA512 63ef84c9ad213d4ef2e2741cead386c434c9bbe147412987e57e9526d5dd2019ed2f080844f221958decf96fec9de6f3924368b349819ae4c2e5a82280505cb0
MISC metadata.xml 1069 BLAKE2B 71445830ac06448e12152b3418f1e4c68ece2d3deb2b3da1d4e82c89fc5faeef02b9669d19576dd47076e3f69097b535fc8f27bb117f8d6d74819676d59bc208 SHA512 6b31da39515a39c6c2fff17dbe6ebed752b14730ac2253fedc649a3ef9cdcb21095cc4ab45bff80a7d38e30467317b25bdf605020fff4ec47473cf666c0f5436
diff --git a/dev-python/mechanize/files/mechanize-0.4.9-test.patch b/dev-python/mechanize/files/mechanize-0.4.9-test.patch
new file mode 100644
index 000000000000..369cbe9495e1
--- /dev/null
+++ b/dev-python/mechanize/files/mechanize-0.4.9-test.patch
@@ -0,0 +1,23 @@
+From 1324b09b661aaac7d4cdc7e1e9d49e1c3851db2c Mon Sep 17 00:00:00 2001
+From: Martin Weinelt <hexa@darmstadt.ccc.de>
+Date: Sun, 21 Apr 2024 13:05:45 +0200
+Subject: [PATCH] Fix test_ftp mime type expectation on 3.11+
+
+Closes: #94
+---
+ test/test_urllib2.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/test_urllib2.py b/test/test_urllib2.py
+index e9b96fd..c46a2fc 100644
+--- a/test/test_urllib2.py
++++ b/test/test_urllib2.py
+@@ -864,7 +864,7 @@ def connect_ftp(self, user, passwd, host, port, dirs, timeout):
+ ["foo", "bar"], _sockettimeout._GLOBAL_DEFAULT_TIMEOUT, "", None),
+ ("ftp://localhost/baz.gif;type=a", "localhost", ftplib.FTP_PORT,
+ "A", [], _sockettimeout._GLOBAL_DEFAULT_TIMEOUT, "baz.gif",
+- None), # TODO: really this should guess image/gif
++ "image/gif" if sys.version_info >= (3, 11) else None),
+ ]:
+ req = Request(url, timeout=timeout)
+ r = h.ftp_open(req)
diff --git a/dev-python/mechanize/mechanize-0.4.9.ebuild b/dev-python/mechanize/mechanize-0.4.9.ebuild
index 9f450d7fd6b3..801db8146541 100644
--- a/dev-python/mechanize/mechanize-0.4.9.ebuild
+++ b/dev-python/mechanize/mechanize-0.4.9.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -29,6 +29,11 @@ BDEPEND="
)
"
+PATCHES=(
+ # https://github.com/python-mechanize/mechanize/pull/95
+ "${FILESDIR}/${P}-test.patch"
+)
+
python_test() {
- "${EPYTHON}" run_tests.py || die
+ "${EPYTHON}" run_tests.py -v || die
}