2019-02-19 15:02:29 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-eliot
|
|
|
|
|
#
|
2022-01-17 06:44:51 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-02-19 15:02:29 +00: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-19 15:10:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-02-19 15:02:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2022-01-17 06:44:51 +00:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2019-06-07 10:45:16 +00:00
|
|
|
%define skip_python2 1
|
2019-02-19 15:02:29 +00:00
|
|
|
Name: python-eliot
|
2022-01-23 20:31:17 +00:00
|
|
|
Version: 1.14.0
|
2019-02-19 15:02:29 +00:00
|
|
|
Release: 0
|
2019-02-21 13:53:15 +00:00
|
|
|
Summary: A logging system that tells the user why something happened
|
2019-02-19 15:02:29 +00:00
|
|
|
License: Apache-2.0
|
2019-02-19 15:10:21 +00:00
|
|
|
URL: https://github.com/itamarst/eliot/
|
2019-02-19 15:02:29 +00:00
|
|
|
Source0: https://github.com/itamarst/eliot/archive/%{version}/%{name}-%{version}.tar.gz
|
2019-02-19 15:10:21 +00:00
|
|
|
BuildRequires: %{python_module Sphinx}
|
2019-02-19 15:02:29 +00:00
|
|
|
BuildRequires: %{python_module Twisted}
|
2019-04-01 09:10:41 +00:00
|
|
|
BuildRequires: %{python_module boltons >= 19.0.1}
|
2019-02-19 15:02:29 +00:00
|
|
|
BuildRequires: %{python_module cffi >= 1.1.2}
|
|
|
|
|
BuildRequires: %{python_module coverage}
|
2019-02-19 15:10:21 +00:00
|
|
|
BuildRequires: %{python_module flake8}
|
2019-04-01 09:10:41 +00:00
|
|
|
BuildRequires: %{python_module hypothesis >= 3.47.0}
|
2019-02-19 15:10:21 +00:00
|
|
|
BuildRequires: %{python_module pyrsistent >= 0.11.8}
|
2021-10-16 09:38:40 +00:00
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
2019-02-19 15:10:21 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module setuptools >= 40}
|
|
|
|
|
BuildRequires: %{python_module six}
|
2019-02-19 15:02:29 +00:00
|
|
|
BuildRequires: %{python_module sphinx_rtd_theme}
|
2019-02-19 15:10:21 +00:00
|
|
|
BuildRequires: %{python_module testtools}
|
|
|
|
|
BuildRequires: %{python_module twine >= 1.12.1}
|
2019-02-19 15:02:29 +00:00
|
|
|
BuildRequires: %{python_module yapf}
|
2019-02-19 15:10:21 +00:00
|
|
|
BuildRequires: %{python_module zope.interface}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-01-17 06:44:51 +00:00
|
|
|
# Note: If python3-aiocontextvars is not available, the error message will
|
|
|
|
|
# be confusing: https://github.com/openSUSE/obs-build/issues/685
|
|
|
|
|
BuildRequires: (python3-aiocontextvars if python3-base < 3.7)
|
2019-04-01 09:11:48 +00:00
|
|
|
Requires: python-boltons >= 19.0.1
|
2019-02-19 15:10:21 +00:00
|
|
|
Requires: python-pyrsistent >= 0.11.8
|
2019-02-19 15:02:29 +00:00
|
|
|
Requires: python-six
|
2021-01-21 08:35:14 +00:00
|
|
|
%if 0%{?python_version_nodots} < 37
|
|
|
|
|
Requires: python-aiocontextvars
|
|
|
|
|
%endif
|
2019-02-19 15:02:29 +00:00
|
|
|
Requires: python-zope.interface
|
2019-03-22 14:21:37 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-10-16 09:38:40 +00:00
|
|
|
Requires(postun):update-alternatives
|
2019-03-22 14:21:37 +00:00
|
|
|
BuildArch: noarch
|
2019-02-19 15:02:29 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2019-02-19 15:10:21 +00:00
|
|
|
eliot is a Python logging system that outputs causal chains of actions: actions can spawn other actions,
|
|
|
|
|
and eventually they either succeed or fail.
|
2019-02-21 13:53:15 +00:00
|
|
|
The resulting logs tell the story of what the software did: what happened, and what caused it.
|
2019-02-19 15:02:29 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n eliot-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export LC_CTYPE=en_US.UTF-8
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
export LC_CTYPE=en_US.UTF-8
|
|
|
|
|
%python_install
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/eliot-prettyprint
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%post
|
2019-03-22 14:21:37 +00:00
|
|
|
%python_install_alternative eliot-prettyprint
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative eliot-prettyprint
|
2019-02-19 15:02:29 +00:00
|
|
|
|
|
|
|
|
%check
|
2019-02-19 15:10:21 +00:00
|
|
|
# skip prettyprint as it needs the binary to execute
|
2020-03-15 10:11:31 +00:00
|
|
|
# test_parse_stream is too slow in obs
|
2022-03-01 15:02:00 +00:00
|
|
|
# test_parse_into_tasks is too slow in obs
|
|
|
|
|
%pytest eliot/tests -k 'not (prettyprint or test_parse_stream or test_parse_into_tasks)'
|
2019-02-19 15:02:29 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%python_alternative %{_bindir}/eliot-prettyprint
|
2022-01-17 06:44:51 +00:00
|
|
|
%{python_sitelib}/eliot
|
|
|
|
|
%{python_sitelib}/eliot-%{version}*-info
|
2019-02-19 15:02:29 +00:00
|
|
|
|
|
|
|
|
%changelog
|