diff options
author | gls <gls@pkgsrc.org> | 2011-03-08 21:29:34 +0000 |
---|---|---|
committer | gls <gls@pkgsrc.org> | 2011-03-08 21:29:34 +0000 |
commit | a01364ed3bf2bb321aa75f6c9ad322c327b903d4 (patch) | |
tree | da21670b1162d668dba3f5e85b80a19b880ccfc9 /sysutils/fabric | |
parent | 0307e926aaab29bfb9817e78e1bf4dfe836c012d (diff) | |
download | pkgsrc-a01364ed3bf2bb321aa75f6c9ad322c327b903d4.tar.gz |
Update sysutils/fabric to 1.0.0
Pkgsrc changes:
- Confirm it's working with python27
Upstream changes:
Changes in version 1.0
This page lists all changes made to Fabric in its 1.0.0 release.
Highlights
* #7: run/sudo now allow full interactivity with the remote end. You can
interact with remote prompts and similar interfaces, making certain tasks much
easier, and freeing you from the need to find noninteractive solutions if you
don't want to. See Interaction with remote programs for more on these changes.
* put and get received many updates, including but not limited to: recursion,
globbing, inline sudo capability, and increased control over local file paths.
See the individual ticket line-items below for details. Erich Heine (sophacles
on IRC) played a large part in implementing and/or collecting these changes and
deserves much of the credit.
* Added functionality for loading fabfiles which are Python packages
(directories) instead of just modules (single files). This allows for easier
organization of nontrivial fabfiles and paves the way for task namespacing in
the near future. See Fabfile discovery for details.
* #185: Mostly of interest to those contributing to Fabric itself, Fabric
now leverages Paramiko to provide a stub SSH and SFTP server for use during runs
of our test suite. This makes quick, configurable full-stack testing of Fabric
(and, to an extent, user fabfiles) possible.
Backwards-incompatible changes
The below changes are backwards incompatible and have the potential to break
your 0.9.x based fabfiles!
* contains and append previously had the filename argument in the second
position, whereas all other functions in the contrib.files module had filename
as the first argument. These two functions have been brought in line with the
rest of the module.
* sed now escapes single-quotes and parentheses in addition to forward
slashes, in its before and after kwargs. Related to, but not entirely contained
within, #159.
* The user and pty kwargs in sudo's signature have had their order swapped
around to more closely match run.
* As part of the changes made in #7, run and sudo have had the default value
of their pty kwargs changed from False to True. This, plus the addition of the
combine_stderr kwarg/env var, may result in significant behavioral changes in
remote programs which operate differently when attached to a tty.
* #61: put and get now honor the remote current-working-directory changes
applied by cd. Previously they would always treat relative remote paths as being
relative to the remote home directory.
* #79: get now allows increased control over local filenames when downloading
single or multiple files. This is backwards incompatible because the default
path/filename for downloaded files has changed. Thanks to Juha Mustonen, Erich
Heine and Max Arnold for brainstorming solutions.
* #88: local has changed the default value of its capture kwarg, from True
to False. This was changed in order to be more intuitive, at the cost of no
longer defaulting to the same rich return value as in run/sudo (which is still
available by specifying capture=True.)
* #121: put will no longer automatically attempt to mirror local file modes.
Instead, you?ll need to specify mirror_local_mode=True to get this behavior.
Thanks to Paul Smith for a patch covering part of this change.
* #172: append has changed the default value of its partial kwarg from True
to False in order to be safer/more intuitive.
* #221: runs_once now memoizes the wrapped task's return value and returns
that value on subsequent invocations, instead of returning None. Thanks to Jacob
Kaplan-Moss and Travis Swicegood for catch + patch.
Feature additions
* Prerelease versions of Fabric (starting with the 1.0 prereleases) will now
print the Git SHA1 hash of the current checkout, if the user is working off of a
Git clone of the Fabric source code repository.
* Added path context manager for modifying commands? effective $PATH.
* Added convenience .succeeded attribute to the return values of
run/sudo/local which is simply the opposite of the .failed attribute. (This
addition has also been backported to Fabric's 0.9 series.)
* Refactored SSH disconnection code out of the main fab loop into
disconnect_all, allowing library users to avoid problems with non-fabfile Python
scripts hanging after execution finishes.
* #2: Added use_sudo kwarg to put to allow uploading of files to privileged
locations. Thanks to Erich Heine and IRC user npmap for suggestions and patches.
* #23: Added prefix context manager for easier management of persistent state
across commands.
* #27: Added environment variable (always_use_pty) and command-line flag
(--no-pty) for global control over the run/sudo pty argument.
* #28: Allow shell-style globbing in get. Thanks to Erich Heine and Max Arnold.
* #55: run, sudo and local now provide access to their standard error (stderr)
as an attribute on the return value, alongside e.g. .failed.
* #148: local now returns the same 'rich' string object as run/sudo do, so
that it is a string containing the command's stdout (if capture=True) or the
empty string (if capture=False) which exposes the .failed and .return_code
attributes, and so forth.
* #151: Added a puts utility function, which allows greater control over
fabfile-generated (as opposed to Fabric-generated) output. Also added fastprint,
an alias to puts allowing for convenient unbuffered, non-newline-terminated
printing.
* #192: Added per-user/host password cache to assist in multi-connection
scenarios.
* #193: When requesting a remote pseudo-terminal, use the invoking terminal's
dimensions instead of going with the default.
* #217: get/put now accept file-like objects as well as local file paths for
their local_path arguments.
* #245: Added the lcd context manager for controlling local's current working
directory and put/get's local working directories.
* #274: put/get now have return values which may be iterated over to access
the paths of files uploaded remotely or downloaded locally, respectively. These
return values also allow access to .failed and .succeeded attributes, just like
run and friends. (In this case, .failed is actually a list itself containing any
paths which failed to transfer, which naturally acts as a boolean as well.)
Bugfixes
* N/A
Documentation updates
* API, tutorial and usage docs updated with the above new features.
* README now makes the Python 2.5+ requirement up front and explicit; some
folks were still assuming it would run on Python 2.4.
* Added a link to Python?s documentation for string interpolation in
upload_template's docstring.
Changes in version 0.9.5
The following changes were implemented in Fabric 0.9.5:
Bugfixes
* #264: Fix edge case in reboot by gracefully clearing connection cache.
* #268: Allow for @ symbols in usernames, which is valid on some systems.
Fabric's host-string parser now splits username and hostname at the last @
found instead of the first.
Diffstat (limited to 'sysutils/fabric')
-rw-r--r-- | sysutils/fabric/Makefile | 4 | ||||
-rw-r--r-- | sysutils/fabric/PLIST | 19 | ||||
-rw-r--r-- | sysutils/fabric/distinfo | 10 | ||||
-rw-r--r-- | sysutils/fabric/patches/patch-aa | 10 |
4 files changed, 29 insertions, 14 deletions
diff --git a/sysutils/fabric/Makefile b/sysutils/fabric/Makefile index f2b4290fce8..28cd00c5589 100644 --- a/sysutils/fabric/Makefile +++ b/sysutils/fabric/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.8 2011/02/26 22:09:26 gls Exp $ +# $NetBSD: Makefile,v 1.9 2011/03/08 21:29:34 gls Exp $ # -VERSION= 0.9.4 +VERSION= 1.0.0 DISTNAME= Fabric-${VERSION} PKGNAME= ${DISTNAME:S/F/f/} CATEGORIES= sysutils net diff --git a/sysutils/fabric/PLIST b/sysutils/fabric/PLIST index 7480a9c24c8..f425ee6939f 100644 --- a/sysutils/fabric/PLIST +++ b/sysutils/fabric/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2011/02/24 21:43:45 gls Exp $ +@comment $NetBSD: PLIST,v 1.5 2011/03/08 21:29:34 gls Exp $ bin/fab ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt @@ -11,6 +11,9 @@ ${PYSITELIB}/fabric/__init__.pyo ${PYSITELIB}/fabric/api.py ${PYSITELIB}/fabric/api.pyc ${PYSITELIB}/fabric/api.pyo +${PYSITELIB}/fabric/auth.py +${PYSITELIB}/fabric/auth.pyc +${PYSITELIB}/fabric/auth.pyo ${PYSITELIB}/fabric/colors.py ${PYSITELIB}/fabric/colors.pyc ${PYSITELIB}/fabric/colors.pyo @@ -35,6 +38,9 @@ ${PYSITELIB}/fabric/contrib/project.pyo ${PYSITELIB}/fabric/decorators.py ${PYSITELIB}/fabric/decorators.pyc ${PYSITELIB}/fabric/decorators.pyo +${PYSITELIB}/fabric/io.py +${PYSITELIB}/fabric/io.pyc +${PYSITELIB}/fabric/io.pyo ${PYSITELIB}/fabric/main.py ${PYSITELIB}/fabric/main.pyc ${PYSITELIB}/fabric/main.pyo @@ -44,9 +50,15 @@ ${PYSITELIB}/fabric/network.pyo ${PYSITELIB}/fabric/operations.py ${PYSITELIB}/fabric/operations.pyc ${PYSITELIB}/fabric/operations.pyo +${PYSITELIB}/fabric/sftp.py +${PYSITELIB}/fabric/sftp.pyc +${PYSITELIB}/fabric/sftp.pyo ${PYSITELIB}/fabric/state.py ${PYSITELIB}/fabric/state.pyc ${PYSITELIB}/fabric/state.pyo +${PYSITELIB}/fabric/thread_handling.py +${PYSITELIB}/fabric/thread_handling.pyc +${PYSITELIB}/fabric/thread_handling.pyo ${PYSITELIB}/fabric/utils.py ${PYSITELIB}/fabric/utils.pyc ${PYSITELIB}/fabric/utils.pyo @@ -67,8 +79,10 @@ share/doc/fabric/api/core/utils.rst share/doc/fabric/changes/0.9.1.rst share/doc/fabric/changes/0.9.2.rst share/doc/fabric/changes/0.9.3.rst -share/doc/fabric/changes/${PKGVERSION}.rst +share/doc/fabric/changes/0.9.4.rst +share/doc/fabric/changes/0.9.5.rst share/doc/fabric/changes/0.9.rst +share/doc/fabric/changes/1.0.rst share/doc/fabric/development.rst share/doc/fabric/faq.rst share/doc/fabric/index.rst @@ -78,6 +92,7 @@ share/doc/fabric/usage/env.rst share/doc/fabric/usage/execution.rst share/doc/fabric/usage/fab.rst share/doc/fabric/usage/fabfiles.rst +share/doc/fabric/usage/interactivity.rst share/doc/fabric/usage/library.rst share/doc/fabric/usage/output_controls.rst share/doc/fabric/usage/ssh.rst diff --git a/sysutils/fabric/distinfo b/sysutils/fabric/distinfo index 14a36efbf10..37cc11694be 100644 --- a/sysutils/fabric/distinfo +++ b/sysutils/fabric/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.4 2011/02/24 21:43:45 gls Exp $ +$NetBSD: distinfo,v 1.5 2011/03/08 21:29:34 gls Exp $ -SHA1 (Fabric-0.9.4.tar.gz) = 52cf2a52a8a627321726d69b4cae54284edf4ff0 -RMD160 (Fabric-0.9.4.tar.gz) = de180bf228ee438f67d17d7f7d31c26b66adb9ba -Size (Fabric-0.9.4.tar.gz) = 92846 bytes -SHA1 (patch-aa) = 2fe723c5213965a95befdc4ab1e01616d2032827 +SHA1 (Fabric-1.0.0.tar.gz) = a2e5e69580a48b3076afa8f774f8fd806c65cadb +RMD160 (Fabric-1.0.0.tar.gz) = 57788c813460e41dd9e4da237a507cb0861fc0e4 +Size (Fabric-1.0.0.tar.gz) = 129804 bytes +SHA1 (patch-aa) = 1317520fc620fc3fe329408408e144998a1bd24f diff --git a/sysutils/fabric/patches/patch-aa b/sysutils/fabric/patches/patch-aa index 1e8ddff28a7..9117e6a56a0 100644 --- a/sysutils/fabric/patches/patch-aa +++ b/sysutils/fabric/patches/patch-aa @@ -1,15 +1,15 @@ -$NetBSD: patch-aa,v 1.2 2010/12/06 23:12:34 gls Exp $ +$NetBSD: patch-aa,v 1.3 2011/03/08 21:29:34 gls Exp $ Disable setuptools usage ---- setup.py.orig 2010-11-12 20:57:34.000000000 +0000 +--- setup.py.orig 2011-03-05 06:37:11.000000000 +0000 +++ setup.py -@@ -38,7 +38,7 @@ setup( +@@ -35,7 +35,7 @@ setup( packages=find_packages(), test_suite='nose.collector', tests_require=['nose', 'fudge'], -- install_requires=['pycrypto %s' % PYCRYPTO, 'paramiko >=1.7.6'], -+# install_requires=['pycrypto %s' % PYCRYPTO, 'paramiko >=1.7.6'], +- install_requires=['pycrypto >= 1.9', 'paramiko >=1.7.6'], ++# install_requires=['pycrypto >= 1.9', 'paramiko >=1.7.6'], entry_points={ 'console_scripts': [ 'fab = fabric.main:main', |