Skip to content

Commit

Permalink
Update frozenlist to 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Foreman Packaging Automation authored and Odilhao committed Oct 25, 2024
1 parent 6f6356e commit 4de387e
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 57cedf60030c16a64fd988376de230652edce1fa Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <[email protected]>
Date: Fri, 15 Dec 2023 08:11:45 -0500
Subject: [PATCH] Downstream-only: Build normal wheels in-place

Upstream wants to build only editable wheels in-place, building normal
wheels in a temporary directory. This is reasonable in principle, but
the implementation conflicts with the pyproject-rpm-macros, resulting in
an unbounded recursion of nested temporary directories.
---
packaging/pep517_backend/_backend.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py
index 8bb2ee2..e640738 100644
--- a/packaging/pep517_backend/_backend.py
+++ b/packaging/pep517_backend/_backend.py
@@ -286,7 +286,7 @@ def build_wheel(
"""
with maybe_prebuild_c_extensions(
line_trace_cython_when_unset=False,
- build_inplace=False,
+ build_inplace=True,
config_settings=config_settings,
):
return _setuptools_build_wheel(
--
2.43.0

1 change: 0 additions & 1 deletion packages/python-frozenlist/frozenlist-1.3.3.tar.gz

This file was deleted.

1 change: 1 addition & 0 deletions packages/python-frozenlist/frozenlist-1.4.1.tar.gz
26 changes: 18 additions & 8 deletions packages/python-frozenlist/python-frozenlist.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
%global pypi_name frozenlist

Name: python-%{pypi_name}
Version: 1.3.3
Release: 5%{?dist}
Version: 1.4.1
Release: 1%{?dist}
Summary: A list-like structure which implements collections

License: Apache 2
URL: https://github.com/aio-libs/frozenlist
Source0: https://files.pythonhosted.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0: 0001-Downstream-only-Build-normal-wheels-in-place.patch

BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-Cython
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-expandvars
BuildRequires: python%{python3_pkgversion}-wheel
BuildRequires: pyproject-rpm-macros


%description
Expand All @@ -32,29 +38,33 @@ Summary: %{summary}

%prep
set -ex
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%autosetup -n %{pypi_name}-%{version} -p1

# Remove Cython-generated sources; we must ensure they are regenerated.
find . -type f -name '*.c' -print -delete


%build
set -ex
%py3_build
%pyproject_wheel


%install
set -ex
%py3_install
%pyproject_install


%files -n python%{python3_pkgversion}-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/%{pypi_name}-%{version}.dist-info/


%changelog
* Wed Oct 23 2024 Foreman Packaging Automation <[email protected]> - 1.4.1-1
- Update to 1.4.1

* Tue Jan 16 2024 Odilon Sousa <[email protected]> - 1.3.3-5
- Remove SCL bits

Expand Down

0 comments on commit 4de387e

Please sign in to comment.