1
0
python-pytest-spec/python-pytest-spec.spec
Matej Cepl 94851941e0 Accepting request 846276 from home:mmachova:branches:devel:languages:python:pytest
- Update to 3.0.5
  * Fixed SyntaxWarning issue
  * Fixed output format for pytest-describe
  * Active plugin only if -q or -v was not provided
  * Fixed Python 2/3 warnings
  * Added support for Python 3.9

OBS-URL: https://build.opensuse.org/request/show/846276
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-spec?expand=0&rev=8
2020-11-05 21:35:41 +00:00

64 lines
1.9 KiB
RPMSpec

#
# spec file for package python-pytest-spec
#
# Copyright (c) 2020 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-pytest-spec
Version: 3.0.5
Release: 0
Summary: Plugin to display pytest execution output like a specification
License: GPL-2.0-only
Group: Development/Languages/Python
URL: https://github.com/pchomik/pytest-spec
Source: https://files.pythonhosted.org/packages/source/p/pytest-spec/pytest-spec-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/pchomik/pytest-spec/master/LICENSE.txt
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-mock >= 1.0.1
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module mock >= 1.0.1}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
pytest plugin to display test execution output like a specification.
%prep
%setup -q -n pytest-spec-%{version}
cp %{SOURCE1} .
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# no tests in PyPI tarball, no setup.py in GitHub tarball
#%%pytest
%files %{python_files}
%doc README.rst
%license LICENSE.txt
%{python_sitelib}/*
%changelog