14
0
forked from pool/python-Fabric
Files
python-Fabric/python-Fabric.spec

95 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-Fabric
#
- Update to 1.3.4: - [Bug] #492: @parallel did not automatically trigger linewise output, as was intended. This has been fixed. Thanks to Brandon Huey for the catch. - [Bug] #510: Parallel mode is incompatible with user input, such as password/hostname prompts, and was causing cryptic Operation not supported by device errors when such prompts needed to be displayed. This behavior has been updated to cleanly and obviously abort instead. - [Bug] #494: Fixed regression bug affecting some env values such as env.port under parallel mode. Symptoms included rsync_project bailing out due to a None port value when run under @parallel. Thanks to Rob Terhaar for the report. - [Bug] #339: Don’t show imported colors members in --list output. Thanks to Nick Trew for the report. - Update to 1.3.3: - [Bug] #441: Specifying a task module as a task on the command line no longer blows up but presents the usual “no task by that name” error message instead. Thanks to Mitchell Hashimoto for the catch. - [Bug] #475: Allow escaping of equals signs in per-task args/kwargs. - [Bug] #450: Improve traceback display when handling ``ImportError``s for dependencies. Thanks to David Wolever for the patches. - [Bug] #446: Add QNX to list of secondary-case sed targets. Thanks to Rodrigo Madruga for the tip. - [Bug] #443: exists didn’t expand tildes; now it does. Thanks to Riccardo Magliocchetti for the patch. - [Bug] #437: with_settings now correctly preserves the wrapped function’s docstring and other attributes. Thanks to Eric Buckley for the catch and Luke Plant for the patch. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=13
2012-01-13 16:38:10 +00:00
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
- Update to 1.4.0: - [Bug] #495: Fixed documentation example showing how to subclass Task. Thanks to Brett Haydon for the catch and Mark Merritt for the patch. - [Bug] #410: Fixed a bug where using the task decorator inside/under another decorator such as hosts could cause that task to become invalid when invoked by name (due to how old-style vs new-style tasks are detected.) Thanks to Dan Colish for the initial patch. - [Feature] #559: rsync_project now allows users to append extra SSH-specific arguments to rsync‘s --rsh flag. - [Feature] #138: env.port may now be written to at fabfile module level to set a default nonstandard port number. Previously this value was read-only. - [Feature] #3: Fabric can now load a subset of SSH config functionality directly from your local ~/.ssh/config if env.use_ssh_config is set to True. See Leveraging native SSH config files for details. Thanks to Kirill Pinchuk for the initial patch. - [Feature] #12: Added the ability to try connecting multiple times to temporarily-down remote systems, instead of immediately failing. (Default behavior is still to only try once.) See env.timeout and env.connection_attempts for controlling both connection timeouts and total number of attempts. reboot has also been overhauled (but practically deprecated – see its updated docs.) - [Feature] #474: execute now allows you to access the executed task’s return values, by itself returning a dictionary whose keys are the host strings executed against. - [Bug] #487: Overhauled the regular expression escaping performed in append and contains to try and handle more corner cases. Thanks to Neilen Marais for the patch. - [Support] #532: Reorganized and cleaned up the output of fab --help. - [Feature] #8: Added --skip-bad-hosts/env.skip_bad_hosts option to OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=14
2012-02-14 11:57:06 +00:00
Name: python-Fabric
- Update to 1.4.0: - [Bug] #495: Fixed documentation example showing how to subclass Task. Thanks to Brett Haydon for the catch and Mark Merritt for the patch. - [Bug] #410: Fixed a bug where using the task decorator inside/under another decorator such as hosts could cause that task to become invalid when invoked by name (due to how old-style vs new-style tasks are detected.) Thanks to Dan Colish for the initial patch. - [Feature] #559: rsync_project now allows users to append extra SSH-specific arguments to rsync‘s --rsh flag. - [Feature] #138: env.port may now be written to at fabfile module level to set a default nonstandard port number. Previously this value was read-only. - [Feature] #3: Fabric can now load a subset of SSH config functionality directly from your local ~/.ssh/config if env.use_ssh_config is set to True. See Leveraging native SSH config files for details. Thanks to Kirill Pinchuk for the initial patch. - [Feature] #12: Added the ability to try connecting multiple times to temporarily-down remote systems, instead of immediately failing. (Default behavior is still to only try once.) See env.timeout and env.connection_attempts for controlling both connection timeouts and total number of attempts. reboot has also been overhauled (but practically deprecated – see its updated docs.) - [Feature] #474: execute now allows you to access the executed task’s return values, by itself returning a dictionary whose keys are the host strings executed against. - [Bug] #487: Overhauled the regular expression escaping performed in append and contains to try and handle more corner cases. Thanks to Neilen Marais for the patch. - [Support] #532: Reorganized and cleaned up the output of fab --help. - [Feature] #8: Added --skip-bad-hosts/env.skip_bad_hosts option to OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=14
2012-02-14 11:57:06 +00:00
Version: 1.4.0
Release: 0
Summary: Fabric is a simple, Pythonic tool for remote execution and deployment
License: BSD-2-Clause
Group: Development/Languages/Python
- Update to version 1.4.0: * :bug:495 Fixed documentation example showing how to subclass ~fabric.tasks.Task. Thanks to Brett Haydon for the catch and Mark Merritt for the patch. * :bug:410 Fixed a bug where using the ~fabric.decorators.task decorator inside/under another decorator such as ~fabric.decorators.hosts could cause that task to become invalid when invoked by name (due to how old-style vs new-style tasks are detected.) Thanks to Dan Colish for the initial patch. * :feature:559 ~fabric.contrib.project.rsync_project now allows users to append extra SSH-specific arguments to rsync's --rsh flag. * :feature:138 :ref:env.port <port> may now be written to at fabfile module level to set a default nonstandard port number. Previously this value was * :feature:3 Fabric can now load a subset of SSH config functionality directly from your local ~/.ssh/config if :ref:env.use_ssh_config <use-ssh-config> is set to True. See :ref:ssh-config for details. Thanks to Kirill Pinchuk for the initial patch. * :feature:12 Added the ability to try connecting multiple times to temporarily-down remote systems, instead of immediately failing. (Default behavior is still to only try once.) See :ref:env.timeout <timeout> and :ref:env.connection_attempts <connection-attempts> for controlling both connection timeouts and total number of attempts. ~fabric.operations.reboot has also been overhauled (but practically deprecated -- see its updated docs.) * :feature:474 ~fabric.tasks.execute now allows you to access the executed task's return values, by itself returning a dictionary whose keys are the * :bug:487 Overhauled the regular expression escaping performed in ~fabric.contrib.files.append and ~fabric.contrib.files.contains to try and handle more corner cases. Thanks to Neilen Marais for the patch. * :support:532 Reorganized and cleaned up the output of fab --help. * :feature:8 Added :option:--skip-bad-hosts/:ref:env.skip_bad_hosts OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=17
2012-02-20 22:17:34 +00:00
Url: http://fabfile.org
Source: Fabric-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-distribute
#BuildRequires: python-fudge
#BuildRequires: python-ssh
Requires: python-distribute
- Update to version 1.4.0: * :bug:495 Fixed documentation example showing how to subclass ~fabric.tasks.Task. Thanks to Brett Haydon for the catch and Mark Merritt for the patch. * :bug:410 Fixed a bug where using the ~fabric.decorators.task decorator inside/under another decorator such as ~fabric.decorators.hosts could cause that task to become invalid when invoked by name (due to how old-style vs new-style tasks are detected.) Thanks to Dan Colish for the initial patch. * :feature:559 ~fabric.contrib.project.rsync_project now allows users to append extra SSH-specific arguments to rsync's --rsh flag. * :feature:138 :ref:env.port <port> may now be written to at fabfile module level to set a default nonstandard port number. Previously this value was * :feature:3 Fabric can now load a subset of SSH config functionality directly from your local ~/.ssh/config if :ref:env.use_ssh_config <use-ssh-config> is set to True. See :ref:ssh-config for details. Thanks to Kirill Pinchuk for the initial patch. * :feature:12 Added the ability to try connecting multiple times to temporarily-down remote systems, instead of immediately failing. (Default behavior is still to only try once.) See :ref:env.timeout <timeout> and :ref:env.connection_attempts <connection-attempts> for controlling both connection timeouts and total number of attempts. ~fabric.operations.reboot has also been overhauled (but practically deprecated -- see its updated docs.) * :feature:474 ~fabric.tasks.execute now allows you to access the executed task's return values, by itself returning a dictionary whose keys are the * :bug:487 Overhauled the regular expression escaping performed in ~fabric.contrib.files.append and ~fabric.contrib.files.contains to try and handle more corner cases. Thanks to Neilen Marais for the patch. * :support:532 Reorganized and cleaned up the output of fab --help. * :feature:8 Added :option:--skip-bad-hosts/:ref:env.skip_bad_hosts OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=17
2012-02-20 22:17:34 +00:00
Requires: python-ssh
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
Fabric is a Python (2.5 or higher) library and command-line tool for
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
commands (normally or via sudo) and uploading/downloading files, as well as
auxiliary functionality such as prompting the running user for input, or
aborting execution.
Typical use involves creating a Python module containing one or more functions,
then executing them via the fab command-line tool. Below is a small but
complete "fabfile" containing a single task:
from fabric.api import run
def host_type():
run('uname -s')
Once a task is defined, it may be run on one or more servers, like so:
$ fab -H localhost,linuxbox host_type
[localhost] run: uname -s
[localhost] out: Darwin
[linuxbox] run: uname -s
[linuxbox] out: Linux
Done.
Disconnecting from localhost... done.
Disconnecting from linuxbox... done.
In addition to use via the fab tool, Fabric's components may be imported
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
Fabric itself leverages.)
%prep
%setup -q -n Fabric-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
#%%check
#python setup.py test
- Update to version 1.4.0: * :bug:495 Fixed documentation example showing how to subclass ~fabric.tasks.Task. Thanks to Brett Haydon for the catch and Mark Merritt for the patch. * :bug:410 Fixed a bug where using the ~fabric.decorators.task decorator inside/under another decorator such as ~fabric.decorators.hosts could cause that task to become invalid when invoked by name (due to how old-style vs new-style tasks are detected.) Thanks to Dan Colish for the initial patch. * :feature:559 ~fabric.contrib.project.rsync_project now allows users to append extra SSH-specific arguments to rsync's --rsh flag. * :feature:138 :ref:env.port <port> may now be written to at fabfile module level to set a default nonstandard port number. Previously this value was * :feature:3 Fabric can now load a subset of SSH config functionality directly from your local ~/.ssh/config if :ref:env.use_ssh_config <use-ssh-config> is set to True. See :ref:ssh-config for details. Thanks to Kirill Pinchuk for the initial patch. * :feature:12 Added the ability to try connecting multiple times to temporarily-down remote systems, instead of immediately failing. (Default behavior is still to only try once.) See :ref:env.timeout <timeout> and :ref:env.connection_attempts <connection-attempts> for controlling both connection timeouts and total number of attempts. ~fabric.operations.reboot has also been overhauled (but practically deprecated -- see its updated docs.) * :feature:474 ~fabric.tasks.execute now allows you to access the executed task's return values, by itself returning a dictionary whose keys are the * :bug:487 Overhauled the regular expression escaping performed in ~fabric.contrib.files.append and ~fabric.contrib.files.contains to try and handle more corner cases. Thanks to Neilen Marais for the patch. * :support:532 Reorganized and cleaned up the output of fab --help. * :feature:8 Added :option:--skip-bad-hosts/:ref:env.skip_bad_hosts OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=17
2012-02-20 22:17:34 +00:00
%files
%defattr(-,root,root,-)
- Update to version 1.4.0: * :bug:495 Fixed documentation example showing how to subclass ~fabric.tasks.Task. Thanks to Brett Haydon for the catch and Mark Merritt for the patch. * :bug:410 Fixed a bug where using the ~fabric.decorators.task decorator inside/under another decorator such as ~fabric.decorators.hosts could cause that task to become invalid when invoked by name (due to how old-style vs new-style tasks are detected.) Thanks to Dan Colish for the initial patch. * :feature:559 ~fabric.contrib.project.rsync_project now allows users to append extra SSH-specific arguments to rsync's --rsh flag. * :feature:138 :ref:env.port <port> may now be written to at fabfile module level to set a default nonstandard port number. Previously this value was * :feature:3 Fabric can now load a subset of SSH config functionality directly from your local ~/.ssh/config if :ref:env.use_ssh_config <use-ssh-config> is set to True. See :ref:ssh-config for details. Thanks to Kirill Pinchuk for the initial patch. * :feature:12 Added the ability to try connecting multiple times to temporarily-down remote systems, instead of immediately failing. (Default behavior is still to only try once.) See :ref:env.timeout <timeout> and :ref:env.connection_attempts <connection-attempts> for controlling both connection timeouts and total number of attempts. ~fabric.operations.reboot has also been overhauled (but practically deprecated -- see its updated docs.) * :feature:474 ~fabric.tasks.execute now allows you to access the executed task's return values, by itself returning a dictionary whose keys are the * :bug:487 Overhauled the regular expression escaping performed in ~fabric.contrib.files.append and ~fabric.contrib.files.contains to try and handle more corner cases. Thanks to Neilen Marais for the patch. * :support:532 Reorganized and cleaned up the output of fab --help. * :feature:8 Added :option:--skip-bad-hosts/:ref:env.skip_bad_hosts OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=17
2012-02-20 22:17:34 +00:00
%doc AUTHORS LICENSE README
%{_bindir}/fab
%{python_sitelib}/*
%changelog