From 1c56b4f7dc786585d877c3fc593a692cde82878d398e76ce5d825699b928fc41 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 18 Jan 2021 23:31:54 +0000 Subject: [PATCH 1/4] - Add BuildRequires for python-dataclasses OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bowler?expand=0&rev=8 --- python-bowler.changes | 5 +++++ python-bowler.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-bowler.changes b/python-bowler.changes index e76bec1..e9dd869 100644 --- a/python-bowler.changes +++ b/python-bowler.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 18 23:31:46 UTC 2021 - Matej Cepl + +- Add BuildRequires for python-dataclasses + ------------------------------------------------------------------- Sun Oct 11 07:34:01 UTC 2020 - John Vandenberg diff --git a/python-bowler.spec b/python-bowler.spec index 58c2c10..9bbe973 100644 --- a/python-bowler.spec +++ b/python-bowler.spec @@ -1,7 +1,7 @@ # # spec file for package python-bowler # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -35,8 +35,11 @@ BuildRequires: %{python_module setuptools >= 38.6.0} BuildRequires: %{python_module volatile} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: (python3-dataclasses if python3-base < 3.7) +BuildRequires: (python36-dataclasses if python36-base) Requires: python-attrs Requires: python-click +Requires: python-dataclasses Requires: python-fissix Requires: python-moreorless Requires: python-setuptools From baaa4e0c821b5e87633013def6a649f559bb9db6f221eb7d38f1d9e99d382422 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 18 Jan 2021 23:33:51 +0000 Subject: [PATCH 2/4] Accepting request 864175 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/864175 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bowler?expand=0&rev=9 --- python-bowler.changes | 5 ----- python-bowler.spec | 5 +---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/python-bowler.changes b/python-bowler.changes index e9dd869..e76bec1 100644 --- a/python-bowler.changes +++ b/python-bowler.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Mon Jan 18 23:31:46 UTC 2021 - Matej Cepl - -- Add BuildRequires for python-dataclasses - ------------------------------------------------------------------- Sun Oct 11 07:34:01 UTC 2020 - John Vandenberg diff --git a/python-bowler.spec b/python-bowler.spec index 9bbe973..58c2c10 100644 --- a/python-bowler.spec +++ b/python-bowler.spec @@ -1,7 +1,7 @@ # # spec file for package python-bowler # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -35,11 +35,8 @@ BuildRequires: %{python_module setuptools >= 38.6.0} BuildRequires: %{python_module volatile} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: (python3-dataclasses if python3-base < 3.7) -BuildRequires: (python36-dataclasses if python36-base) Requires: python-attrs Requires: python-click -Requires: python-dataclasses Requires: python-fissix Requires: python-moreorless Requires: python-setuptools From a2a49b6e3470b43818d2fff451754b3942771e0630f8002d60e3b837d476880e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 18 Jan 2021 23:35:49 +0000 Subject: [PATCH 3/4] Run spec-cleaner OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bowler?expand=0&rev=10 --- python-bowler.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-bowler.spec b/python-bowler.spec index 58c2c10..3220520 100644 --- a/python-bowler.spec +++ b/python-bowler.spec @@ -1,7 +1,7 @@ # # spec file for package python-bowler # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed From f58267f3e6fecfa47cf244b58e58ce453be1fca1119069f301cd6b2b2b58bc05 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 15 May 2025 15:19:11 +0000 Subject: [PATCH 4/4] Accepting request 1277726 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277726 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bowler?expand=0&rev=11 --- python-bowler.changes | 5 +++++ python-bowler.spec | 18 +++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/python-bowler.changes b/python-bowler.changes index e76bec1..71d90ae 100644 --- a/python-bowler.changes +++ b/python-bowler.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 15 12:11:44 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Oct 11 07:34:01 UTC 2020 - John Vandenberg diff --git a/python-bowler.spec b/python-bowler.spec index 3220520..49824df 100644 --- a/python-bowler.spec +++ b/python-bowler.spec @@ -1,7 +1,7 @@ # # spec file for package python-bowler # -# Copyright (c) 2021 SUSE LLC +# 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 @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-bowler Version: 0.9.0 Release: 0 @@ -31,18 +29,19 @@ BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module click} BuildRequires: %{python_module fissix} BuildRequires: %{python_module moreorless} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 38.6.0} BuildRequires: %{python_module volatile} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-attrs Requires: python-click Requires: python-fissix Requires: python-moreorless -Requires: python-setuptools Requires: python-volatile -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -62,10 +61,10 @@ modifiers as needed to build more complex or custom refactorings. See the %setup -q -n bowler-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/bowler %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -81,7 +80,8 @@ modifiers as needed to build more complex or custom refactorings. See the %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/bowler +%{python_sitelib}/bowler-%{version}*-info %python_alternative %{_bindir}/bowler %changelog