* [gentoo-commits] repo/gentoo:master commit in: dev-python/mechanize/, dev-python/mechanize/files/
@ 2021-10-05 8:27 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2021-10-05 8:27 UTC (permalink / raw
To: gentoo-commits
commit: 536aa64eb590c7091f8e8105626ad1593af7d0de
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 5 06:57:03 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Oct 5 08:27:10 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=536aa64e
dev-python/mechanize: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/mechanize/Manifest | 1 -
.../mechanize/files/mechanize-0.4.5-py310.patch | 28 -----------------
dev-python/mechanize/mechanize-0.4.5-r1.ebuild | 35 ----------------------
3 files changed, 64 deletions(-)
diff --git a/dev-python/mechanize/Manifest b/dev-python/mechanize/Manifest
index 1914c91de72..d13c8e51f20 100644
--- a/dev-python/mechanize/Manifest
+++ b/dev-python/mechanize/Manifest
@@ -1,3 +1,2 @@
-DIST mechanize-0.4.5.tar.gz 216908 BLAKE2B 67951ad8295a32799768b3719525d45d502bc773c6f2a5e762e3dae97f309c8c265a2cb3efde95c9e8cb65e89dee6ad6ad8585685baa4e9ff1acfd146f115f6f SHA512 51706d5c073501d02fb7395eda30625ed9191324f948073c7d1589df0e507d8b7641ca514ceff55e7d82e899ba6e10c55507c79668976c7654ff0004671d09d2
DIST mechanize-0.4.6.tar.gz 217254 BLAKE2B 0adc7e0bcbef93051412d0d22e9f426984e197791b43b007087d70d3b15d4fce2f4868e8ad520e8621d35890d6454bd9bfc0910dc5af3d640e2620de4f536e16 SHA512 c28ba59529d2a1d4454467c1e034fc583952fd152c8f889bf9b4c496ad4567e9ca5f8b133eb6eb081bc1e811f54c508e47f8a2c5ccdd8f04c709dafeedf05820
DIST mechanize-0.4.7.tar.gz 217289 BLAKE2B 9254cc88141b08bd9f97b63ac1dcb6b417e042cbefcf710ea9e1c340e8f6331ef9301a47bc6dd989970810ef36b97b867b81b3a44c9a4cdf283a77b04f25decd SHA512 f2796f322b1000818bcd4bcedf1d88538ba3a43151b74c950594a60dd7b5cf96ea4fcb605e30c93a5df095da35418401487928b9adfcca932e95dbf964d74c53
diff --git a/dev-python/mechanize/files/mechanize-0.4.5-py310.patch b/dev-python/mechanize/files/mechanize-0.4.5-py310.patch
deleted file mode 100644
index 98656b65425..00000000000
--- a/dev-python/mechanize/files/mechanize-0.4.5-py310.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff --git a/mechanize/_clientcookie.py b/mechanize/_clientcookie.py
-index ebd2773..6c89cbf 100644
---- a/mechanize/_clientcookie.py
-+++ b/mechanize/_clientcookie.py
-@@ -188,13 +188,22 @@ class CookieJar(CJ):
- raise IndexError()
-
-
-+try:
-+ from http.cookiejar import NETSCAPE_MAGIC_RGX, NETSCAPE_HEADER_TEXT
-+except ImportError: # python < 3.10
-+ NETSCAPE_MAGIC_RGX = MCJ.magic_re
-+ NETSCAPE_HEADER_TEXT = MCJ.header
-+else:
-+ MCJ.header = NETSCAPE_HEADER_TEXT # needed for tests
-+
-+
- class MozillaCookieJar(MCJ):
-
- def _really_load(self, f, filename, ignore_discard, ignore_expires):
- now = time.time()
-
- magic = f.readline()
-- if not re.search(self.magic_re, magic):
-+ if not re.search(NETSCAPE_MAGIC_RGX, magic):
- f.close()
- raise LoadError(
- "%r does not look like a Netscape format cookies file" %
diff --git a/dev-python/mechanize/mechanize-0.4.5-r1.ebuild b/dev-python/mechanize/mechanize-0.4.5-r1.ebuild
deleted file mode 100644
index 50942d696a0..00000000000
--- a/dev-python/mechanize/mechanize-0.4.5-r1.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{7..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="Stateful programmatic web browsing in Python"
-HOMEPAGE="https://github.com/python-mechanize/mechanize"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( BSD ZPL )"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND=">=dev-python/html5lib-0.999999999[${PYTHON_USEDEP}]"
-BDEPEND="
- test? (
- ${RDEPEND}
- )
-"
-
-PATCHES=(
- # https://github.com/python-mechanize/mechanize/commit/2a563ec4fbc394ec5976dda0f528db43d28a2706
- # https://github.com/python-mechanize/mechanize/commit/bc6a2ca7b17e11f2533ada67f0bf92124d4a3cac
- "${FILESDIR}/${P}-py310.patch"
-)
-
-python_test() {
- "${EPYTHON}" run_tests.py || die
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/mechanize/, dev-python/mechanize/files/
@ 2024-05-11 8:13 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2024-05-11 8:13 UTC (permalink / raw
To: gentoo-commits
commit: 159d15111e3f8dc70a18c0454c0a2b76af2f8180
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 11 08:05:35 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 11 08:13:16 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=159d1511
dev-python/mechanize: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/mechanize/Manifest | 1 -
.../mechanize/files/mechanize-0.4.9-test.patch | 23 -------------
dev-python/mechanize/mechanize-0.4.9.ebuild | 39 ----------------------
3 files changed, 63 deletions(-)
diff --git a/dev-python/mechanize/Manifest b/dev-python/mechanize/Manifest
index 9762e1d2e5e7..9d6be2a45653 100644
--- a/dev-python/mechanize/Manifest
+++ b/dev-python/mechanize/Manifest
@@ -1,2 +1 @@
DIST mechanize-0.4.10.tar.gz 218291 BLAKE2B 7a6f293ac5622b4ac01d1b84327e4dd41132eb2fdfaf9826e6c7a8b088890ae8b4b5f4e90aca930761d532702138f0be6f9394e48ee2defc48dcb5f19ee22a79 SHA512 76d13ac8ac06e8e3836ba814259e1ec8495ebbfc259d4f8652f3ed23863b6a5f6fc5983409083ad9f5d0312db6581b0e7b32bfe6d46ecd190006188ac4cf3fc8
-DIST mechanize-0.4.9.tar.gz 218286 BLAKE2B 42ea97f843ec61b5ae05913e564f0cdb473976ea4e08a886c3bed15b27cea64def7fe5c73c1b809e48688d5ae41c269e85b633a24731c83409bf9855fc72b85f SHA512 a0c5d6e01ddabd35dded9908e4f7e24cb0a8c20a674af603cd2f5f146c75d38dc96c36af0898646691206ce41745dff9a736ce53efd03ff48e55e763814b893c
diff --git a/dev-python/mechanize/files/mechanize-0.4.9-test.patch b/dev-python/mechanize/files/mechanize-0.4.9-test.patch
deleted file mode 100644
index 369cbe9495e1..000000000000
--- a/dev-python/mechanize/files/mechanize-0.4.9-test.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-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
deleted file mode 100644
index 801db8146541..000000000000
--- a/dev-python/mechanize/mechanize-0.4.9.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Stateful programmatic web browsing in Python"
-HOMEPAGE="
- https://github.com/python-mechanize/mechanize/
- https://pypi.org/project/mechanize/
-"
-
-LICENSE="|| ( BSD ZPL )"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- >=dev-python/html5lib-0.999999999[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- ${RDEPEND}
- )
-"
-
-PATCHES=(
- # https://github.com/python-mechanize/mechanize/pull/95
- "${FILESDIR}/${P}-test.patch"
-)
-
-python_test() {
- "${EPYTHON}" run_tests.py -v || die
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-11 8:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-05 8:27 [gentoo-commits] repo/gentoo:master commit in: dev-python/mechanize/, dev-python/mechanize/files/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2024-05-11 8:13 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox