14 Commits

Author SHA256 Message Date
f53b4e952d Accepting request 1286800 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1286800
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yarl?expand=0&rev=36
2025-06-20 14:48:11 +00:00
62e993ab73 - update to 1.20.1:
* Started raising a :exc:`ValueError` exception raised for
    corrupted IPv6 URL values. These fixes the issue where
    exception :exc:`IndexError` was leaking from the internal
    code because of not being handled and transformed into a
    user-facing error. The problem was happening under the
    following conditions: empty IPv6 URL, brackets in reverse
    order. -- by :user:`MaelPic`. Related issues and pull
    requests on GitHub: :issue:`1512`.
  * Updated to use Cython 3.1 universally across the build path
    -- by :user:`lysnikolaou`. Related issues and pull requests
    on GitHub: :issue:`1514`.
  * Made Cython line tracing opt-in via the with-cython-tracing
    build config setting -- by :user:`bdraco`. Previously, line
    tracing was enabled by default in :file:`pyproject.toml`,
    which caused build issues for some users and made wheels
    nearly twice as slow. Now line tracing is only enabled when
    explicitly requested via pip install . --config-setting=with-
    cython-tracing=true or by setting the YARL_CYTHON_TRACING
    environment variable. Related issues and pull requests on
    GitHub: :issue:`1521`.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=78
2025-06-11 21:30:02 +00:00
e644b4eb4a Accepting request 1272933 from devel:languages:python
- update to 1.20.0:
  * Implemented support for the free-threaded build of CPython
    3.13
  * Started building wheels for the free-threaded build of
    CPython 3.13
  * Fixed entire name being re-encoded when using
    :py:meth:`yarl.URL.with_suffix`
  * Started building armv7l wheels for manylinux
  * GitHub Actions CI/CD is now configured to manage caching pip-
    ecosystem dependencies using re-actors/cache-python-deps --
    an action by :user:`webknjaz` that takes into account ABI
    stability and the exact version of Python runtime.
  * Increased minimum propcache version to 0.2.1 to fix failing
    tests
  * Added all hidden folders to pytest's norecursedirs to prevent
    it from trying to collect tests there
  * Improved accuracy of type annotations
  * Improved performance of parsing query strings
  * Improved performance of the C unquoter

OBS-URL: https://build.opensuse.org/request/show/1272933
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yarl?expand=0&rev=35
2025-04-28 14:16:14 +00:00
6701d40f99 - update to 1.20.0:
* Implemented support for the free-threaded build of CPython
    3.13
  * Started building wheels for the free-threaded build of
    CPython 3.13
  * Fixed entire name being re-encoded when using
    :py:meth:`yarl.URL.with_suffix`
  * Started building armv7l wheels for manylinux
  * GitHub Actions CI/CD is now configured to manage caching pip-
    ecosystem dependencies using re-actors/cache-python-deps --
    an action by :user:`webknjaz` that takes into account ABI
    stability and the exact version of Python runtime.
  * Increased minimum propcache version to 0.2.1 to fix failing
    tests
  * Added all hidden folders to pytest's norecursedirs to prevent
    it from trying to collect tests there
  * Improved accuracy of type annotations
  * Improved performance of parsing query strings
  * Improved performance of the C unquoter

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=76
2025-04-27 08:57:09 +00:00
41d32a5938 Accepting request 1248800 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1248800
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yarl?expand=0&rev=34
2025-02-27 13:49:07 +00:00
09aa7b4317 Accepting request 1248774 from home:mcalabkova:branches:devel:languages:python
- Delete pytest.ini
  * hypothesis added a warning about pytest not looking into its hidden 
    working directory
  * warnings were treated as errors here
  * resolving both problems by returning to default pytest settings

