Accepting request 1138583 from devel:languages:python

- update to 1.9.4:
  * Started raising :py:exc:`TypeError` when a string value is
    passed into :py:meth:`~yarl.URL.build` as the port argument
    -- by :user:`commonism`. Previously the empty string as port
    would create malformed URLs when rendered as string
    representations.
  * Started raising :py:exc:`TypeError` when a string value is
    passed into :py:meth:`~yarl.URL.build` as the port argument
  * Previously the empty string as port would create malformed
    URLs when rendered as string representations. (:issue:`883`)
  * The leading -- has been dropped from the PEP 517 in-tree
    build backend config setting names. --pure-python is now just
    pure-python -- by :user:`webknjaz`. The usage now looks as
    follows:  $ python -m build \     --config-setting=pure-
    python=true \     --config-setting=with-cython-tracing=true
    (:issue:`963`)
  * The leading -- has been dropped from the PEP 517 in-tree
    build backend config setting names. --pure-python is now just
    pure-python -- by :user:`webknjaz`.
  * It is now possible to request line tracing in Cython builds
    using the with-cython-tracing PEP 517 config setting --
    :user:`webknjaz`. This can be used in CI and development
    environment to measure coverage on Cython modules, but is not
    normally useful to the end-users or downstream packagers.
    Here's a usage example:  $ python -Im pip install . --config-
    settings=with-cython-tracing=true  For editable installs,
    this setting is on by default. Otherwise, it's off unless
    requested explicitly. (:issue:`962`)
- drop reproducible.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1138583
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yarl?expand=0&rev=28
This commit is contained in:
Ana Guerrero 2024-01-15 21:11:17 +00:00 committed by Git OBS Bridge
commit c6e84c9e81
5 changed files with 41 additions and 29 deletions

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Sun Jan 14 15:08:48 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.9.4:
* Started raising :py:exc:`TypeError` when a string value is
passed into :py:meth:`~yarl.URL.build` as the port argument
-- by :user:`commonism`. Previously the empty string as port
would create malformed URLs when rendered as string
representations.
* Started raising :py:exc:`TypeError` when a string value is
passed into :py:meth:`~yarl.URL.build` as the port argument
* Previously the empty string as port would create malformed
URLs when rendered as string representations. (:issue:`883`)
* The leading -- has been dropped from the PEP 517 in-tree
build backend config setting names. --pure-python is now just
pure-python -- by :user:`webknjaz`. The usage now looks as
follows: $ python -m build \ --config-setting=pure-
python=true \ --config-setting=with-cython-tracing=true
(:issue:`963`)
* The leading -- has been dropped from the PEP 517 in-tree
build backend config setting names. --pure-python is now just
pure-python -- by :user:`webknjaz`.
* It is now possible to request line tracing in Cython builds
using the with-cython-tracing PEP 517 config setting --
:user:`webknjaz`. This can be used in CI and development
environment to measure coverage on Cython modules, but is not
normally useful to the end-users or downstream packagers.
Here's a usage example: $ python -Im pip install . --config-
settings=with-cython-tracing=true For editable installs,
this setting is on by default. Otherwise, it's off unless
requested explicitly. (:issue:`962`)
- drop reproducible.patch (upstream)
-------------------------------------------------------------------
Tue Dec 12 03:44:58 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-yarl
#
# Copyright (c) 2023 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
@ -18,13 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-yarl
Version: 1.9.3
Version: 1.9.4
Release: 0
Summary: Yet another URL library
License: Apache-2.0
URL: https://github.com/aio-libs/yarl/
Source: https://files.pythonhosted.org/packages/source/y/yarl/yarl-%{version}.tar.gz
Patch0: reproducible.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module expandvars}
@ -32,6 +31,8 @@ BuildRequires: %{python_module idna >= 2.0}
# test requirements
BuildRequires: %{python_module multidict >= 4.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
@ -62,6 +63,6 @@ export CFLAGS="%{optflags} -Wno-return-type"
%license LICENSE
%doc CHANGES.rst README.rst
%{python_sitearch}/yarl
%{python_sitearch}/yarl-%{version}*-info
%{python_sitearch}/yarl-%{version}.dist-info
%changelog

View File

@ -1,22 +0,0 @@
Date: 2023-12-12
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Make package build reproducible
For this we avoid the use of a random tmp path
that gets embedded into
/usr/lib64/python3.10/site-packages/yarl/_quoting_c.cpython-310-x86_64-linux-gnu.so
diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py
index 9360598..8731ed1 100644
--- a/packaging/pep517_backend/_backend.py
+++ b/packaging/pep517_backend/_backend.py
@@ -323,7 +323,7 @@ def build_wheel(
"""
with maybe_prebuild_c_extensions(
- build_inplace=False,
+ build_inplace=True,
config_settings=config_settings,
):
return _setuptools_build_wheel(

View File

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

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

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