15
0
forked from pool/python-cfgv

Accepting request 790111 from home:mcalabkova:branches:devel:languages:python

- update to version 3.1.0
  * cfgv: python3.6+

OBS-URL: https://build.opensuse.org/request/show/790111
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cfgv?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2020-03-31 11:39:56 +00:00
committed by Git OBS Bridge
parent 529348f616
commit 9f8d6ba31a
4 changed files with 14 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cfgv
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -17,8 +17,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-cfgv
Version: 2.0.1
Version: 3.1.0
Release: 0
Summary: Configuration validator producing human readable error messages
License: MIT
@@ -28,12 +29,9 @@ Source: https://github.com/asottile/cfgv/archive/v%{version}.tar.gz#/cfg
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module six}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
@@ -51,7 +49,7 @@ A configuration validator for Python that produce human readable error messages.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py pytest
%pytest
%files %{python_files}
%doc README.md