OBS-URL: https://build.opensuse.org/request/show/1248774
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=74
2025-02-26 20:53:42 +00:00
bf15480efc Accepting request 1228522 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1228522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yarl?expand=0&rev=33
2024-12-06 13:25:13 +00:00
849ad9cae4 Accepting request 1228519 from home:dgarcia:branches:devel:languages:python
- Update to 1.18.3:
  * Fixed uppercase ASCII hosts being rejected by :meth:URL.build()
    <yarl.URL.build> and :py:meth:~yarl.URL.with_host -- by :user:bdraco.
  * Improved performances of multiple path properties on cache miss --
    by :user:bdraco.
1.18.0:
  * Added keep_query and keep_fragment flags in the
    :py:meth:yarl.URL.with_path, :py:meth:yarl.URL.with_name and
    :py:meth:yarl.URL.with_suffix methods, allowing users to
    optionally retain the query string and fragment in the resulting
    URL when replacing the path -- by :user:paul-nameless.
1.17.2:
  * Stopped implicitly allowing the use of Cython pre-release versions when
    building the distribution package -- by :user:ajsanchezsanz and
    :user:markgreene74.
  * Fixed a bug causing :attr:~yarl.URL.port to return the default
    port when the given port was zero -- by :user:gmacon.
  * Make error messages include details of incorrect type when port is
    not int in :py:meth:~yarl.URL.build. -- by :user:Cycloctane.
  * Stopped implicitly allowing the use of Cython pre-release versions when
    building the distribution package -- by :user:ajsanchezsanz and
    :user:markgreene74.
  * Improved performance of the :py:meth:~yarl.URL.joinpath method --
    by :user:bdraco.
1.17.1:
  * Improved performance of many URL methods – by @bdraco.
  * Improved performance of passing a dict or str to extend_query() –
    by @bdraco.
1.17.0:
  * Added host_port_subcomponent which returns the RFC 3986 Section

OBS-URL: https://build.opensuse.org/request/show/1228519
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=72
2024-12-05 13:29:27 +00:00
1f6b95e7a4 Accepting request 1206598 from devel:languages:python
- Update to 1.14.0
  * Switched to using the :mod:`propcache <propcache.api>`
    package for property caching
  * Started testing with Hypothesis
  * Improved performance of :py:meth:`~yarl.URL.is_default_port`
    when no explicit port is set
  * Improved performance of converting :class:`~yarl.URL` to
    a string when no explicit port is set
  * Improved performance of the :py:meth:`~yarl.URL.origin` method
  * Improved performance of encoding hosts
- from version 1.13.1
  * Improved performance of calling :py:meth:`~yarl.URL.build`
    with ``authority``
- from version 1.13.0
  * Started rejecting ASCII hostnames with invalid characters. For
    host strings that look like authority strings, the exception
    message includes advice on what to do instead
  * Fixed IPv6 addresses missing brackets when the :class:`~yarl.URL`
    was converted to a string
  * Added :attr:`~yarl.URL.host_subcomponent` which returns
    the :rfc:`3986#section-3.2.2` host subcomponent
- Update BuildRequires from requirements/test.txt

OBS-URL: https://build.opensuse.org/request/show/1206598
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yarl?expand=0&rev=32
2024-10-11 15:01:22 +00:00
214ab58807 Add missing Requires
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=70
2024-10-10 02:54:09 +00:00
dde186b5f6 Accepting request 1206469 from home:glaubitz:branches:devel:languages:python
- Update to 1.14.0
  * Switched to using the :mod:`propcache <propcache.api>`
    package for property caching
  * Started testing with Hypothesis
  * Improved performance of :py:meth:`~yarl.URL.is_default_port`
    when no explicit port is set
  * Improved performance of converting :class:`~yarl.URL` to
    a string when no explicit port is set
  * Improved performance of the :py:meth:`~yarl.URL.origin` method
  * Improved performance of encoding hosts
- from version 1.13.1
  * Improved performance of calling :py:meth:`~yarl.URL.build`
    with ``authority``
