commit 2ce4788d73bf8aed9bcfd83e285ecc1f826a8bcd974fe1564a29fffe6220bc9f Author: Dirk Mueller Date: Wed Sep 10 09:13:29 2025 +0000 - Add py314.patch to fix tests on Python 3.14 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-propcache?expand=0&rev=12 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/propcache-0.3.2.tar.gz b/propcache-0.3.2.tar.gz new file mode 100644 index 0000000..29cde2d --- /dev/null +++ b/propcache-0.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20d7d62e4e7ef05f221e0db2856b979540686342e7dd9973b815599c7057e168 +size 44139 diff --git a/py314.patch b/py314.patch new file mode 100644 index 0000000..45186df --- /dev/null +++ b/py314.patch @@ -0,0 +1,46 @@ +From b97e7e37cbe8329e2a4d8383166c094f471a0d6a Mon Sep 17 00:00:00 2001 +From: Kumar Aditya +Date: Fri, 22 Aug 2025 05:07:08 +0530 +Subject: [PATCH] Test on Python 3.14 (#140) + +* add 3.14 CI + +* add news + +* use ctrace + +* code review + +* [pre-commit.ci] auto fixes from pre-commit.com hooks + +for more information, see https://pre-commit.ci + +* fix coverage + +* sort + +--------- + +Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> +--- + .coveragerc | 3 +++ + .github/workflows/ci-cd.yml | 2 ++ + CHANGES/140.contrib.rst | 1 + + setup.cfg | 1 + + 4 files changed, 7 insertions(+) + create mode 100644 CHANGES/140.contrib.rst + +diff --git a/.coveragerc b/.coveragerc +index fb414a8..520a945 100644 +--- a/.coveragerc ++++ b/.coveragerc +@@ -25,6 +25,9 @@ show_missing = true + + [run] + branch = true ++# Cython.Coverage plugin is not supported on sysmon core which is default on ++# Python 3.14+ so always use ctrace core ++core = ctrace + cover_pylib = false + # https://coverage.rtfd.io/en/latest/contexts.html#dynamic-contexts + # dynamic_context = test_function # conflicts with `pytest-cov` if set here diff --git a/python-propcache.changes b/python-propcache.changes new file mode 100644 index 0000000..288d6d3 --- /dev/null +++ b/python-propcache.changes @@ -0,0 +1,39 @@ +------------------------------------------------------------------- +Tue Sep 9 16:07:53 UTC 2025 - Markéta Machová + +- Add py314.patch to fix tests on Python 3.14 + +------------------------------------------------------------------- +Thu Jun 26 09:43:05 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.3.2 + * Fixed incorrect decorator usage in the :func:~propcache.api.\ + under_cached_property example code -- by :user:meanmail. + * Updated to use Cython 3.1 universally across the build + path -- by :user:lysnikolaou. + * Made Cython line tracing opt-in via the with-cython-tracing + build config setting -- by :user:bdraco. + +------------------------------------------------------------------- +Thu Apr 10 09:44:15 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.3.1 + * Improved typing annotations, fixing some type errors under correct usage + and improving typing robustness generally -- by :user:`Dreamsorcerer`. + +------------------------------------------------------------------- +Thu Mar 13 15:49:55 UTC 2025 - Felix Stegmeier + +- Update to 0.3.0 + * Implemented support for the free-threaded build of CPython 3.13 -- by :user:lysnikolaou. + +------------------------------------------------------------------- +Sun Oct 13 11:54:18 UTC 2024 - Bernhard Wiedemann + +- 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 + +- Initial build + * Version 0.2.0 diff --git a/python-propcache.spec b/python-propcache.spec new file mode 100644 index 0000000..12494b5 --- /dev/null +++ b/python-propcache.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-propcache +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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.3.2 +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 +# PATCH-FIX-UPSTREAM https://github.com/aio-libs/propcache/commit/b97e7e37cbe8329e2a4d8383166c094f471a0d6a Test on Python 3.14 +Patch1: py314.patch +BuildRequires: %{python_module Cython >= 3.0.11} +BuildRequires: %{python_module covdefaults} +BuildRequires: %{python_module expandvars} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools >= 47} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%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 diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..6c4fb40 --- /dev/null +++ b/reproducible.patch @@ -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(