From 13202a89e412a3fb52b37bd6408809a9202b4396ddeaaf31e56978589d6800dc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 18 Jan 2019 10:41:40 +0000 Subject: [PATCH] - 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 request * Preserve header ordering when making HTTP requests * Fix processing of http-equiv meta tags incorrectly lower casing the content * Fix error when a textbox contained within a form contains unicode characters - Add missing BR for testing (Twisted and zope.interface) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mechanize?expand=0&rev=34 --- mechanize-0.3.6.tar.gz | 3 --- mechanize-0.4.0.tar.gz | 3 +++ python-mechanize.changes | 15 +++++++++++++++ python-mechanize.spec | 12 +++++++----- 4 files changed, 25 insertions(+), 8 deletions(-) delete mode 100644 mechanize-0.3.6.tar.gz create mode 100644 mechanize-0.4.0.tar.gz diff --git a/mechanize-0.3.6.tar.gz b/mechanize-0.3.6.tar.gz deleted file mode 100644 index 3acf78e..0000000 --- a/mechanize-0.3.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:654e705157156c1f316601ea4f7ab27e96713a8a4dabe1604e6cc8d48e0aa1e8 -size 201845 diff --git a/mechanize-0.4.0.tar.gz b/mechanize-0.4.0.tar.gz new file mode 100644 index 0000000..7989c37 --- /dev/null +++ b/mechanize-0.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6eb35881e08436dfba2db00abec98fe948ec25122edee77589ef060fc747e595 +size 201003 diff --git a/python-mechanize.changes b/python-mechanize.changes index f5e4999..4813ddd 100644 --- a/python-mechanize.changes +++ b/python-mechanize.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +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 + request + * Preserve header ordering when making HTTP requests + * Fix processing of http-equiv meta tags incorrectly lower casing + the content + * Fix error when a textbox contained within a form contains + unicode characters +- Add missing BR for testing (Twisted and zope.interface) + ------------------------------------------------------------------- Wed Aug 29 10:46:11 UTC 2018 - tchvatal@suse.com diff --git a/python-mechanize.spec b/python-mechanize.spec index be0867f..56b3949 100644 --- a/python-mechanize.spec +++ b/python-mechanize.spec @@ -1,7 +1,7 @@ # # spec file for package python-mechanize # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,15 +12,14 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%define skip_python3 1 %define modname mechanize %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-%{modname} -Version: 0.3.6 +Version: 0.4.0 Release: 0 Summary: Stateful programmatic web browsing License: (BSD-3-Clause OR ZPL-2.1) AND BSD-3-Clause @@ -29,6 +28,9 @@ URL: https://github.com/python-mechanize/mechanize Source: https://files.pythonhosted.org/packages/source/m/mechanize/%{modname}-%{version}.tar.gz BuildRequires: %{python_module html5lib} BuildRequires: %{python_module setuptools} +# For testing +BuildRequires: %{python_module Twisted} +BuildRequires: %{python_module zope.interface} BuildRequires: fdupes BuildRequires: python BuildRequires: python-rpm-macros @@ -65,7 +67,7 @@ sed -i "1d" examples/forms/{echo.cgi,example.py,simple.py} # Fix doc-file-depend %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand $python ./run_tests.py +%python_expand $python ./run_tests.py -v %files %{python_files} %license LICENSE