2019-08-22 10:30:41 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pytest-console-scripts
|
|
|
|
#
|
2019-08-22 10:34:51 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-08-22 10:30:41 +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-08-22 10:34:51 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-08-22 10:30:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-pytest-console-scripts
|
2019-08-22 10:34:51 +02:00
|
|
|
Version: 0.1.9
|
2019-08-22 10:30:41 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Pytest plugin for testing console scripts
|
2019-08-22 10:34:51 +02:00
|
|
|
License: MIT
|
2019-08-22 10:30:41 +02:00
|
|
|
Group: Development/Languages/Python
|
2019-08-22 10:34:51 +02:00
|
|
|
URL: https://github.com/kvas-it/pytest-console-scripts
|
2019-08-22 10:30:41 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-console-scripts/pytest-console-scripts-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-08-22 10:34:51 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-mock >= 2.0.0
|
|
|
|
Requires: python-pytest >= 3.0.0
|
|
|
|
Requires: python-pytest-runner
|
|
|
|
BuildArch: noarch
|
2019-08-22 10:30:41 +02:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module mock >= 2.0.0}
|
|
|
|
BuildRequires: %{python_module pytest >= 3.0.0}
|
|
|
|
BuildRequires: %{python_module pytest-runner}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module virtualenv}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Pytest-console-scripts is a `Pytest`_ plugin for testing python scripts
|
|
|
|
installed via ``console_scripts`` entry point of ``setup.py``. It can run the
|
|
|
|
scripts under test in a separate process or using the interpreter that's
|
|
|
|
running the test suite. The former mode ensures that the script will run in an
|
|
|
|
environment that is identical to normal execution whereas the latter one allows
|
|
|
|
much quicker test runs during development while simulating the real runs as
|
|
|
|
much as possible.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n pytest-console-scripts-%{version} -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%python_exec setup.py test
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|