From 7387fcbdb730338f9d8a222f12fb5190b67e3b90e8dc6b4c8c5adb37bc659a72 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 23 Jun 2025 01:34:35 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-expects?expand=0&rev=9 --- python-expects.changes | 6 ++++++ python-expects.spec | 15 ++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/python-expects.changes b/python-expects.changes index f1be3e0..895a06f 100644 --- a/python-expects.changes +++ b/python-expects.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 23 01:31:34 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Thu Sep 26 17:58:10 UTC 2024 - Guang Yee diff --git a/python-expects.spec b/python-expects.spec index 7ca52d8..33e6e39 100644 --- a/python-expects.spec +++ b/python-expects.spec @@ -1,7 +1,7 @@ # # spec file for package python-expects # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,10 +22,11 @@ Version: 0.9.0 Release: 0 Summary: Expressive and extensible TDD/BDD assertion library for Python License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/jaimegildesagredo/expects Source: https://files.pythonhosted.org/packages/source/e/expects/expects-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,15 +40,19 @@ Python. Expects can be extended by defining new matchers. %setup -q -n expects-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +#%%check +# This uses its own test runner called mamba, which isn't packaged + %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/expects +%{python_sitelib}/expects-%{version}.dist-info %changelog