forked from pool/python-w3lib
- update to 2.1.2:
* Fix test failures on Python 3.11.4+ (#212, #213). * Fix an incorrect type hint (#211). * Add project URLs to setup.py (#215). * Dropped Python 3.6 support, and made Python 3.11 support official. * :func:`~w3lib.url.safe_url_string` now generates safer URLs. * :func:`~w3lib.url.canonicalize_url` now strips spaces from the input URL, to be more in line with the `URL living standard`_. * :func:`~w3lib.html.get_base_url` now ignores HTML comments. * Fixed :func:`~w3lib.url.safe_url_string` re-encoding percent signs on the URL username and password even when they were being used as part of an escape sequence. (#187, #196) * Fixed :func:`~w3lib.http.basic_auth_header` using the wrong flavor of base64 encoding, which could prevent authentication in rare cases. * Python 2 is no longer supported; * The ``w3lib.form`` module is removed. * The ``w3lib.html.remove_entities`` function is removed. * The ``w3lib.url.urljoin_rfc`` function is removed. * The following functions are deprecated, and will be removed in future releases * Type annotations are added (#172, #184). * Added support for Python 3.9 and 3.10 (#168, #176). * Fixed :func:`w3lib.html.get_meta_refresh` for ``<meta>`` tags where ``http-equiv`` is written after ``content`` (#179). * Fixed :func:`w3lib.url.safe_url_string` for IDNA domains with ports (#174). * :func:`w3lib.url.url_query_cleaner` no longer adds an OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-w3lib?expand=0&rev=22
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-w3lib
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,20 +16,15 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-w3lib
|
||||
Version: 1.22.0
|
||||
Version: 2.1.2
|
||||
Release: 0
|
||||
Summary: Library of Web-Related Functions
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/scrapy/w3lib
|
||||
Source: https://files.pythonhosted.org/packages/source/w/w3lib/w3lib-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM 166-add-xfail-test_add_or_replace_parameter_fail.patch mcepl@suse.com
|
||||
# Allow working with Python fixed CVE-2021-23336
|
||||
Patch0: 166-add-xfail-test_add_or_replace_parameter_fail.patch
|
||||
# https://github.com/scrapy/w3lib/commit/c16d7bac3af3148b7018c67ef7922a5da6b3e640
|
||||
Patch1: python-w3lib-no-six.patch
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
|
||||
Reference in New Issue
Block a user