17
0
Files
python-traitsui/python-traitsui.spec
Matej Cepl 354e0bfa57 - Update to 8.0.0:
- This is a major release that provides support for PySide
    6.4 and 6.5 as well as Python 3.11. It includes a number
    of backwards-incompatible changes following the example of
    Pyface 8.0.0, most notable is moving the traitsui.qt4.*
    modules to traitsui.qt.*. As with Pyface 8.0 we include a
    backwards-compatibility mode which allows importing from the
    'qt4' namespace via:
    - setting the ETS toolkit to "qt4"
    - setting the ETS_QT4_IMPORTS environment variable
    - manually adding appropriate finders to sys.meta_path
    - Be strict about 'handler.init()' return values
    - Move 'traitsui.qt4.' to 'traitsui.qt.'
    - Remove deprecated 'format' trait
    - Deprecate imports from traitsui.editors (use
      traitsui.editors.api)
    - Remove backwards-compatibility mode in undo/redo code
    - Support for Python 3.11 and PySide 6.4+
    - Fix uses of None in date range editor
    - Add comments for Wx-only examples
    - Replace uses of "fast_ui" dispatch with "ui" dispatch
    - Fix FileDialog selection actions
    - Fix regression in Wx version of FileEditor
    - Fix missing attribute of InstanceFactoryChocie
    - Replace some relative imports in tests
- Update to 7.4.3:
  - This is a small bugfix release which resolves some bugs that
    have come to light as we get more experience with PySide
    6, together with changes to run CI on more recent Python
    versions and current Github infrastructure.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-traitsui?expand=0&rev=16
2023-11-17 09:48:20 +00:00

89 lines
3.0 KiB
RPMSpec

#
# spec file for package python-traitsui
#
# 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/
#
%define skip_python2 1
Name: python-traitsui
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}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyface >= 7.3}
BuildRequires: %{python_module traits >= 6.2}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pyface >= 7.3
Requires: python-traits >= 6.2
Recommends: python-configobj
Recommends: python-qt5
Recommends: python-wxWidgets
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest-xvfb}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module qt5}
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
%autosetup -p1 -n traitsui-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%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
# different splitters?
donttest="test_splitter_prefs_are_restored"
%pytest traitsui/tests -k "not (${donttest})"
%files %{python_files}
%doc README.rst
%doc docs/traits*.*
%doc examples/
%license LICENSE.txt image_LICENSE*.txt
%{python_sitelib}/traitsui/
%{python_sitelib}/traitsui-%{version}*-info
%changelog