Sync from SUSE:SLFO:Main python-propcache revision 57a8ceb3124e389f1591d40d41840f65

This commit is contained in:
Adrian Schröter 2024-12-13 11:58:29 +01:00
commit 9e6131228f
5 changed files with 114 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
propcache-0.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

10
python-propcache.changes Normal file
View File

@ -0,0 +1,10 @@
-------------------------------------------------------------------
Sun Oct 13 11:54:18 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch to not embed a random tmpdir in binaries (boo#1062303)
-------------------------------------------------------------------
Wed Oct 9 07:35:20 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Initial build
* Version 0.2.0

65
python-propcache.spec Normal file
View File

@ -0,0 +1,65 @@
#
# spec file for package python-propcache
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-propcache
Version: 0.2.0
Release: 0
Summary: Accelerated property cache
License: Apache-2.0
URL: https://github.com/aio-libs/propcache
Source: https://files.pythonhosted.org/packages/source/p/propcache/propcache-%{version}.tar.gz
Patch0: reproducible.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module Cython >= 3.0.11}
BuildRequires: %{python_module expandvars}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 47}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module covdefaults}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: fdupes
%python_subpackages
%description
Accelerated property cache
%prep
%autosetup -p1 -n propcache-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
find %{_builddir} -name ".gitignore" -delete
find %{_builddir} -name ".TEMPLATE.rst" -delete
}
%check
%pytest_arch
%files %{python_files}
%doc CHANGES CHANGES.rst CHANGES/README.rst README.rst
%license LICENSE
%{python_sitearch}/propcache
%{python_sitearch}/propcache-%{version}.dist-info
%changelog

13
reproducible.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py
index 7245be9..ad4dd85 100644
--- a/packaging/pep517_backend/_backend.py
+++ b/packaging/pep517_backend/_backend.py
@@ -321,7 +321,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(