2018-08-28 10:25:17 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-jaraco.logging
|
|
|
|
#
|
2023-12-16 22:20:07 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-08-28 10:25:17 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-27 09:26:01 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-28 10:25:17 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-12-16 22:20:07 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-08-28 10:25:17 +02:00
|
|
|
Name: python-jaraco.logging
|
2023-12-27 11:52:49 +01:00
|
|
|
Version: 3.3.0
|
2018-08-28 10:25:17 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Tools to work with logging
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2020-03-09 16:00:43 +01:00
|
|
|
URL: https://github.com/jaraco/jaraco.logging
|
2018-08-28 10:25:17 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.logging/jaraco.logging-%{version}.tar.gz
|
2023-12-16 22:20:07 +01:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2022-08-29 21:41:28 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-08-28 10:25:17 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2022-08-29 21:41:28 +02:00
|
|
|
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
2018-08-28 10:25:17 +02:00
|
|
|
BuildRequires: %{python_module tempora}
|
2022-08-29 21:41:28 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-02-27 09:26:01 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-tempora
|
2018-08-28 10:25:17 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
jaraco.logging Tools for working with logging.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n jaraco.logging-%{version}
|
|
|
|
rm -rf jaraco.logging.egg-info
|
|
|
|
|
|
|
|
%build
|
2022-08-29 21:41:28 +02:00
|
|
|
%pyproject_wheel
|
2018-08-28 10:25:17 +02:00
|
|
|
|
|
|
|
%install
|
2022-08-29 21:41:28 +02:00
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2019-02-27 09:26:01 +01:00
|
|
|
|
2018-08-28 10:25:17 +02:00
|
|
|
%check
|
2022-08-29 21:41:28 +02:00
|
|
|
# work around for gh#pytest-dev/pytest#3396 until gh#pytest-dev/pytest#10088 lands in a pytest release
|
|
|
|
touch jaraco/__init__.py
|
|
|
|
cp -r %{python3_sitelib}/jaraco/* jaraco/
|
2023-05-23 16:37:06 +02:00
|
|
|
%pytest --doctest-modules jaraco/logging.py
|
2018-08-28 10:25:17 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-02-27 09:26:01 +01:00
|
|
|
%license LICENSE
|
2023-12-16 22:20:07 +01:00
|
|
|
%doc docs/*.rst README.rst
|
2022-08-29 21:41:28 +02:00
|
|
|
%{python_sitelib}/jaraco.logging-%{version}*-info
|
2018-08-28 10:25:17 +02:00
|
|
|
%{python_sitelib}/jaraco/logging.py*
|
2022-08-29 21:41:28 +02:00
|
|
|
%dir %{python_sitelib}/jaraco
|
|
|
|
%pycache_only %dir %{python_sitelib}/jaraco/__pycache__
|
2018-08-28 10:25:17 +02:00
|
|
|
%pycache_only %{python_sitelib}/jaraco/__pycache__/logging*.py*
|
|
|
|
|
|
|
|
%changelog
|