- from version 1.13.0
  * Started rejecting ASCII hostnames with invalid characters. For
    host strings that look like authority strings, the exception
    message includes advice on what to do instead
  * Fixed IPv6 addresses missing brackets when the :class:`~yarl.URL`
    was converted to a string
  * Added :attr:`~yarl.URL.host_subcomponent` which returns
    the :rfc:`3986#section-3.2.2` host subcomponent
- Update BuildRequires from requirements/test.txt

OBS-URL: https://build.opensuse.org/request/show/1206469
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=69
2024-10-09 08:04:00 +00:00
499707b319 Accepting request 1203564 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1203564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yarl?expand=0&rev=31
2024-10-01 15:11:04 +00:00
0e2043d26a Accepting request 1203547 from home:nkrapp:branches:devel:languages:python
- update to 1.12.1
- update to 1.12.0
  * Added attr `~yarl.URL.path_safe` to be able to fetch the 
    path without %2F and %25 decoded
  * Restore decoding %2F (/) in URL.path
  * Improved performance of processing paths

OBS-URL: https://build.opensuse.org/request/show/1203547
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=67
2024-09-25 12:26:12 +00:00
448c5e3974 Accepting request 1198415 from system:homeautomation:home-assistant:unstable
- updaze to 1.9.7:
  * Removed support :rfc:3986#section-3.2.3 port normalization
    when the scheme is not one of http, https, wss, or ws
  * Joining URLs with empty segments has been changed
    to match :rfc:3986

OBS-URL: https://build.opensuse.org/request/show/1198415
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=66
2024-09-03 12:37:53 +00:00
4 changed files with 210 additions and 7 deletions

View File

