python-stack-data/python-stack-data.spec

70 lines
2.1 KiB
RPMSpec

#
# spec file for package python-stack-data
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-stack-data
Version: 0.1.3
Release: 0
Summary: Extract data from python stack frames and tracebacks
License: MIT
URL: https://github.com/alexmojaki/stack_data
Source: https://files.pythonhosted.org/packages/source/s/stack_data/stack_data-%{version}.tar.gz
BuildRequires: %{python_module setuptools >= 44}
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-asttokens
Requires: python-executing
Requires: python-pure-eval
Suggests: python-littleutils
Suggests: python-pygments
Suggests: python-pytest
Suggests: python-typeguard
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module asttokens}
BuildRequires: %{python_module executing}
BuildRequires: %{python_module littleutils}
BuildRequires: %{python_module pure-eval}
BuildRequires: %{python_module pygments}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module typeguard}
# /SECTION
%python_subpackages
%description
Extract data from python stack frames and tracebacks for informative displays
%prep
%autosetup -p1 -n stack_data-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%{python_sitelib}/stack_data*
%changelog