2011-06-07 23:19:53 +00:00
|
|
|
#
|
2011-06-07 23:23:10 +00:00
|
|
|
# spec file for package python-Fabric
|
2011-06-07 23:19:53 +00:00
|
|
|
#
|
2025-07-08 13:17:29 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-06-07 23:19:53 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2011-08-08 13:51:17 +00:00
|
|
|
|
2019-04-11 09:50:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-07 23:19:53 +00:00
|
|
|
#
|
|
|
|
|
2012-02-14 11:57:06 +00:00
|
|
|
|
2025-08-14 13:43:29 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
2025-07-08 13:17:29 +00:00
|
|
|
%bcond_without libalternatives
|
2025-08-14 13:43:29 +00:00
|
|
|
%else
|
|
|
|
%bcond_with libalternatives
|
|
|
|
%endif
|
2023-07-01 10:32:59 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-09-02 07:46:23 +00:00
|
|
|
Name: python-Fabric
|
Accepting request 1118865 from home:mimi_vx:branches:devel:languages:python
- Update to 3.2.2
- add fix-test-deps.patch to remove vendored dependencies
*[Bug]: fabric.runners.Remote failed to properly deregister its SIGWINCH signal
handler on shutdown; in rare situations this could cause tracebacks when
the Python process receives SIGWINCH while no remote session is active.
This has been fixed.
* [Bug] #2204: The signal handling functionality added in Fabric 2.6 caused
unrecoverable tracebacks when invoked from inside a thread (such as
the use of fabric.group.ThreadingGroup) under certain interpreter versions.
This has been fixed by simply refusing to register signal handlers when not
in the main thread. Thanks to Francesco Giordano and others for the reports.
* [Bug]: Neglected to actually add deprecated to our runtime dependency
specification (it was still in our development dependencies). This has been fixed.
* [Feature]: Enhanced fabric.testing in ways large and small:
Backwards-compatibly merged the functionality of MockSFTP into MockRemote (may be
opted-into by instantiating the latter with enable_sftp=True) so you can mock
out both SSH and SFTP functionality in the same test, which was previously impossible.
It also means you can use this in a Pytest autouse fixture to prevent any tests
from accidentally hitting the network!
A new pytest fixture, remote_with_sftp, has been added which leverages the previous
bullet point (an all-in-one fixture suitable for, eg, preventing any incidental
ssh/sftp attempts during test execution).
A pile of documentation and test enhancements (yes, testing our testing helpers is a thing).
* [Support]: Added a new runtime dependency on the Deprecated library.
* [Support]: Language update: applied s/sanity/safety/g to the codebase
(with the few actual API members using the term now marked deprecated & new ones added
in the meantime, mostly in fabric.testing).
* [Feature]: Add a new CLI flag to fab, fab --list-agent-keys, which will attempt
to connect to your local SSH agent and print a key list, similarly to ssh-add -l.
This is mostly useful for expectations-checking Fabric and Paramiko’s agent
OBS-URL: https://build.opensuse.org/request/show/1118865
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=86
2023-10-19 14:28:57 +00:00
|
|
|
Version: 3.2.2
|
2011-09-02 07:46:23 +00:00
|
|
|
Release: 0
|
2017-10-06 14:49:51 +00:00
|
|
|
Summary: A Pythonic tool for remote execution and deployment
|
2011-11-10 10:50:13 +00:00
|
|
|
License: BSD-2-Clause
|
2022-08-02 15:16:32 +00:00
|
|
|
URL: https://fabfile.org
|
2018-08-11 14:56:07 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/f/fabric/fabric-%{version}.tar.gz
|
2022-05-17 05:30:14 +00:00
|
|
|
# PATCH-FIX-UPSTREAM gh#fabric/fabric#2209
|
2020-05-05 14:29:49 +00:00
|
|
|
Patch0: fix-executable.patch
|
Accepting request 1118865 from home:mimi_vx:branches:devel:languages:python
- Update to 3.2.2
- add fix-test-deps.patch to remove vendored dependencies
*[Bug]: fabric.runners.Remote failed to properly deregister its SIGWINCH signal
handler on shutdown; in rare situations this could cause tracebacks when
the Python process receives SIGWINCH while no remote session is active.
This has been fixed.
* [Bug] #2204: The signal handling functionality added in Fabric 2.6 caused
unrecoverable tracebacks when invoked from inside a thread (such as
the use of fabric.group.ThreadingGroup) under certain interpreter versions.
This has been fixed by simply refusing to register signal handlers when not
in the main thread. Thanks to Francesco Giordano and others for the reports.
* [Bug]: Neglected to actually add deprecated to our runtime dependency
specification (it was still in our development dependencies). This has been fixed.
* [Feature]: Enhanced fabric.testing in ways large and small:
Backwards-compatibly merged the functionality of MockSFTP into MockRemote (may be
opted-into by instantiating the latter with enable_sftp=True) so you can mock
out both SSH and SFTP functionality in the same test, which was previously impossible.
It also means you can use this in a Pytest autouse fixture to prevent any tests
from accidentally hitting the network!
A new pytest fixture, remote_with_sftp, has been added which leverages the previous
bullet point (an all-in-one fixture suitable for, eg, preventing any incidental
ssh/sftp attempts during test execution).
A pile of documentation and test enhancements (yes, testing our testing helpers is a thing).
* [Support]: Added a new runtime dependency on the Deprecated library.
* [Support]: Language update: applied s/sanity/safety/g to the codebase
(with the few actual API members using the term now marked deprecated & new ones added
in the meantime, mostly in fabric.testing).
* [Feature]: Add a new CLI flag to fab, fab --list-agent-keys, which will attempt
to connect to your local SSH agent and print a key list, similarly to ssh-add -l.
This is mostly useful for expectations-checking Fabric and Paramiko’s agent
OBS-URL: https://build.opensuse.org/request/show/1118865
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=86
2023-10-19 14:28:57 +00:00
|
|
|
# PATCH-FIX-OPENSUSE fix-test-deps.patch - remove usage of icecream and vendored libs
|
|
|
|
Patch1: fix-test-deps.patch
|
2024-08-22 06:26:40 +00:00
|
|
|
# PATCH-FIX-UPSTREAM gh#fabric/fabric#2249
|
|
|
|
Patch2: support-pytest-8.patch
|
Accepting request 1118865 from home:mimi_vx:branches:devel:languages:python
- Update to 3.2.2
- add fix-test-deps.patch to remove vendored dependencies
*[Bug]: fabric.runners.Remote failed to properly deregister its SIGWINCH signal
handler on shutdown; in rare situations this could cause tracebacks when
the Python process receives SIGWINCH while no remote session is active.
This has been fixed.
* [Bug] #2204: The signal handling functionality added in Fabric 2.6 caused
unrecoverable tracebacks when invoked from inside a thread (such as
the use of fabric.group.ThreadingGroup) under certain interpreter versions.
This has been fixed by simply refusing to register signal handlers when not
in the main thread. Thanks to Francesco Giordano and others for the reports.
* [Bug]: Neglected to actually add deprecated to our runtime dependency
specification (it was still in our development dependencies). This has been fixed.
* [Feature]: Enhanced fabric.testing in ways large and small:
Backwards-compatibly merged the functionality of MockSFTP into MockRemote (may be
opted-into by instantiating the latter with enable_sftp=True) so you can mock
out both SSH and SFTP functionality in the same test, which was previously impossible.
It also means you can use this in a Pytest autouse fixture to prevent any tests
from accidentally hitting the network!
A new pytest fixture, remote_with_sftp, has been added which leverages the previous
bullet point (an all-in-one fixture suitable for, eg, preventing any incidental
ssh/sftp attempts during test execution).
A pile of documentation and test enhancements (yes, testing our testing helpers is a thing).
* [Support]: Added a new runtime dependency on the Deprecated library.
* [Support]: Language update: applied s/sanity/safety/g to the codebase
(with the few actual API members using the term now marked deprecated & new ones added
in the meantime, mostly in fabric.testing).
* [Feature]: Add a new CLI flag to fab, fab --list-agent-keys, which will attempt
to connect to your local SSH agent and print a key list, similarly to ssh-add -l.
This is mostly useful for expectations-checking Fabric and Paramiko’s agent
OBS-URL: https://build.opensuse.org/request/show/1118865
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=86
2023-10-19 14:28:57 +00:00
|
|
|
BuildRequires: %{python_module Deprecated}
|
2018-08-11 14:56:07 +00:00
|
|
|
BuildRequires: %{python_module decorator}
|
2023-07-02 15:04:14 +00:00
|
|
|
BuildRequires: %{python_module invoke >= 2.0}
|
Accepting request 1118865 from home:mimi_vx:branches:devel:languages:python
- Update to 3.2.2
- add fix-test-deps.patch to remove vendored dependencies
*[Bug]: fabric.runners.Remote failed to properly deregister its SIGWINCH signal
handler on shutdown; in rare situations this could cause tracebacks when
the Python process receives SIGWINCH while no remote session is active.
This has been fixed.
* [Bug] #2204: The signal handling functionality added in Fabric 2.6 caused
unrecoverable tracebacks when invoked from inside a thread (such as
the use of fabric.group.ThreadingGroup) under certain interpreter versions.
This has been fixed by simply refusing to register signal handlers when not
in the main thread. Thanks to Francesco Giordano and others for the reports.
* [Bug]: Neglected to actually add deprecated to our runtime dependency
specification (it was still in our development dependencies). This has been fixed.
* [Feature]: Enhanced fabric.testing in ways large and small:
Backwards-compatibly merged the functionality of MockSFTP into MockRemote (may be
opted-into by instantiating the latter with enable_sftp=True) so you can mock
out both SSH and SFTP functionality in the same test, which was previously impossible.
It also means you can use this in a Pytest autouse fixture to prevent any tests
from accidentally hitting the network!
A new pytest fixture, remote_with_sftp, has been added which leverages the previous
bullet point (an all-in-one fixture suitable for, eg, preventing any incidental
ssh/sftp attempts during test execution).
A pile of documentation and test enhancements (yes, testing our testing helpers is a thing).
* [Support]: Added a new runtime dependency on the Deprecated library.
* [Support]: Language update: applied s/sanity/safety/g to the codebase
(with the few actual API members using the term now marked deprecated & new ones added
in the meantime, mostly in fabric.testing).
* [Feature]: Add a new CLI flag to fab, fab --list-agent-keys, which will attempt
to connect to your local SSH agent and print a key list, similarly to ssh-add -l.
This is mostly useful for expectations-checking Fabric and Paramiko’s agent
OBS-URL: https://build.opensuse.org/request/show/1118865
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=86
2023-10-19 14:28:57 +00:00
|
|
|
BuildRequires: %{python_module lexicon}
|
|
|
|
BuildRequires: %{python_module paramiko >= 3.2}
|
2024-08-22 06:26:40 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2022-03-10 06:32:16 +00:00
|
|
|
BuildRequires: %{python_module pytest-relaxed}
|
2018-01-22 11:18:13 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-08-22 06:26:40 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-01-22 11:18:13 +00:00
|
|
|
BuildRequires: fdupes
|
2017-10-06 13:56:56 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
Accepting request 1118865 from home:mimi_vx:branches:devel:languages:python
- Update to 3.2.2
- add fix-test-deps.patch to remove vendored dependencies
*[Bug]: fabric.runners.Remote failed to properly deregister its SIGWINCH signal
handler on shutdown; in rare situations this could cause tracebacks when
the Python process receives SIGWINCH while no remote session is active.
This has been fixed.
* [Bug] #2204: The signal handling functionality added in Fabric 2.6 caused
unrecoverable tracebacks when invoked from inside a thread (such as
the use of fabric.group.ThreadingGroup) under certain interpreter versions.
This has been fixed by simply refusing to register signal handlers when not
in the main thread. Thanks to Francesco Giordano and others for the reports.
* [Bug]: Neglected to actually add deprecated to our runtime dependency
specification (it was still in our development dependencies). This has been fixed.
* [Feature]: Enhanced fabric.testing in ways large and small:
Backwards-compatibly merged the functionality of MockSFTP into MockRemote (may be
opted-into by instantiating the latter with enable_sftp=True) so you can mock
out both SSH and SFTP functionality in the same test, which was previously impossible.
It also means you can use this in a Pytest autouse fixture to prevent any tests
from accidentally hitting the network!
A new pytest fixture, remote_with_sftp, has been added which leverages the previous
bullet point (an all-in-one fixture suitable for, eg, preventing any incidental
ssh/sftp attempts during test execution).
A pile of documentation and test enhancements (yes, testing our testing helpers is a thing).
* [Support]: Added a new runtime dependency on the Deprecated library.
* [Support]: Language update: applied s/sanity/safety/g to the codebase
(with the few actual API members using the term now marked deprecated & new ones added
in the meantime, mostly in fabric.testing).
* [Feature]: Add a new CLI flag to fab, fab --list-agent-keys, which will attempt
to connect to your local SSH agent and print a key list, similarly to ssh-add -l.
This is mostly useful for expectations-checking Fabric and Paramiko’s agent
OBS-URL: https://build.opensuse.org/request/show/1118865
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=86
2023-10-19 14:28:57 +00:00
|
|
|
Requires: python-Deprecated
|
2018-08-11 14:56:07 +00:00
|
|
|
Requires: python-decorator
|
2023-07-02 15:04:14 +00:00
|
|
|
Requires: python-invoke >= 2.0
|
Accepting request 1118865 from home:mimi_vx:branches:devel:languages:python
- Update to 3.2.2
- add fix-test-deps.patch to remove vendored dependencies
*[Bug]: fabric.runners.Remote failed to properly deregister its SIGWINCH signal
handler on shutdown; in rare situations this could cause tracebacks when
the Python process receives SIGWINCH while no remote session is active.
This has been fixed.
* [Bug] #2204: The signal handling functionality added in Fabric 2.6 caused
unrecoverable tracebacks when invoked from inside a thread (such as
the use of fabric.group.ThreadingGroup) under certain interpreter versions.
This has been fixed by simply refusing to register signal handlers when not
in the main thread. Thanks to Francesco Giordano and others for the reports.
* [Bug]: Neglected to actually add deprecated to our runtime dependency
specification (it was still in our development dependencies). This has been fixed.
* [Feature]: Enhanced fabric.testing in ways large and small:
Backwards-compatibly merged the functionality of MockSFTP into MockRemote (may be
opted-into by instantiating the latter with enable_sftp=True) so you can mock
out both SSH and SFTP functionality in the same test, which was previously impossible.
It also means you can use this in a Pytest autouse fixture to prevent any tests
from accidentally hitting the network!
A new pytest fixture, remote_with_sftp, has been added which leverages the previous
bullet point (an all-in-one fixture suitable for, eg, preventing any incidental
ssh/sftp attempts during test execution).
A pile of documentation and test enhancements (yes, testing our testing helpers is a thing).
* [Support]: Added a new runtime dependency on the Deprecated library.
* [Support]: Language update: applied s/sanity/safety/g to the codebase
(with the few actual API members using the term now marked deprecated & new ones added
in the meantime, mostly in fabric.testing).
* [Feature]: Add a new CLI flag to fab, fab --list-agent-keys, which will attempt
to connect to your local SSH agent and print a key list, similarly to ssh-add -l.
This is mostly useful for expectations-checking Fabric and Paramiko’s agent
OBS-URL: https://build.opensuse.org/request/show/1118865
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=86
2023-10-19 14:28:57 +00:00
|
|
|
Requires: python-paramiko >= 3.2
|
2018-08-11 15:02:09 +00:00
|
|
|
Conflicts: python-Fabric3
|
2018-08-11 14:56:07 +00:00
|
|
|
Provides: python-Fabric2 = %{version}
|
2020-05-11 10:00:02 +00:00
|
|
|
Provides: python-Fabric3 = %{version}
|
2018-08-11 14:56:07 +00:00
|
|
|
Provides: python-fabric = %{version}
|
|
|
|
Provides: python-fabric2 = %{version}
|
2017-10-06 13:56:56 +00:00
|
|
|
BuildArch: noarch
|
2025-08-14 13:43:29 +00:00
|
|
|
%if %{with libalternatives}
|
|
|
|
BuildRequires: alts
|
|
|
|
Requires: alts
|
|
|
|
%else
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
%endif
|
2017-10-06 13:56:56 +00:00
|
|
|
%python_subpackages
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%description
|
2017-10-06 14:49:51 +00:00
|
|
|
Fabric is a Python library and command-line tool for
|
2011-06-07 23:19:53 +00:00
|
|
|
streamlining the use of SSH for application deployment or systems
|
|
|
|
administration tasks.
|
|
|
|
|
|
|
|
It provides a basic suite of operations for executing local or remote shell
|
2011-09-02 07:46:23 +00:00
|
|
|
commands (normally or via sudo) and uploading/downloading files, as well as
|
2011-06-07 23:19:53 +00:00
|
|
|
auxiliary functionality such as prompting the running user for input, or
|
|
|
|
aborting execution.
|
2011-09-02 07:46:23 +00:00
|
|
|
|
2017-10-06 14:49:51 +00:00
|
|
|
In addition to being used via the fab tool, Fabric's components may be imported
|
2011-06-07 23:19:53 +00:00
|
|
|
into other Python code, providing a Pythonic interface to the SSH protocol
|
|
|
|
suite at a higher level than that provided by e.g. Paramiko (which
|
2017-10-06 14:49:51 +00:00
|
|
|
Fabric itself leverages).
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%prep
|
2022-05-17 05:30:14 +00:00
|
|
|
%autosetup -p1 -n fabric-%{version}
|
2019-04-11 09:50:09 +00:00
|
|
|
# fix all imports:
|
|
|
|
sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py integration/concurrency.py tests/config.py tests/transfer.py tests/_util.py tests/connection.py tests/runners.py
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%build
|
2024-08-22 06:26:40 +00:00
|
|
|
%pyproject_wheel
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%install
|
2024-08-22 06:26:40 +00:00
|
|
|
%pyproject_install
|
2018-01-22 11:18:13 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-08-11 14:56:07 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/fab
|
2011-06-07 23:19:53 +00:00
|
|
|
|
2017-10-06 13:56:56 +00:00
|
|
|
%check
|
2019-04-11 09:50:09 +00:00
|
|
|
%pytest tests/
|
2018-08-11 14:56:07 +00:00
|
|
|
|
2025-07-08 13:17:29 +00:00
|
|
|
%pre
|
|
|
|
%python_libalternatives_reset_alternative fab
|
2012-02-20 22:17:34 +00:00
|
|
|
|
2025-08-14 13:43:29 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative fab
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative fab
|
|
|
|
|
2017-10-06 13:56:56 +00:00
|
|
|
%files %{python_files}
|
2018-08-11 14:56:07 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%python_alternative %{_bindir}/fab
|
2021-12-31 12:39:39 +00:00
|
|
|
%{python_sitelib}/fabric
|
2024-08-22 06:26:40 +00:00
|
|
|
%{python_sitelib}/fabric-%{version}.dist-info
|
2011-06-07 23:19:53 +00:00
|
|
|
|
|
|
|
%changelog
|