Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mechanize for openSUSE:Factory checked in at 2022-08-01 21:33:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mechanize (Old) and /work/SRC/openSUSE:Factory/.python-mechanize.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mechanize" Mon Aug 1 21:33:06 2022 rev:28 rq:992065 version:0.4.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mechanize/python-mechanize.changes 2022-07-26 19:44:27.499490625 +0200 +++ /work/SRC/openSUSE:Factory/.python-mechanize.new.1533/python-mechanize.changes 2022-08-01 21:34:15.410320547 +0200 @@ -1,0 +2,16 @@ +Mon Aug 1 14:36:49 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Reference upstream patch in specfile for future updates +- Remove catchall in files section that would have found the + mistake +- Update shebang fix commands +- Fix requirements +- Update description + +------------------------------------------------------------------- +Sun Jul 31 21:25:20 UTC 2022 - ecsos <ec...@opensuse.org> + +- Add python-mechanize-setup.cfg.patch to fix mechanize not + found during build. (boo#1202003) + +------------------------------------------------------------------- New: ---- python-mechanize-setup.cfg.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mechanize.spec ++++++ --- /var/tmp/diff_new_pack.ey8SNd/_old 2022-08-01 21:34:15.974322165 +0200 +++ /var/tmp/diff_new_pack.ey8SNd/_new 2022-08-01 21:34:15.982322188 +0200 @@ -25,6 +25,8 @@ 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 +Patch1: %{name}-setup.cfg.patch BuildRequires: %{python_module Twisted} BuildRequires: %{python_module html5lib} BuildRequires: %{python_module setuptools} @@ -32,33 +34,22 @@ BuildRequires: fdupes BuildRequires: python BuildRequires: python-rpm-macros -Requires: python-Twisted Requires: python-html5lib -Requires: python-zope.interface BuildArch: noarch %python_subpackages %description -Stateful programmatic web browsing, after Andy Lester's Perl module -WWW::Mechanize. +Stateful programmatic web browsing in Python. Browse pages +programmatically with HTML form filling and clicking +of links. -The library is layered: mechanize.Browser (stateful web browser), -mechanize.UserAgent (configurable URL opener), plus urllib2 handlers. - -Features include: ftp:, http: and file: URL schemes, browser history, -high-level hyperlink and HTML form support, HTTP cookies, HTTP-EQUIV and -Refresh, Referer [sic] header, robots.txt, redirections, proxies, and Basic and -Digest HTTP authentication. mechanize's response objects are (lazily-) -.seek()able and still work after .close(). - -Much of the code originally derived from Perl code by Gisle Aas (libwww-perl), -Johnny Lee (MSIE Cookie support) and last but not least Andy Lester -(WWW::Mechanize). urllib2 was written by Jeremy Hylton. %prep %setup -q -n %{modname}-%{version} -sed -i -e '/^#!\/usr\/bin\/env python/d' %{modname}/_{entities,equiv,form_controls}.py -sed -i "1d" examples/forms/{echo.cgi,example.py,simple.py} # Fix doc-file-dependency +%patch1 -p1 +sed -i -e '1{/^#!\/usr\/bin\/env python/d}' %{modname}/{_entities,_equiv,_form_controls,polyglot}.py +sed -i -e '1{/^#!/d}' examples/forms/{echo.cgi,example.py,simple.py} +chmod -x examples/forms/{echo.cgi,example.py,simple.py} %build %python_build @@ -73,6 +64,7 @@ %files %{python_files} %license LICENSE %doc examples README.rst -%{python_sitelib}/%{modname}* +%{python_sitelib}/%{modname} +%{python_sitelib}/%{modname}-%{version}*-info %changelog ++++++ python-mechanize-setup.cfg.patch ++++++ >From a14ecec7abcd8da9b55d28a6d9ebfd89ce635615 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu <lw...@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