7 Commits

Author SHA256 Message Date
eb8e857e36 Accepting request 1300021 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only

OBS-URL: https://build.opensuse.org/request/show/1300021
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Fabric?expand=0&rev=47
2025-08-18 14:08:50 +00:00
9377280625 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=93 2025-08-18 08:18:49 +00:00
ed7bc4bff3 - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=92
2025-08-14 13:43:29 +00:00
29228c0996 Accepting request 1291279 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291279
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Fabric?expand=0&rev=46
2025-07-09 15:26:13 +00:00
b1f0330cd5 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=90
2025-07-08 13:17:29 +00:00
861bb3383c Accepting request 1195241 from devel:languages:python
- Add patch support-pytest-8.patch:
  * Use setup_method(), not setup().
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1195241
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Fabric?expand=0&rev=45
2024-08-22 16:13:53 +00:00
571958b970 - Add patch support-pytest-8.patch:
* Use setup_method(), not setup().
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=88
2024-08-22 06:26:40 +00:00
2 changed files with 28 additions and 6 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Aug 14 13:29:28 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Tue Jul 8 13:16:23 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Thu Aug 22 06:25:46 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Fabric
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,11 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-Fabric
Version: 3.2.2
@@ -45,16 +50,19 @@ Requires: python-Deprecated
Requires: python-decorator
Requires: python-invoke >= 2.0
Requires: python-paramiko >= 3.2
Requires(post): update-alternatives
Requires(postun): update-alternatives
Conflicts: python-Fabric3
Provides: python-Fabric2 = %{version}
Provides: python-Fabric3 = %{version}
Provides: python-Fabric3 = %{version}
Provides: python-fabric = %{version}
Provides: python-fabric2 = %{version}
Provides: python-fabric2 = %{version}
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
@@ -86,7 +94,11 @@ sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py int
%python_clone -a %{buildroot}%{_bindir}/fab
%check
%pytest tests/
# fake, fake_agent, no_stdin - pytest-relaxed collects fixtures for some reason
%pytest tests/ -k "not (fake or no_stdin)"
%pre
%python_libalternatives_reset_alternative fab
%post
%python_install_alternative fab