forked from pool/python-pytest-console-scripts
Accepting request 936444 from home:pgajdos:python
- version update to 1.2.1 * no upstream changelog - deleted patches - virtualenv-20.patch (upstreamed) - do not require pytest-runner for build, it is not needed OBS-URL: https://build.opensuse.org/request/show/936444 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=14
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-console-scripts
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,24 +19,23 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-pytest-console-scripts
|
||||
Version: 0.2.0
|
||||
Version: 1.2.1
|
||||
Release: 0
|
||||
Summary: Pytest plugin for testing console scripts
|
||||
License: MIT
|
||||
URL: https://github.com/kvas-it/pytest-console-scripts
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-console-scripts/pytest-console-scripts-%{version}.tar.gz
|
||||
Patch0: virtualenv-20.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-mock >= 2.0.0
|
||||
Requires: python-pytest >= 4.0.0
|
||||
Requires: python-pytest-runner
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module mock >= 2.0.0}
|
||||
BuildRequires: %{python_module pytest >= 4.0.0}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module virtualenv >= 20}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -61,11 +60,12 @@ much as possible.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
sed -i 's:env python:env python3:' tests/test_run_scripts.py
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%doc README.md
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user