17
0
Files
python-traitsui/python-traitsui.spec

89 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-traitsui
#
2023-11-17 09:48:20 +00:00
# Copyright (c) 2023 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/
#
Accepting request 820871 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 7.0.0 * Documentation improvements (#720, #724, #723, #778) * WxPython 4 compatibility and support (#708, #736, #762, #772, #775, #776) * Traits 6 compatibility and enhancements (#689, #690, #693, #695, #713, #727, #770) * Style improvements (#648, #771) * Add placeholder text option for TextEditor (#735) * Examples clean-up and unification (#697, #702, #703, #705, #711, #712, #777) * Add a DatetimeEditor (#719, #730) * Refactor and clean-up of base Editor class (#685, #686, #688) * Remove use of Category classes from TraitsUI (#654) * Add LEDEditor for Qt (#635) * Add 'docs' command to etstool.py (#624) * Add TabularAdapter to traitsui.api (#627) * Enhancements to CI and testing (#683, #714, #740) * Documentation fixes (#546, #766) * Fix cgi.escape for Python 3.8 (#780) * Log exceptions in table sorting (#751) * Use TupleEditor for traits derived from BaseTuple (#747) * Fixes for Undo/Redo (#733) * Add explicit redraw for TableEditor selection (#721) * Fixes for Qt5 support (#709) * Fix bugs in color functions (#707, #744) * Fix importing of ProgressColumn and EditColumn (#691) * Set initial focus item correctly in Qt (#602) * Fix text elision test on some platforms (#644) * Fix a bug with TableEditor column clicking (#669) * Fix typo in progress column exception (#662) OBS-URL: https://build.opensuse.org/request/show/820871 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=9
2020-07-14 12:40:50 +00:00
%define skip_python2 1
Name: python-traitsui
2023-11-17 09:48:20 +00:00
Version: 8.0.0
Release: 0
Summary: Traits-capable windowing framework
# Source code is under BSD but images are under different licenses
# and details are inside image_LICENSE.txt
License: BSD-3-Clause AND EPL-1.0 AND LGPL-2.1-only AND LGPL-3.0-only
Group: Development/Libraries/Python
URL: https://github.com/enthought/traitsui
Source: https://files.pythonhosted.org/packages/source/t/traitsui/traitsui-%{version}.tar.gz
BuildRequires: %{python_module configobj}
2023-11-17 09:48:20 +00:00
BuildRequires: %{python_module pip}
Accepting request 946811 from home:bnavigator:branches:devel:languages:python:numeric - Update to 7.2.1 * Explicitly require traits 6.2 and pyface 7.3 (#1666, #1668) - Release 7.2.0 * TraitsUI 7.2.0 is a minor release which includes numerous bug fixes, documentation improvements, code maintenance changes, and enhancements. * The migration from on_trait_change to observe is underway. As a result, TraitsUI now requires Traits >= 6.2. * New display-only VideoEditor (currently only on Qt backend). Exapnsion of features for the new UITester including the ability to inspect UI object visibility / enabledness. Also documentation for testing has been updated. * Notes on upgrading: This release of TraitsUI now depends on Traits 6.2+ and pyface 7.2+. Also, deprecated code / modules have been removed. Namely, the :mod:traitsui.image <traitsui.image> module which was moved to pyface.image, editors_gen modules, Editor and EditorFactory factory methods on Toolkit objects, and more. For a complete list, see PRs in the "Removals" section. These were all generally unused / deprecated for sometime. Also, importing directly from traitsui.editors has been deprecated. Please update imports to import directly from :mod:traitsui.api or :mod:traitsui.editors.api. - Detailed changelog at https://github.com/enthought/traitsui/releases/tag/7.2.0 - Add traitsui-pr1689-deprecations.patch * gh#enthought/traitsui#1689 + gh#enthought/traitsui#1681 OBS-URL: https://build.opensuse.org/request/show/946811 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=15
2022-01-17 06:32:07 +00:00
BuildRequires: %{python_module pyface >= 7.3}
BuildRequires: %{python_module traits >= 6.2}
2023-11-17 09:48:20 +00:00
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 946811 from home:bnavigator:branches:devel:languages:python:numeric - Update to 7.2.1 * Explicitly require traits 6.2 and pyface 7.3 (#1666, #1668) - Release 7.2.0 * TraitsUI 7.2.0 is a minor release which includes numerous bug fixes, documentation improvements, code maintenance changes, and enhancements. * The migration from on_trait_change to observe is underway. As a result, TraitsUI now requires Traits >= 6.2. * New display-only VideoEditor (currently only on Qt backend). Exapnsion of features for the new UITester including the ability to inspect UI object visibility / enabledness. Also documentation for testing has been updated. * Notes on upgrading: This release of TraitsUI now depends on Traits 6.2+ and pyface 7.2+. Also, deprecated code / modules have been removed. Namely, the :mod:traitsui.image <traitsui.image> module which was moved to pyface.image, editors_gen modules, Editor and EditorFactory factory methods on Toolkit objects, and more. For a complete list, see PRs in the "Removals" section. These were all generally unused / deprecated for sometime. Also, importing directly from traitsui.editors has been deprecated. Please update imports to import directly from :mod:traitsui.api or :mod:traitsui.editors.api. - Detailed changelog at https://github.com/enthought/traitsui/releases/tag/7.2.0 - Add traitsui-pr1689-deprecations.patch * gh#enthought/traitsui#1689 + gh#enthought/traitsui#1681 OBS-URL: https://build.opensuse.org/request/show/946811 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=15
2022-01-17 06:32:07 +00:00
Requires: python-pyface >= 7.3
Requires: python-traits >= 6.2
Accepting request 820871 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 7.0.0 * Documentation improvements (#720, #724, #723, #778) * WxPython 4 compatibility and support (#708, #736, #762, #772, #775, #776) * Traits 6 compatibility and enhancements (#689, #690, #693, #695, #713, #727, #770) * Style improvements (#648, #771) * Add placeholder text option for TextEditor (#735) * Examples clean-up and unification (#697, #702, #703, #705, #711, #712, #777) * Add a DatetimeEditor (#719, #730) * Refactor and clean-up of base Editor class (#685, #686, #688) * Remove use of Category classes from TraitsUI (#654) * Add LEDEditor for Qt (#635) * Add 'docs' command to etstool.py (#624) * Add TabularAdapter to traitsui.api (#627) * Enhancements to CI and testing (#683, #714, #740) * Documentation fixes (#546, #766) * Fix cgi.escape for Python 3.8 (#780) * Log exceptions in table sorting (#751) * Use TupleEditor for traits derived from BaseTuple (#747) * Fixes for Undo/Redo (#733) * Add explicit redraw for TableEditor selection (#721) * Fixes for Qt5 support (#709) * Fix bugs in color functions (#707, #744) * Fix importing of ProgressColumn and EditColumn (#691) * Set initial focus item correctly in Qt (#602) * Fix text elision test on some platforms (#644) * Fix a bug with TableEditor column clicking (#669) * Fix typo in progress column exception (#662) OBS-URL: https://build.opensuse.org/request/show/820871 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=9
2020-07-14 12:40:50 +00:00
Recommends: python-configobj
Recommends: python-qt5
Recommends: python-wxWidgets
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Pygments}
Accepting request 946811 from home:bnavigator:branches:devel:languages:python:numeric - Update to 7.2.1 * Explicitly require traits 6.2 and pyface 7.3 (#1666, #1668) - Release 7.2.0 * TraitsUI 7.2.0 is a minor release which includes numerous bug fixes, documentation improvements, code maintenance changes, and enhancements. * The migration from on_trait_change to observe is underway. As a result, TraitsUI now requires Traits >= 6.2. * New display-only VideoEditor (currently only on Qt backend). Exapnsion of features for the new UITester including the ability to inspect UI object visibility / enabledness. Also documentation for testing has been updated. * Notes on upgrading: This release of TraitsUI now depends on Traits 6.2+ and pyface 7.2+. Also, deprecated code / modules have been removed. Namely, the :mod:traitsui.image <traitsui.image> module which was moved to pyface.image, editors_gen modules, Editor and EditorFactory factory methods on Toolkit objects, and more. For a complete list, see PRs in the "Removals" section. These were all generally unused / deprecated for sometime. Also, importing directly from traitsui.editors has been deprecated. Please update imports to import directly from :mod:traitsui.api or :mod:traitsui.editors.api. - Detailed changelog at https://github.com/enthought/traitsui/releases/tag/7.2.0 - Add traitsui-pr1689-deprecations.patch * gh#enthought/traitsui#1689 + gh#enthought/traitsui#1681 OBS-URL: https://build.opensuse.org/request/show/946811 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=15
2022-01-17 06:32:07 +00:00
BuildRequires: %{python_module numpy}
Accepting request 874785 from home:bnavigator:branches:devel:languages:python:numeric - Update to 7.1.1 * Fix scrollable trait of a Group not being implemented on Qt (#1406) * Fix icon button's clickable area too small for FileEditor and RangeEditor on Qt and OSX (#1383) * Fix missing minimize and maximize buttons for dialogs opened on certain Linux platforms (#1409) - Release 7.1.0 Highlights of this release * A new traitsui.testing.api module has been introduced for testing GUI applications built using TraitsUI. See Testing TraitsUI Applications for an introduction. Builtin support has been added for testing several TraitsUI editors. More support will be added in the future. * On OSX and Qt, there have been reports of missing UI view updates after a push button is clicked. While this is suspected to be a Qt issue, changes have been made to ButtonEditor, SetEditor and ImageEnumEditor to mitigate the situation. * The internal logic for disposing an instance traitsui.ui.UI is changed as an attempt to resolve AttributeError that occurs while a nested UI is removed. Notes on upgrading * On the issue about Qt button not causing views to update on OSX, projects that have been working around the issue by adding GUI().process_events() (or similar) in their applications may now try to remove those workarounds. However, the change that mitigates the issue in a production environment has implications for tests: The button's click slot is no longer invoked immediately but always invoked by OBS-URL: https://build.opensuse.org/request/show/874785 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=13
2021-02-24 14:28:34 +00:00
BuildRequires: %{python_module pytest-xvfb}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module qt5}
Accepting request 820871 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 7.0.0 * Documentation improvements (#720, #724, #723, #778) * WxPython 4 compatibility and support (#708, #736, #762, #772, #775, #776) * Traits 6 compatibility and enhancements (#689, #690, #693, #695, #713, #727, #770) * Style improvements (#648, #771) * Add placeholder text option for TextEditor (#735) * Examples clean-up and unification (#697, #702, #703, #705, #711, #712, #777) * Add a DatetimeEditor (#719, #730) * Refactor and clean-up of base Editor class (#685, #686, #688) * Remove use of Category classes from TraitsUI (#654) * Add LEDEditor for Qt (#635) * Add 'docs' command to etstool.py (#624) * Add TabularAdapter to traitsui.api (#627) * Enhancements to CI and testing (#683, #714, #740) * Documentation fixes (#546, #766) * Fix cgi.escape for Python 3.8 (#780) * Log exceptions in table sorting (#751) * Use TupleEditor for traits derived from BaseTuple (#747) * Fixes for Undo/Redo (#733) * Add explicit redraw for TableEditor selection (#721) * Fixes for Qt5 support (#709) * Fix bugs in color functions (#707, #744) * Fix importing of ProgressColumn and EditColumn (#691) * Set initial focus item correctly in Qt (#602) * Fix text elision test on some platforms (#644) * Fix a bug with TableEditor column clicking (#669) * Fix typo in progress column exception (#662) OBS-URL: https://build.opensuse.org/request/show/820871 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=9
2020-07-14 12:40:50 +00:00
BuildRequires: %{python_module wxPython >= 4}
BuildRequires: Mesa-dri
# /SECTION
%python_subpackages
%description
The TraitsGUI project contains a toolkit-independent GUI abstraction layer
(known as Pyface), which is used to support the "visualization" features of
the Traits package. Thus, you can write code in terms of the Traits API
(views, items, editors, etc.), and let TraitsGUI and your selected toolkit
and back-end take care of the details of displaying them.
Part of the Enthought Tool Suite (ETS).
%prep
Accepting request 946811 from home:bnavigator:branches:devel:languages:python:numeric - Update to 7.2.1 * Explicitly require traits 6.2 and pyface 7.3 (#1666, #1668) - Release 7.2.0 * TraitsUI 7.2.0 is a minor release which includes numerous bug fixes, documentation improvements, code maintenance changes, and enhancements. * The migration from on_trait_change to observe is underway. As a result, TraitsUI now requires Traits >= 6.2. * New display-only VideoEditor (currently only on Qt backend). Exapnsion of features for the new UITester including the ability to inspect UI object visibility / enabledness. Also documentation for testing has been updated. * Notes on upgrading: This release of TraitsUI now depends on Traits 6.2+ and pyface 7.2+. Also, deprecated code / modules have been removed. Namely, the :mod:traitsui.image <traitsui.image> module which was moved to pyface.image, editors_gen modules, Editor and EditorFactory factory methods on Toolkit objects, and more. For a complete list, see PRs in the "Removals" section. These were all generally unused / deprecated for sometime. Also, importing directly from traitsui.editors has been deprecated. Please update imports to import directly from :mod:traitsui.api or :mod:traitsui.editors.api. - Detailed changelog at https://github.com/enthought/traitsui/releases/tag/7.2.0 - Add traitsui-pr1689-deprecations.patch * gh#enthought/traitsui#1689 + gh#enthought/traitsui#1681 OBS-URL: https://build.opensuse.org/request/show/946811 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=15
2022-01-17 06:32:07 +00:00
%autosetup -p1 -n traitsui-%{version}
%build
2023-11-17 09:48:20 +00:00
%pyproject_wheel
%install
2023-11-17 09:48:20 +00:00
%pyproject_install
Accepting request 874785 from home:bnavigator:branches:devel:languages:python:numeric - Update to 7.1.1 * Fix scrollable trait of a Group not being implemented on Qt (#1406) * Fix icon button's clickable area too small for FileEditor and RangeEditor on Qt and OSX (#1383) * Fix missing minimize and maximize buttons for dialogs opened on certain Linux platforms (#1409) - Release 7.1.0 Highlights of this release * A new traitsui.testing.api module has been introduced for testing GUI applications built using TraitsUI. See Testing TraitsUI Applications for an introduction. Builtin support has been added for testing several TraitsUI editors. More support will be added in the future. * On OSX and Qt, there have been reports of missing UI view updates after a push button is clicked. While this is suspected to be a Qt issue, changes have been made to ButtonEditor, SetEditor and ImageEnumEditor to mitigate the situation. * The internal logic for disposing an instance traitsui.ui.UI is changed as an attempt to resolve AttributeError that occurs while a nested UI is removed. Notes on upgrading * On the issue about Qt button not causing views to update on OSX, projects that have been working around the issue by adding GUI().process_events() (or similar) in their applications may now try to remove those workarounds. However, the change that mitigates the issue in a production environment has implications for tests: The button's click slot is no longer invoked immediately but always invoked by OBS-URL: https://build.opensuse.org/request/show/874785 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=13
2021-02-24 14:28:34 +00:00
%python_expand %fdupes %{buildroot}%{$python_sitelib}
ln -sf examples/tutorials/doc_exmaples/default.css examples/tutorials/traitsui_4.0/default.css
%check
export LANG=en_US.UTF-8
Accepting request 874785 from home:bnavigator:branches:devel:languages:python:numeric - Update to 7.1.1 * Fix scrollable trait of a Group not being implemented on Qt (#1406) * Fix icon button's clickable area too small for FileEditor and RangeEditor on Qt and OSX (#1383) * Fix missing minimize and maximize buttons for dialogs opened on certain Linux platforms (#1409) - Release 7.1.0 Highlights of this release * A new traitsui.testing.api module has been introduced for testing GUI applications built using TraitsUI. See Testing TraitsUI Applications for an introduction. Builtin support has been added for testing several TraitsUI editors. More support will be added in the future. * On OSX and Qt, there have been reports of missing UI view updates after a push button is clicked. While this is suspected to be a Qt issue, changes have been made to ButtonEditor, SetEditor and ImageEnumEditor to mitigate the situation. * The internal logic for disposing an instance traitsui.ui.UI is changed as an attempt to resolve AttributeError that occurs while a nested UI is removed. Notes on upgrading * On the issue about Qt button not causing views to update on OSX, projects that have been working around the issue by adding GUI().process_events() (or similar) in their applications may now try to remove those workarounds. However, the change that mitigates the issue in a production environment has implications for tests: The button's click slot is no longer invoked immediately but always invoked by OBS-URL: https://build.opensuse.org/request/show/874785 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=13
2021-02-24 14:28:34 +00:00
# different splitters?
donttest="test_splitter_prefs_are_restored"
2023-11-17 09:48:20 +00:00
%pytest traitsui/tests -k "not (${donttest})"
%files %{python_files}
Accepting request 874785 from home:bnavigator:branches:devel:languages:python:numeric - Update to 7.1.1 * Fix scrollable trait of a Group not being implemented on Qt (#1406) * Fix icon button's clickable area too small for FileEditor and RangeEditor on Qt and OSX (#1383) * Fix missing minimize and maximize buttons for dialogs opened on certain Linux platforms (#1409) - Release 7.1.0 Highlights of this release * A new traitsui.testing.api module has been introduced for testing GUI applications built using TraitsUI. See Testing TraitsUI Applications for an introduction. Builtin support has been added for testing several TraitsUI editors. More support will be added in the future. * On OSX and Qt, there have been reports of missing UI view updates after a push button is clicked. While this is suspected to be a Qt issue, changes have been made to ButtonEditor, SetEditor and ImageEnumEditor to mitigate the situation. * The internal logic for disposing an instance traitsui.ui.UI is changed as an attempt to resolve AttributeError that occurs while a nested UI is removed. Notes on upgrading * On the issue about Qt button not causing views to update on OSX, projects that have been working around the issue by adding GUI().process_events() (or similar) in their applications may now try to remove those workarounds. However, the change that mitigates the issue in a production environment has implications for tests: The button's click slot is no longer invoked immediately but always invoked by OBS-URL: https://build.opensuse.org/request/show/874785 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=13
2021-02-24 14:28:34 +00:00
%doc README.rst
%doc docs/traits*.*
%doc examples/
%license LICENSE.txt image_LICENSE*.txt
%{python_sitelib}/traitsui/
Accepting request 946811 from home:bnavigator:branches:devel:languages:python:numeric - Update to 7.2.1 * Explicitly require traits 6.2 and pyface 7.3 (#1666, #1668) - Release 7.2.0 * TraitsUI 7.2.0 is a minor release which includes numerous bug fixes, documentation improvements, code maintenance changes, and enhancements. * The migration from on_trait_change to observe is underway. As a result, TraitsUI now requires Traits >= 6.2. * New display-only VideoEditor (currently only on Qt backend). Exapnsion of features for the new UITester including the ability to inspect UI object visibility / enabledness. Also documentation for testing has been updated. * Notes on upgrading: This release of TraitsUI now depends on Traits 6.2+ and pyface 7.2+. Also, deprecated code / modules have been removed. Namely, the :mod:traitsui.image <traitsui.image> module which was moved to pyface.image, editors_gen modules, Editor and EditorFactory factory methods on Toolkit objects, and more. For a complete list, see PRs in the "Removals" section. These were all generally unused / deprecated for sometime. Also, importing directly from traitsui.editors has been deprecated. Please update imports to import directly from :mod:traitsui.api or :mod:traitsui.editors.api. - Detailed changelog at https://github.com/enthought/traitsui/releases/tag/7.2.0 - Add traitsui-pr1689-deprecations.patch * gh#enthought/traitsui#1689 + gh#enthought/traitsui#1681 OBS-URL: https://build.opensuse.org/request/show/946811 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=15
2022-01-17 06:32:07 +00:00
%{python_sitelib}/traitsui-%{version}*-info
%changelog