File python-pytest-reqs.spec of Package python-pytest-reqs

# spec file for package python-pytest-reqs
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pytest-reqs
Version:        0.2.0
Release:        0
Summary:        Pytest plugin to check pinned requirements
License:        MIT
Group:          Development/Languages/Python
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
# SECTION test requirements
BuildRequires:  %{python_module pip >= 6}
BuildRequires:  %{python_module pretend}
BuildRequires:  %{python_module pytest >= 2.4.2}
# Setuptools and pip are both used at runtime
Requires:       python-pip >= 6
Requires:       python-pytest >= 2.4.2
Requires:       python-setuptools
BuildArch:      noarch


This plugin checks the requirements files for specific versions, and
compares those versions with the installed libraries in the
environment, failing the test suite if any are invalid or out of

This can be used to keep virtual environments up to date, and
ensuring that the test suite is always being passed with the
requirements that have been specified.

It also verifies that the requirements files are syntatically valid.

%setup -q -n pytest-reqs-%{version}


%python_expand %fdupes %{buildroot}%{$python_sitelib}


%files %{python_files}
%license LICENSE

openSUSE Build Service is sponsored by