forked from pool/python-mechanize
- update to 0.4.9:
* Fix error on PyPy3
* Fix error CPython 3.12
- drop python-mechanize-setup.cfg.patch,
support-python-311.patch: upstream
both.
- Remove unneeded BuildRequires on python.
lead to Denial-of-Service
* URLs passed into mechanize now automatically have URL unsafe
characters percent encoded. This is necessary because newer
versions of python disallow processing of URLs with unsafe
characters. Note that this means values return by
get_full_url(), get_selector() etc will be percent encoded.
- added missing dependencies: Twisted, zope.interface and html5lib
* A couple of python 3 specific fixes for proxy authorization and
adding controls to forms
* Add a finalize_request_headers callback to Browser to allow
users full control of what headers are sent with every
* Fix processing of http-equiv meta tags incorrectly lower casing
* Fix error when a textbox contained within a form contains
- changed BR python-clientform to python-ClientForm (now it matches)
- Removed provides (wrong package)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mechanize?expand=0&rev=60
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5e86ac0777357e006eb04cd28f7ed9f811d48dffa603d3891ac6d2b92280dc91
|
||||
size 218055
|
||||
3
mechanize-0.4.9.tar.gz
Normal file
3
mechanize-0.4.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:69a5edb0962f921e8b10837368c2242d8ad049f0b91ff699ce7f601bfc431521
|
||||
size 218286
|
||||
@@ -1,30 +0,0 @@
|
||||
From a14ecec7abcd8da9b55d28a6d9ebfd89ce635615 Mon Sep 17 00:00:00 2001
|
||||
From: Li-Wen Hsu <lwhsu@lwhsu.org>
|
||||
Date: Mon, 25 Apr 2022 22:03:01 +0800
|
||||
Subject: [PATCH] setup.cfg: Move packages def to options section
|
||||
|
||||
Fix packaging with older setuptools.
|
||||
---
|
||||
setup.cfg | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: mechanize-0.4.8/setup.cfg
|
||||
===================================================================
|
||||
--- mechanize-0.4.8.orig/setup.cfg
|
||||
+++ mechanize-0.4.8/setup.cfg
|
||||
@@ -8,7 +8,6 @@ license = BSD
|
||||
description = Stateful, programmatic web browsing
|
||||
long_description = file: README.rst
|
||||
url = https://github.com/python-mechanize/mechanize
|
||||
-packages = mechanize
|
||||
classifiers =
|
||||
Development Status :: 5 - Production/Stable
|
||||
Intended Audience :: Developers
|
||||
@@ -37,6 +36,7 @@ classifiers =
|
||||
Topic :: Text Processing :: Markup :: XML
|
||||
|
||||
[options]
|
||||
+packages = mechanize
|
||||
zip_safe = True
|
||||
install_requires = html5lib>=0.999999999
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 27 19:36:38 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.4.9:
|
||||
* Fix error on PyPy3
|
||||
* Fix error CPython 3.12
|
||||
- drop python-mechanize-setup.cfg.patch,
|
||||
support-python-311.patch: upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 27 13:08:45 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
@@ -8,12 +17,12 @@ Fri Mar 31 07:05:30 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-python-311.patch:
|
||||
* http.cookiejar changed behaviour from Python 3.11 onwards, support
|
||||
both.
|
||||
both.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 11 02:02:03 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Remove unneeded BuildRequires on python.
|
||||
- Remove unneeded BuildRequires on python.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 1 14:36:49 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
@@ -45,7 +54,7 @@ Mon Jan 24 00:57:13 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
* Fix the ~ character being percent escaped when sending URLs to servers.
|
||||
* Python 3.10 compatibility
|
||||
* Fix a bug in the regex used to parse www-authenticate headers that could
|
||||
lead to Denial-of-Service
|
||||
lead to Denial-of-Service
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 22 15:45:36 UTC 2020 - Martin Sirringhaus <martin.sirringhaus@suse.com>
|
||||
@@ -54,16 +63,16 @@ Wed Jan 22 15:45:36 UTC 2020 - Martin Sirringhaus <martin.sirringhaus@suse.com>
|
||||
* Add a set_html() method to the browser object
|
||||
|
||||
- Update to 0.4.4:
|
||||
* URLs passed into mechanize now automatically have URL unsafe
|
||||
characters percent encoded. This is necessary because newer
|
||||
versions of python disallow processing of URLs with unsafe
|
||||
characters. Note that this means values return by
|
||||
get_full_url(), get_selector() etc will be percent encoded.
|
||||
* URLs passed into mechanize now automatically have URL unsafe
|
||||
characters percent encoded. This is necessary because newer
|
||||
versions of python disallow processing of URLs with unsafe
|
||||
characters. Note that this means values return by
|
||||
get_full_url(), get_selector() etc will be percent encoded.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 12 16:11:23 UTC 2019 - Bogdano Arendartchuk <BArendartchuk@suse.com>
|
||||
|
||||
- added missing dependencies: Twisted, zope.interface and html5lib
|
||||
- added missing dependencies: Twisted, zope.interface and html5lib
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 11 12:36:30 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
@@ -78,8 +87,8 @@ Wed Sep 11 12:36:30 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
Fri May 17 17:15:36 UTC 2019 - Meera Belur <mbelur@suse.com>
|
||||
|
||||
- Update to v0.4.2
|
||||
* A couple of python 3 specific fixes for proxy authorization and
|
||||
adding controls to forms
|
||||
* A couple of python 3 specific fixes for proxy authorization and
|
||||
adding controls to forms
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 5 12:27:36 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
@@ -93,13 +102,13 @@ Fri Jan 18 11:27:00 CET 2019 - mcepl@suse.com
|
||||
|
||||
- Upgrade to 0.4.0:
|
||||
* Python 3 compatibility
|
||||
* Add a finalize_request_headers callback to Browser to allow
|
||||
users full control of what headers are sent with every
|
||||
* Add a finalize_request_headers callback to Browser to allow
|
||||
users full control of what headers are sent with every
|
||||
request
|
||||
* Preserve header ordering when making HTTP requests
|
||||
* Fix processing of http-equiv meta tags incorrectly lower casing
|
||||
* Fix processing of http-equiv meta tags incorrectly lower casing
|
||||
the content
|
||||
* Fix error when a textbox contained within a form contains
|
||||
* Fix error when a textbox contained within a form contains
|
||||
unicode characters
|
||||
- Add missing BR for testing (Twisted and zope.interface)
|
||||
|
||||
@@ -132,7 +141,7 @@ Sat Nov 9 10:59:58 UTC 2013 - p.drouand@gmail.com
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 9 09:20:53 UTC 2013 - saigkill@opensuse.org
|
||||
|
||||
- changed BR python-clientform to python-ClientForm (now it matches)
|
||||
- changed BR python-clientform to python-ClientForm (now it matches)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 24 11:08:33 UTC 2013 - speilicke@suse.com
|
||||
@@ -194,7 +203,7 @@ Fri Oct 29 15:19:59 UTC 2010 - rwobben@hotmail.com
|
||||
ensure any use of the module logging logger named "ClientForm" is
|
||||
updated to use the new logger name "mechanize.forms". I probably
|
||||
won't do further standalone releases of ClientForm.
|
||||
|
||||
|
||||
for the remaining changes in 0.2.0 and 0.2.1 see
|
||||
/usr/share/doc/packages/python-mechanize/ChangeLog.txt
|
||||
|
||||
@@ -216,7 +225,7 @@ Thu Jul 1 13:21:40 UTC 2010 - toms@suse.de
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 2 08:55:32 CEST 2009 - toms@suse.de
|
||||
|
||||
- Removed provides (wrong package)
|
||||
- Removed provides (wrong package)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 30 16:04:07 CEST 2009 - toms@suse.de
|
||||
|
||||
@@ -19,17 +19,12 @@
|
||||
%define modname mechanize
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-mechanize
|
||||
Version: 0.4.8
|
||||
Version: 0.4.9
|
||||
Release: 0
|
||||
Summary: Stateful programmatic web browsing
|
||||
License: BSD-3-Clause AND (BSD-3-Clause OR ZPL-2.1)
|
||||
URL: https://github.com/python-mechanize/mechanize
|
||||
Source: https://files.pythonhosted.org/packages/source/m/mechanize/%{modname}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM python-mechanize-setup.cfg.patch gh#python-mechanize/mechanize#73 -- setup.cfg: Move packages def to options section
|
||||
Patch0: %{name}-setup.cfg.patch
|
||||
# PATCH-FIX-OPENSUSE Python 3.11 no longer sorts cookies by key when iterating
|
||||
# Re: gh#python/cpython#22745
|
||||
Patch1: support-python-311.patch
|
||||
BuildRequires: %{python_module Twisted}
|
||||
BuildRequires: %{python_module html5lib}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
Index: mechanize-0.4.8/test/test_cookies.py
|
||||
===================================================================
|
||||
--- mechanize-0.4.8.orig/test/test_cookies.py
|
||||
+++ mechanize-0.4.8/test/test_cookies.py
|
||||
@@ -1015,13 +1015,23 @@ class CookieTests(unittest.TestCase):
|
||||
r'port="90,100, 80,8080"; '
|
||||
r'max-age=100; Comment = "Just kidding! (\"|\\\\) "')
|
||||
|
||||
- versions = [1, 1, 1, 0, 1]
|
||||
- names = ["bang", "foo", "foo", "spam", "foo"]
|
||||
- domains = [
|
||||
- ".sol.no", "blah.spam.org", "www.acme.com", "www.acme.com",
|
||||
- "www.acme.com"
|
||||
- ]
|
||||
- paths = ["/", "/", "/", "/blah", "/blah/"]
|
||||
+ # Python 3.11+ no longer sort cookies when returning them.
|
||||
+ if sys.version_info >= (3, 11):
|
||||
+ versions = [1, 0, 1, 1, 1]
|
||||
+ names = ["foo", "spam", "foo", "foo", "bang"]
|
||||
+ domains = [
|
||||
+ "blah.spam.org", "www.acme.com", "www.acme.com",
|
||||
+ "www.acme.com", ".sol.no"
|
||||
+ ]
|
||||
+ paths = ["/", "/blah", "/blah/", "/", "/"]
|
||||
+ else:
|
||||
+ versions = [1, 1, 1, 0, 1]
|
||||
+ names = ["bang", "foo", "foo", "spam", "foo"]
|
||||
+ domains = [
|
||||
+ ".sol.no", "blah.spam.org", "www.acme.com", "www.acme.com",
|
||||
+ "www.acme.com"
|
||||
+ ]
|
||||
+ paths = ["/", "/", "/", "/blah", "/blah/"]
|
||||
|
||||
# sequential iteration
|
||||
for i in range(4):
|
||||
Reference in New Issue
Block a user