File python-dependency_management.spec of Package python-dependency_management
#
# spec file for package python-dependency_management
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Test files not in archive
%bcond_with test
%define skip_python2 1
Name: python-dependency_management
Version: 0.4.0
Release: 0
License: AGPL-3.0
Summary: coala Dependency Management
Url: https://gitlab.com/coala/package_manager
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/d/dependency_management/dependency_management-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module coala_utils >= 0.6}
BuildRequires: %{python_module codecov >= 2.0.5}
BuildRequires: %{python_module coverage >= 4.3.4}
BuildRequires: %{python_module pytest >= 3.0}
BuildRequires: %{python_module pytest-cov >= 2.2.1}
BuildRequires: %{python_module pytest-timeout >= 1.0}
BuildRequires: %{python_module sarge >= 0.1.4}
%endif
Requires: python-coala_utils >= 0.6
Requires: python-sarge >= 0.1.4
BuildArch: noarch
%python_subpackages
%description
Contains package manager and requirement classes used by coala.
%prep
%setup -q -n dependency_management-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.md
%{python_sitelib}/*
%changelog