15
0
forked from pool/python-conu
Files
python-conu/python-conu.spec

75 lines
2.2 KiB
RPMSpec

#
# spec file for package python-conu
#
# 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
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-conu
Version: 0.7.1
Release: 0
Summary: Python container testing library
License: GPL-2.0-or-later
URL: https://github.com/user-cont/conu
Source: https://files.pythonhosted.org/packages/source/c/conu/conu-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-docker
Requires: python-kubernetes
Requires: python-pytest
Requires: python-requests
Requires: python-six
Recommends: docker
Recommends: podman
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module docker}
BuildRequires: %{python_module kubernetes}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module six}
BuildRequires: acl
BuildRequires: docker
BuildRequires: podman
BuildRequires: user(nobody)
# /SECTION
%python_subpackages
%description
Python container testing library.
%prep
%setup -q -n conu-%{version}
rm tests/integration/test_k8s.py tests/integration/test_openshift.py tests/release/test_release.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -k 'not (integration or test_get_port_mappings or selinux or ownership)'
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog