File python-pyramid_tm.spec of Package python-pyramid_tm

#
# spec file for package python-pyramid_tm
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# 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-%{**}}
%define skip_python2 1
Name:           python-pyramid_tm
Version:        2.5
Release:        0
Summary:        Allow Pyramid requests to join the active transaction
License:        BSD-4-Clause AND ZPL-2.1 AND MIT
Group:          Development/Languages/Python
URL:            http://docs.pylonsproject.org
Source:         https://files.pythonhosted.org/packages/source/p/pyramid_tm/pyramid_tm-%{version}.tar.gz
Source1:        fetch-intersphinx-files.sh
Source2:        pyramid.inv
# Testing requirements:
BuildRequires:  %{python_module WebTest}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module hupper}
BuildRequires:  %{python_module plaster-pastedeploy}
BuildRequires:  %{python_module plaster}
BuildRequires:  %{python_module pyramid >= 1.4}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module transaction}
#Tests requirement
BuildRequires:  %{python_module coverage}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module pytest-cov}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-pyramid >= 1.4
Requires:       python-transaction
BuildArch:      noarch
%python_subpackages

%description
pyramid_tm is a package which allows Pyramid requests to join the active
transaction as provided by the transaction package.

See http://docs.pylonsproject.org/projects/pyramid_tm/en/latest/ or
docs/index.rst in this distribution for detailed documentation.

%prep
%setup -q -n pyramid_tm-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}

%check
%python_exec setup.py test

%files %python_files
%defattr(-,root,root,-)
%license LICENSE.txt
%doc CHANGES.rst CONTRIBUTORS.txt COPYRIGHT.txt README.rst
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by