From 2c411e53bdff9eb7dc6135146b8883da64ca8b6f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jan 09 2020 18:19:21 +0000 Subject: Update to 4.0.0 Signed-off-by: Igor Gnatenko --- diff --git a/python-testinfra.spec b/python-testinfra.spec index 747e532..7468c66 100644 --- a/python-testinfra.spec +++ b/python-testinfra.spec @@ -1,99 +1,81 @@ -%global pkgname testinfra -%global setup_flags SKIP_PIP_INSTALL=1 PBR_VERSION=%{version} +%global srcname testinfra -Name: python-%{pkgname} -Version: 3.1.0 +Name: python-%{srcname} +Version: 4.0.0 Release: 1%{?dist} Summary: Unit testing for config-managed server state License: ASL 2.0 -URL: https://github.com/philpep/%{pkgname} -Source0: %{url}/archive/%{version}/%{pkgname}-%{version}.tar.gz +URL: https://github.com/philpep/testinfra +Source: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pbr +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(setuptools-scm) # testing requirements -BuildRequires: ansible -BuildRequires: python3-mock -BuildRequires: python3-six -BuildRequires: python3-pytest -BuildRequires: python3-pytest-xdist -BuildRequires: python3-pytest-cov -BuildRequires: python3-winrm -BuildRequires: python3-paramiko -BuildRequires: python3-setuptools_scm +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(ansible) +BuildRequires: python3dist(paramiko) +BuildRequires: python3dist(pywinrm) # docs requirements -BuildRequires: python3-sphinx +BuildRequires: python3dist(sphinx) - -%description +%global _description %{expand: With Testinfra you can write unit tests in Python to test actual state of your servers configured by management tools like Salt, Ansible, Puppet, Chef and so on. Testinfra aims to be a Serverspec equivalent in python and is written as a -plugin to the powerful Pytest test engine - -%package -n python3-%{pkgname} -Summary: Unit testing for config-managed server state -Requires: python3-pbr -Requires: python3-mock -Requires: python3-six -Requires: python3-pytest -Requires: python3-pytest-xdist -Requires: python3-pytest-cov -Requires: python3-winrm -Requires: python3-paramiko -%{?python_provide:%python_provide python3-%{pkgname}} - -%description -n python3-%{pkgname} -With Testinfra you can write unit tests in Python to test actual state of your -servers configured by management tools like Salt, Ansible, Puppet, Chef and so -on. +plugin to the powerful Pytest test engine.} -Testinfra aims to be a Serverspec equivalent in python and is written as a -plugin to the powerful Pytest test engine +%description %{_description} +%package -n python3-%{srcname} +Summary: Unit testing for config-managed server state +Requires: python%{python3_version}dist(ansible) +Requires: python%{python3_version}dist(paramiko) +Requires: python%{python3_version}dist(pywinrm) +Suggests: python%{python3_version}dist(pytest-xdist) +%{?python_provide:%python_provide python3-%{srcname}} +%description -n python3-%{srcname} %{_description} %prep -%autosetup -n %{pkgname}-%{version} +%autosetup -n %{srcname}-%{version} # no Python 3 salt rm testinfra/backend/salt.py sed -i "/'salt':/d" testinfra/backend/__init__.py %build -%setup_flags %py3_build +%py3_build # generate html docs sphinx-build-3 doc/source html # remove the sphinx-build leftovers -rm -rf html/.{doctrees,buildinfo} - +rm -vr html/.{doctrees,buildinfo} %install -%setup_flags %py3_install - +%py3_install %check # majority of the tests gets skipped without docker, but some run -%{__python3} -m pytest test -find %{_bindir} +%{python3} -m pytest test -v -%files -n python3-%{pkgname} +%files -n python3-%{srcname} %license LICENSE %doc html *.rst -%{python3_sitelib}/%{pkgname} -%{python3_sitelib}/%{pkgname}-%{version}-py?.?.egg-info - +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-*.egg-info/ %changelog +* Thu Jan 09 2020 Igor Gnatenko - 4.0.0-1 +- Update to 4.0.0 + * Sat Aug 31 2019 Chedi Toueiti - 3.1.0-1 - Update to 3.1.0 diff --git a/sources b/sources index 506773b..5a4b249 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (testinfra-3.1.0.tar.gz) = 20420e9ff27e7a09105e1ff82dc096290b20269baff73721142428f9df849bd1ecb498b0c39b3d1358c15776fbef015e735561dd0d7a4b7b390a3871d5a2d3be +SHA512 (testinfra-4.0.0.tar.gz) = f2a8c8cfc168bafa80ffcea22f2be7161132186938b3501326b9a4c13464eda13ac071916c13f277bbaeb972c8ce8caada058fb2686d7377b2bacf89146d2175