From 59ebd376d6e441358d0fb1de51c3184aa563af141947f2fed26af9448cea0f1b Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 27 May 2025 13:19:49 +0000 Subject: [PATCH] Accepting request 1280554 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1280554 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexx?expand=0&rev=22 --- python-flexx.changes | 5 +++++ python-flexx.spec | 23 ++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/python-flexx.changes b/python-flexx.changes index 85318ed..dbbd7f8 100644 --- a/python-flexx.changes +++ b/python-flexx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 12:29:06 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Sep 28 14:33:05 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-flexx.spec b/python-flexx.spec index 8124a5d..6a6de04 100644 --- a/python-flexx.spec +++ b/python-flexx.spec @@ -1,7 +1,7 @@ # # spec file for package python-flexx # -# Copyright (c) 2022 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,9 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 Name: python-flexx Version: 0.8.4 Release: 0 @@ -31,21 +28,23 @@ BuildRequires: %{python_module certifi} BuildRequires: %{python_module dialite >= 0.5.2} BuildRequires: %{python_module imageio} BuildRequires: %{python_module numpy} -BuildRequires: %{python_module pscript >= 0.7.3} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pscript} BuildRequires: %{python_module pytest} BuildRequires: %{python_module selenium} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tornado >= 4} BuildRequires: %{python_module webruntime >= 0.5.6} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip Requires: python-dialite >= 0.5.2 -Requires: python-pscript >= 0.7.3 +Requires: python-pscript Requires: python-tornado Requires: python-webruntime >= 0.5.6 -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts Recommends: python-imageio Recommends: python-numpy Recommends: python-vispy @@ -66,10 +65,10 @@ document. It also works in the Jupyter notebook. %setup -q -n flexx-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/flexx %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -87,6 +86,8 @@ document. It also works in the Jupyter notebook. %doc README.md %license LICENSE %python_alternative %{_bindir}/flexx -%{python_sitelib}/* +%{python_sitelib}/flexx +%{python_sitelib}/flexxamples +%{python_sitelib}/flexx-%{version}*-info %changelog