From 652952b914da35f6405dad59efe692530fccdcd2a6c32f04fb57f89348b09780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 12:29:04 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-sure revision 7b2e43cbf437d674dd5fcba6ef3fc5e9 --- python-sure.changes | 27 +++++++++++++++++++++++++-- python-sure.spec | 14 ++++++++------ sure-2.0.0.tar.gz | 3 --- sure-2.0.1.tar.gz | 3 +++ 4 files changed, 36 insertions(+), 11 deletions(-) delete mode 100644 sure-2.0.0.tar.gz create mode 100644 sure-2.0.1.tar.gz diff --git a/python-sure.changes b/python-sure.changes index 0407b21..d160c18 100644 --- a/python-sure.changes +++ b/python-sure.changes @@ -1,8 +1,31 @@ +------------------------------------------------------------------- +Tue Mar 26 19:06:01 UTC 2024 - John Paul Adrian Glaubitz + +- Switch build system from setuptools to pyproject.toml + + Add python-pip and python-wheel to BuildRequires + + Replace %python_build with %pyproject_wheel + + Replace %python_install with %pyproject_install + +------------------------------------------------------------------- +Mon Dec 4 10:46:23 UTC 2023 - Dirk Müller + +- update to 2.0.1: + * Fixes CI build (Github Actions) + * Fixes broken tests + * Housekeeping: Licensing + * Disable nosetests for testing leaving only pytest as + supported test-runner for now + +------------------------------------------------------------------- +Tue Jun 13 08:40:27 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + ------------------------------------------------------------------- Wed Jul 13 04:37:13 UTC 2022 - Steve Kowalik - Remove mock from BuildRequires. -- Rebase python-sure-no-mock.patch to remove one missed import. +- Rebase python-sure-no-mock.patch to remove one missed import. ------------------------------------------------------------------- Wed May 4 08:38:45 UTC 2022 - pgajdos@suse.com @@ -57,7 +80,7 @@ Wed Mar 9 11:16:30 UTC 2016 - dvaleev@suse.com - Fix #48. Ready to fast forward, Python 3.4 support again Fixed a grammar nit when two things are not equal - + - When two things are not equal to each other, they “differ from” each other. - fix: #80 AttributeError: 'module' object has no attribute '_CallList' diff --git a/python-sure.spec b/python-sure.spec index a4eeaf5..55bb2dc 100644 --- a/python-sure.spec +++ b/python-sure.spec @@ -1,7 +1,7 @@ # # spec file for package python-sure # -# Copyright (c) 2022 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 @@ -16,9 +16,9 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-sure -Version: 2.0.0 +Version: 2.0.1 Release: 0 Summary: Utility belt for automated testing in python for python License: GPL-3.0-or-later @@ -26,14 +26,16 @@ URL: https://github.com/gabrielfalcao/sure Source: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz # Based on https://github.com/gabrielfalcao/sure/pull/161 Patch0: python-sure-no-mock.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.10.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six >= 1.10.0 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -47,10 +49,10 @@ sed -i '/^#!/d' sure/*.py sed -i 's/--cov=sure//' setup.cfg %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/sure %python_expand %fdupes %{buildroot}%{$python_sitelib} diff --git a/sure-2.0.0.tar.gz b/sure-2.0.0.tar.gz deleted file mode 100644 index e8ac0c3..0000000 --- a/sure-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34ae88c846046742ef074036bf311dc90ab152b7bc09c342b281cebf676727a2 -size 46747 diff --git a/sure-2.0.1.tar.gz b/sure-2.0.1.tar.gz new file mode 100644 index 0000000..3424ea9 --- /dev/null +++ b/sure-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8fc6fabc0e7f6984eeabb942540e45646e5bef0bb99fe59e02da634e4d4b9ca +size 48467