#4 Fix ansible dependency
Merged a year ago by chedi. Opened a year ago by gotmax23.
rpms/ gotmax23/python-testinfra rawhide  into  rawhide

file modified
+21 -4
@@ -2,7 +2,7 @@ 

  

  Name:           python-%{srcname}

  Version:        5.3.1

- Release:        4%{?dist}

+ Release:        5%{?dist}

  Summary:        Unit testing for config-managed server state

  

  License:        ASL 2.0
@@ -16,7 +16,12 @@ 

  BuildRequires:  python3-setuptools_scm

  

  # testing requirements

- BuildRequires:  ansible-python3

+ # Use ansible-core for testing wherever it's available.

+ %if 0%{?fedora} >= 34 || 0%{?rhel} >= 9

+ BuildRequires:  ansible-core

+ %else

+ BuildRequires:  ansible

+ %endif

  BuildRequires:  python3-pytest

  BuildRequires:  python3-paramiko

  BuildRequires:  python3-winrm
@@ -36,7 +41,16 @@ 

  

  %package     -n python3-%{srcname}

  Summary:        Unit testing for config-managed server state

- Requires:       ansible-python3

+ 

+ # See https://src.fedoraproject.org/rpms/ansible/pull-request/19#comment-93748.

+ # This will allow users to choose between ansible 2.9 and ansible-core 2.11

+ # when available, while avoiding unnecessarily pulling in the entire collections bundle on F36 and above.

+ %if 0%{?fedora} >= 36

+ Requires:       ansible-core

+ %else

+ Requires:       (ansible-core or ansible)

First time I encounter this syntax, didn't know it was possible. Thanks :)

+ %endif

+ 

  Requires:       python3-paramiko

  Requires:       python3-winrm

  Suggests:       python3-pytest-xdist
@@ -73,6 +87,9 @@ 

  %{python3_sitelib}/%{srcname}-*.egg-info/

  

  %changelog

+ * Wed Jan 12 2022 Maxwell G <gotmax@e.email> - 5.3.1-5

+ - Fix ansible dependency

+ 

  * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

  
@@ -82,7 +99,7 @@ 

  * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-2

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

  

- * Wed Sep 03 2020 Chedi Toueiti <chedi.toueiti@gmail.com> - 5.3.1-1

+ * Thu Sep 03 2020 Chedi Toueiti <chedi.toueiti@gmail.com> - 5.3.1-1

  - Update to version 5.3.1

  

  * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-2

ansible-python3 no longer exists on Rawhide. You should push this update ASAP to
avoid FTI bugs.

Signed-off-by: Maxwell G gotmax@e.email

rebased onto bbbcbde

a year ago

First time I encounter this syntax, didn't know it was possible. Thanks :)

Looks good to me but not a maintainer for this package.

Pull-Request has been merged by chedi

a year ago
Metadata