From 25aeb79c8fc677a75581a4b2a00485e8401c95678c4bfc0389fe0fc2fcb2f3dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 11 Sep 2024 06:36:03 +0000 Subject: [PATCH 1/2] Added macro to fix build error on Leap 15.6 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-overrides?expand=0&rev=11 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + overrides-7.7.0.tar.gz | 3 ++ python-overrides.changes | 35 +++++++++++++++++++++ python-overrides.spec | 68 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 overrides-7.7.0.tar.gz create mode 100644 python-overrides.changes create mode 100644 python-overrides.spec 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/overrides-7.7.0.tar.gz b/overrides-7.7.0.tar.gz new file mode 100644 index 0000000..0afa6a5 --- /dev/null +++ b/overrides-7.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55158fa3d93b98cc75299b1e67078ad9003ca27945c76162c1c0766d6f91820a +size 22812 diff --git a/python-overrides.changes b/python-overrides.changes new file mode 100644 index 0000000..abc474f --- /dev/null +++ b/python-overrides.changes @@ -0,0 +1,35 @@ +------------------------------------------------------------------- +Tue Sep 05 12:04:56 UTC 2024 - Caroline Sena + +- update to 7.7.0: + * Added macro to fix build error on Leap 15.6 + +------------------------------------------------------------------- +Tue Jan 30 18:05:38 UTC 2024 - Dirk Müller + +- update to 7.7.0: + * Fixing https://github.com/mkorpela/overrides/issues/121 + +------------------------------------------------------------------- +Mon Jan 22 22:29:19 UTC 2024 - Dirk Müller + +- update to 7.6.0: + * Fixing bytecode handling in 3.12 + +------------------------------------------------------------------- +Sat Jan 20 19:26:25 UTC 2024 - Dirk Müller + +- update to 7.5.0: + * Fix _is_same_module() on PyPy + +------------------------------------------------------------------- +Tue Dec 12 13:18:19 UTC 2023 - Dirk Müller + +- update to 7.4.0: + * Support PEP 604 _Allow writing union types as X | Y_ + +------------------------------------------------------------------- +Sun Jun 11 20:45:59 UTC 2023 - Ben Greiner + +- Initial specfile for v7.3.1 +- Required by python-jupyter-server 2.6 diff --git a/python-overrides.spec b/python-overrides.spec new file mode 100644 index 0000000..5b48b68 --- /dev/null +++ b/python-overrides.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-overrides +# +# 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-overrides +Version: 7.7.0 +Release: 0 +Summary: A decorator to automatically detect mismatch when overriding a method +License: Apache-2.0 +URL: https://github.com/mkorpela/overrides +Source: https://files.pythonhosted.org/packages/source/o/overrides/overrides-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +A decorator @override that verifies that a method that should override +an inherited method actually does it. + +Copies the docstring of the inherited method to the overridden method. + +Since signature validation and docstring inheritance are performed on +class creation and not on class instantiation, this library significantly +improves the safety and experience of creating class hierarchies in Python +without significantly impacting performance. +See https://stackoverflow.com/q/1167617 for the initial inspiration for +this library. + +%prep +%autosetup -p1 -n overrides-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/overrides +%{python_sitelib}/overrides-%{version}.dist-info + +%changelog From 24179c21851722821914e3461ff990366b5ea151308eafbaa22ee74304e9fc34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 11 Sep 2024 06:37:19 +0000 Subject: [PATCH 2/2] fix changelog OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-overrides?expand=0&rev=12 --- python-overrides.changes | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python-overrides.changes b/python-overrides.changes index abc474f..0fba8e6 100644 --- a/python-overrides.changes +++ b/python-overrides.changes @@ -1,8 +1,7 @@ ------------------------------------------------------------------- Tue Sep 05 12:04:56 UTC 2024 - Caroline Sena -- update to 7.7.0: - * Added macro to fix build error on Leap 15.6 +- Added macro to fix build error on Leap 15.6 ------------------------------------------------------------------- Tue Jan 30 18:05:38 UTC 2024 - Dirk Müller