@@ -1,3 +1,197 @@
-------------------------------------------------------------------
Wed Jun 11 21:29:35 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 1.20.1:
* Started raising a :exc:`ValueError` exception raised for
corrupted IPv6 URL values. These fixes the issue where
exception :exc:`IndexError` was leaking from the internal
code because of not being handled and transformed into a
user-facing error. The problem was happening under the
following conditions: empty IPv6 URL, brackets in reverse
order. -- by :user:`MaelPic`. Related issues and pull
requests on GitHub: :issue:`1512`.
* Updated to use Cython 3.1 universally across the build path
-- by :user:`lysnikolaou`. Related issues and pull requests
on GitHub: :issue:`1514`.
* Made Cython line tracing opt-in via the with-cython-tracing
build config setting -- by :user:`bdraco`. Previously, line
tracing was enabled by default in :file:`pyproject.toml`,
which caused build issues for some users and made wheels
nearly twice as slow. Now line tracing is only enabled when
explicitly requested via pip install . --config-setting=with-
cython-tracing=true or by setting the YARL_CYTHON_TRACING
environment variable. Related issues and pull requests on
GitHub: :issue:`1521`.
-------------------------------------------------------------------
Sun Apr 27 08:56:06 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 1.20.0:
* Implemented support for the free-threaded build of CPython
3.13
* Started building wheels for the free-threaded build of
CPython 3.13
* Fixed entire name being re-encoded when using
:py:meth:`yarl.URL.with_suffix`
* Started building armv7l wheels for manylinux
* GitHub Actions CI/CD is now configured to manage caching pip-
ecosystem dependencies using re-actors/cache-python-deps --
an action by :user:`webknjaz` that takes into account ABI
stability and the exact version of Python runtime.
* Increased minimum propcache version to 0.2.1 to fix failing
tests
* Added all hidden folders to pytest's norecursedirs to prevent
it from trying to collect tests there
* Improved accuracy of type annotations
* Improved performance of parsing query strings
* Improved performance of the C unquoter
-------------------------------------------------------------------
Wed Feb 26 16:53:22 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Delete pytest.ini
* hypothesis added a warning about pytest not looking into its hidden
working directory
* warnings were treated as errors here
* resolving both problems by returning to default pytest settings
-------------------------------------------------------------------
Thu Dec 5 12:10:05 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 1.18.3:
* Fixed uppercase ASCII hosts being rejected by :meth:URL.build()
<yarl.URL.build> and :py:meth:~yarl.URL.with_host -- by :user:bdraco.
* Improved performances of multiple path properties on cache miss --
by :user:bdraco.
1.18.0:
* Added keep_query and keep_fragment flags in the
:py:meth:yarl.URL.with_path, :py:meth:yarl.URL.with_name and
:py:meth:yarl.URL.with_suffix methods, allowing users to
optionally retain the query string and fragment in the resulting
URL when replacing the path -- by :user:paul-nameless.
1.17.2:
* Stopped implicitly allowing the use of Cython pre-release versions when
building the distribution package -- by :user:ajsanchezsanz and
:user:markgreene74.
* Fixed a bug causing :attr:~yarl.URL.port to return the default
port when the given port was zero -- by :user:gmacon.
* Make error messages include details of incorrect type when port is
not int in :py:meth:~yarl.URL.build. -- by :user:Cycloctane.
* Stopped implicitly allowing the use of Cython pre-release versions when
building the distribution package -- by :user:ajsanchezsanz and
:user:markgreene74.
* Improved performance of the :py:meth:~yarl.URL.joinpath method --
by :user:bdraco.
1.17.1:
* Improved performance of many URL methods by @bdraco.
* Improved performance of passing a dict or str to extend_query()
by @bdraco.
1.17.0:
* Added host_port_subcomponent which returns the RFC 3986 Section
3.2.2 host and RFC 3986 Section 3.2.3 port subcomponent by
@bdraco.
1.16.0:
* Fixed blocking I/O to load Python code when creating a new URL
with non-ascii characters in the network location part by
@bdraco.
* Migrated to using a single cache for encoding hosts by @bdraco.
* Passing ip_address_size and host_validate_size to
cache_configure() is deprecated in favor of the new
encode_host_size parameter and will be removed in a future
release. For backwards compatibility, the old parameters affect
the encode_host cache size.
* Improved performance of constructing URL by @bdraco.
* Improved performance of calling build() and constructing unencoded
URL by @bdraco.
* Reworked the internal encoding cache to improve performance on
cache hit by @bdraco.
1.15.5:
* Improved performance of the joinpath() method by @bdraco.
* Improved performance of the extend_query() method by @bdraco.
* Improved performance of the origin() method by @bdraco.
* Improved performance of the with_path() method by @bdraco.
* Improved performance of the with_query() method by @bdraco.
* Improved performance of the update_query() method by @bdraco.
* Improved performance of the join() method by @bdraco.
* Improved performance of URL equality checks by @bdraco.
* Improved performance of URL methods that modify the network location by @bdraco.
* Improved performance of the with_fragment() method by @bdraco.
* Improved performance of calculating the hash of URL objects by @bdraco.
* Improved performance of the relative() method by @bdraco.
* Improved performance of the with_name() method by @bdraco.
* Improved performance of parent by @bdraco.
* Improved performance of the with_scheme() method by @bdraco.
1.15.4:
* Improved performance of the quoter when all characters are safe by @bdraco.
* Improved performance of unquoting strings by @bdraco.
* Improved performance of calling build() by @bdraco.
1.15.3:
* Fixed build() failing to validate paths must start with a / when
passing authority by @bdraco.
* Removed support for Python 3.8 as it has reached end of life by @bdraco.
* Improved performance of constructing URL when the net location is
only the host by @bdraco.
1.15.2:
* Improved performance of converting URL to a string by @bdraco.
* Improved performance of joinpath() by @bdraco.
* Improved performance of constructing query strings from MultiDict by @bdraco.
* Improved performance of constructing query strings with int values by @bdraco.
1.15.1:
* Improved performance of calling build() by @bdraco.
* Improved performance of all URL methods that create new URL objects by @bdraco.
* Improved performance of URL methods that modify the network location by @bdraco.
1.15.0:
* Fixed validation with with_scheme() when passed scheme is not lowercase by @bdraco.
* Improved performance of constructing unencoded URL objects by @bdraco.
* Added a cache for parsing hosts to reduce overhead of encoding URL by @bdraco.
* Improved performance of constructing query strings from Mapping by @bdraco.
* Improved performance of converting URL objects to strings by @bdraco.
-------------------------------------------------------------------
Wed Oct 9 07:39:46 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.14.0
* Switched to using the :mod:`propcache <propcache.api>`
package for property caching
* Started testing with Hypothesis
* Improved performance of :py:meth:`~yarl.URL.is_default_port`
when no explicit port is set
* Improved performance of converting :class:`~yarl.URL` to
a string when no explicit port is set
* Improved performance of the :py:meth:`~yarl.URL.origin` method
* Improved performance of encoding hosts
- from version 1.13.1
* Improved performance of calling :py:meth:`~yarl.URL.build`
with ``authority``
- from version 1.13.0
* Started rejecting ASCII hostnames with invalid characters. For
host strings that look like authority strings, the exception
message includes advice on what to do instead
* Fixed IPv6 addresses missing brackets when the :class:`~yarl.URL`
was converted to a string
* Added :attr:`~yarl.URL.host_subcomponent` which returns
the :rfc:`3986#section-3.2.2` host subcomponent
- Update BuildRequires from requirements/test.txt
-------------------------------------------------------------------
Wed Sep 25 11:36:24 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
- update to 1.12.1
- update to 1.12.0
* Added attr `~yarl.URL.path_safe` to be able to fetch the
path without %2F and %25 decoded
* Restore decoding %2F (/) in URL.path
* Improved performance of processing paths
-------------------------------------------------------------------
Tue Sep 3 06:46:22 UTC 2024 - Adrian Schröter <adrian@suse.de>
- updaze to 1.9.7:
* Removed support :rfc:3986#section-3.2.3 port normalization
when the scheme is not one of http, https, wss, or ws
* Joining URLs with empty segments has been changed
to match :rfc:3986
-------------------------------------------------------------------
Tue Mar 12 10:35:11 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-yarl
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-yarl
Version: 1.9.4
Version: 1.20.1
Release: 0
Summary: Yet another URL library
License: Apache-2.0
@@ -31,8 +31,9 @@ BuildRequires: %{python_module expandvars}
BuildRequires: %{python_module idna >= 2.0}
# test requirements
BuildRequires: %{python_module multidict >= 4.0}
BuildRequires: %{python_module hypothesis >= 6.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module propcache >= 0.2.0}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
@@ -40,6 +41,7 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-idna >= 2.0
Requires: python-multidict >= 4.0
Requires: python-propcache >= 0.2.0
%python_subpackages
%description
@@ -48,6 +50,12 @@ The module provides a URL class for url parsing and changing.
%prep
%autosetup -p1 -n yarl-%{version}
sed -i '/addopts/d' setup.cfg
# Remove pytest_cov build requirement
sed -i 's/-p pytest_cov/-p no:pytest_cov/' pytest.ini
sed -i '/--cov/d' pytest.ini
# hypothesis warns about norecursedirs, but warnings are treated as errors. Resolving both problems.
rm pytest.ini
%build
export CFLAGS="%{optflags} -Wno-return-type"
@@ -58,7 +66,8 @@ export CFLAGS="%{optflags} -Wno-return-type"
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%pytest_arch
# Ignore benchmarks tests that requires pytest-codspeed package
%pytest_arch --ignore tests/test_url_benchmarks.py --ignore tests/test_quoting_benchmarks.py
%files %{python_files}
%license LICENSE

3
yarl-1.20.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d017a4997ee50c91fd5466cef416231bb82177b93b029906cefc542ce14c35ac
size 186428

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:566db86717cf8080b99b58b083b773a908ae40f06681e87e589a976faf8246bf
size 141869