python-traitlets/python-traitlets.spec
Benjamin Greiner 6eae1f4da1 Accepting request 980912 from home:bnavigator:branches:devel:languages:python:jupyter
- Update to 5.2.2
  * Make all explicit and validate in test by @blink1073 in #737
  * Fix KeyError in Application.get_default_logging_config by
    @tonyroberts in #724
- Release 5.2.1
  * Switch to hatch backend by @blink1073 in #728
  * logging: don't attempt to close handlers unless they have been
    opened by @oliver-sanders in #727
- Release 5.2.0
  * Add mypy support by @blink1073 in #705
  * Disambiguate the use of the term value in the example. by
    @metaperl in #694
  * Correct spelling and grammar errors. by @metaperl in #695
  * DOC: Add log example by @Carreau in #693
  * Put description of signature_has_traits after the header for
    it. by @metaperl in #711
  * Application: add logging_config trait by @oliver-sanders in
    #698
  * [DOC] Give explicit list of private symbols for 5.0 by @vidartf
    in #692
  * Add pre-commit and run auto-formatters by @blink1073 in #699
  * Fix downstream test by @blink1073 in #701
  * Add docs on pre-commit and use manual hooks where appropriate
    by @blink1073 in #700
  * Set up flake8 by @blink1073 in #703
  * Typing: tell mypy we have type, update all. by @Carreau in #713
  * Improve CI by @blink1073 in #706
  * Fix typing errors by @blink1073 in #718
  * Use flit build backend by @blink1073 in #720
  * Add Changelog Entry for 5.2.0 by @blink1073 in #717

OBS-URL: https://build.opensuse.org/request/show/980912
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-traitlets?expand=0&rev=10
2022-06-05 17:06:21 +00:00

63 lines
1.9 KiB
RPMSpec

#
# spec file for package python-traitlets
#
# Copyright (c) 2022 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/
#
Name: python-traitlets
Version: 5.2.2
Release: 0
Summary: Traitlets Python configuration system
License: BSD-3-Clause
URL: https://github.com/ipython/traitlets
Source: https://files.pythonhosted.org/packages/source/t/traitlets/traitlets-%{version}.tar.gz
# PATCH-FIX-UPSTREAM traitlets-pr739-fixversion.patch -- gh#ipython/traitlets#739
Patch1: https://github.com/ipython/traitlets/pull/739.patch#/traitlets-pr739-fixversion.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatchling >= 0.25}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-hatchling >= 0.25
BuildArch: noarch
%python_subpackages
%description
A configuration system for Python applications.
%prep
%autosetup -p1 -n traitlets-%{version}
sed -i 's/--color yes//' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%doc examples/
%license COPYING.md
%{python_sitelib}/traitlets/
%{python_sitelib}/traitlets-%{version}*-info
%changelog