From cbeab2cd3b8b27c7edff1d57faa16ee5ba2fb0c4a6e59d401fedeb408edb32fb Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Wed, 4 Jun 2025 14:32:27 +0000 Subject: [PATCH] - fix usage of libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexx?expand=0&rev=24 --- .gitattributes | 23 +++++++ .gitignore | 1 + flexx-0.8.4.tar.gz | 3 + python-flexx.changes | 146 +++++++++++++++++++++++++++++++++++++++++++ python-flexx.spec | 92 +++++++++++++++++++++++++++ 5 files changed, 265 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 flexx-0.8.4.tar.gz create mode 100644 python-flexx.changes create mode 100644 python-flexx.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/flexx-0.8.4.tar.gz b/flexx-0.8.4.tar.gz new file mode 100644 index 0000000..9df9ec0 --- /dev/null +++ b/flexx-0.8.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08763c61514625082302bd9e196721be0040c83000481f433c6872345ce4a7e3 +size 386533 diff --git a/python-flexx.changes b/python-flexx.changes new file mode 100644 index 0000000..dc84cf1 --- /dev/null +++ b/python-flexx.changes @@ -0,0 +1,146 @@ +------------------------------------------------------------------- +Wed Jun 4 14:19:24 UTC 2025 - Felix Stegmeier + +- fix usage of libalternatives + +------------------------------------------------------------------- +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 + +- Update to 0.8.4: + There are small typos in: + - docs/guide/widget_basics.rst + - flexx/app/_session.py + - flexx/app/tests/test_asset.py + - flexx/event/_js.py + - flexx/event/_reaction.py + - flexx/ui/_widget.py + - flexx/util/tests/test_config.py + - flexxamples/howtos/echarts_example.py + - flexxamples/testers/tricky_events.py + Fixes: + - Should read `precedence` rather than `precedense`. + - Should read `assets` rather than `assests`. + - Should read `simultaneously` rather than `simultenously`. + - Should read `service` rather than `survice`. + - Should read `occurrence` rather than `occurance`. + - Should read `eliminate` rather than `elliminate`. + - Should read `declarative` rather than `declerative`. + - Should read `children` rather than `childen`. + - Should read `capturing` rather than `caputuring`. + - Should read `aggregated` rather than `agregated`. + Some measures against memory leakage (#725) + * fix memleak + * help prevent rise in memory + * quick check to see if this causes the ci test error + * nope, error was already there + * fix ci? + Fix introducion of faulty JS (#710) + Fix CI glitch properly (#706) + Fix CI glitches (#705) + +------------------------------------------------------------------- +Sat Jan 15 15:58:42 UTC 2022 - Dirk Müller + +- update to 0.8.3: + * Fixed a bug where with the latest PScript (0.7.6) + Flexx wont start in the browser + +------------------------------------------------------------------- +Wed Sep 1 09:06:12 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 0.8.2 + * Support for Python 3.9. + * More symmetry between Py and Js widgets (#698) + * A Flask server backend. + * CI uses GH Actions instead of Travis. +- from version 0.8.1 + * Support for Python 3.8. + * Support for latest Tornado (includes a workaround for py38+win). + * Several fixes to various widgets. + * Various fixes to the docs. + * A few new examples. +- Update BuildRequires and Requires from setup.py + +------------------------------------------------------------------- +Tue Feb 23 10:06:21 UTC 2021 - Dirk Müller + +- skip python 3.6 build (no numpy) + +------------------------------------------------------------------- +Tue May 26 06:34:17 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Tue May 7 10:39:18 UTC 2019 - pgajdos@suse.com + +- version update to 0.8.0 + * Adds a `PyWidget` class that can be used as a base class for your high-level + widgets. Because it is a PyComponent, this makes it much easier to write apps + that fully work in Python (desktop-like apps). + * The ``FormLayout`` uses CSS ``grid`` instead of ````. + * A new ``GridLayout`` widget. + * A new ``MultiLineEdit`` widget. + * Improvements to docs and guide. + * Support for freezing Flexx apps to standalone executables (via PyInstaller). + +------------------------------------------------------------------- +Fri Mar 22 14:22:42 UTC 2019 - Tomáš Chvátal + +- Fix the URL + +------------------------------------------------------------------- +Tue Mar 19 15:25:35 UTC 2019 - Tomáš Chvátal + +- Update to 0.7.1: + * Improved shutdown behavior (#533). + * Small fix in App.export (#532). + * Fix bahevior when navigating back to a Flexx app (#536). + * New examples for Openlayers and including local assets (by @ocobacho). + * Tests, demos and readme are included in the sdist, helping packaging on Linux (by @toddrme2178). + * Some performance tweaks which should help in larger applications. + * Add outernode attribute in TreeItem` widget, enabling more powerful subclasses. + * The Combobox is smarter about the placement of the "dropdown". + * A new RangeSlider widget. + +------------------------------------------------------------------- +Tue Dec 4 12:48:09 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon Oct 29 15:58:48 UTC 2018 - Todd R + +- Update to version 0.6.2 + * Bugfix in combobox. + * BSDF check dtype in JS. +- Update to version 0.6.0 + * Add ``Widget.minsize_from_children`` property (#497). + * Update BSDF (data serialization). + * Widgets van be orphaned upon initialization by setting parent to None (#493) + * Some internal improvements on the dropdown widget. +- Update to version 0.5.0 + * A major refactoring of the event system. + * We spun out the PyScript transpiler into the PScript project, as well + as the webruntime and dialite project. This means that Flexx itself + is focussed on the GUI aspect alone. + * Added touch support. + * Dropped the depency on Phosphor.js. + * A new combined namespace: ``from flexx import flx``. + * A proper guide in the docs. + * More examples. + +------------------------------------------------------------------- +Sat Mar 3 16:15:44 UTC 2018 - jengelh@inai.de + +- Summary and description improvements. + +------------------------------------------------------------------- +Fri Dec 1 18:33:09 UTC 2017 - toddrme2178@gmail.com + +- intial version diff --git a/python-flexx.spec b/python-flexx.spec new file mode 100644 index 0000000..cdb21f8 --- /dev/null +++ b/python-flexx.spec @@ -0,0 +1,92 @@ +# +# spec file for package python-flexx +# +# 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 +# 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/ +# + + +%bcond_without libalternatives +Name: python-flexx +Version: 0.8.4 +Release: 0 +Summary: Python toolkit for creating graphical user interfaces +License: BSD-2-Clause +Group: Development/Languages/Python +URL: https://github.com/flexxui/flexx +Source: https://files.pythonhosted.org/packages/source/f/flexx/flexx-%{version}.tar.gz +BuildRequires: %{python_module certifi} +BuildRequires: %{python_module dialite >= 0.5.2} +BuildRequires: %{python_module imageio} +BuildRequires: %{python_module numpy} +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: alts +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +Requires: alts +Requires: python-dialite >= 0.5.2 +Requires: python-pscript +Requires: python-tornado +Requires: python-webruntime >= 0.5.6 +Recommends: python-imageio +Recommends: python-numpy +Recommends: python-vispy +BuildArch: noarch +%python_subpackages + +%description +Flexx is a pure Python toolkit for creating graphical user interfaces +(GUIs), that uses web technology for its rendering. Apps are written +purely in Python; Flexx's transpiler generates the necessary JavaScript +on the fly. + +Flexx can be used to create (cross platform) desktop applications, web +applications, and (if designed well) export an app to a standalone HTML +document. It also works in the Jupyter notebook. + +%prep +%setup -q -n flexx-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/flexx +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Do not run tests, they require online access to jquery/etc. +#%%pytest + +%pre +# Removing old update-alternatives entries. +%python_libalternatives_reset_alternative flexx + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/flexx +%{python_sitelib}/flexx +%{python_sitelib}/flexxamples +%{python_sitelib}/flexx-%{version}*-info + +%changelog