14
0
forked from pool/python-Fabric

osc copypac from project:devel:languages:python package:python-fabric revision:13

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=1
This commit is contained in:
Alexandre Rogoski
2011-06-07 23:19:53 +00:00
committed by Git OBS Bridge
commit 859cd177dd
5 changed files with 218 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
Fabric-1.0.1.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1cc216d1b39048f5a5082833da852f288ba39f801912db7e76a6cea2311a9f21
size 104709

90
python-fabric.changes Normal file
View File

@@ -0,0 +1,90 @@
-------------------------------------------------------------------
Tue Mar 29 01:21:24 UTC 2011 - alexandre@exatati.com.br
- Update to 1.0.1:
- #301: Fixed a bug in locals behavior when capture=False and
output.stdout (or .stderr) was also False. Thanks to Chris Rose
for the catch.
- #310: Update edge case in put where using the mode kwarg
alongside use_sudo=True runs a hidden sudo command. The mode
kwarg needs to be octal but was being interpolated in the sudo
call as a string/integer. Thanks to Adam Ernst for the catch
and suggested fix.
- #311: append was supposed to have its partial kwargs default
flipped from True to False. However, only the documentation was
altered. This has been fixed. Thanks to Adam Ernst for bringing
it to our attention.
- #312: Tweak internal I/O related loops to prevent high CPU
usage and poor screen-printing behavior on some systems. Thanks
to Kirill Pinchuk for the initial patch.
- #320: Some users reported problems with dropped input,
particularly while entering sudo passwords. This was fixed via
the same change as for #312.
- Regenerate spec file with py2pack;
- Add README file as documentation.
-------------------------------------------------------------------
Sat Mar 5 15:36:59 UTC 2011 - alexandre@exatati.com.br
- Update to 1.0.0:
- #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 dont 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.
- To check feature additions and backwards-incompatible changes
please check:
http://readthedocs.org/docs/fabric/en/1.0.0/changes/1.0.html
-------------------------------------------------------------------
Sat Feb 19 10:29:31 UTC 2011 - alexandre@exatati.com.br
- Update to 0.9.4:
- Added documentation for using Fabric as a library.
- Mentioned our Twitter account on the main docs page.
- #290: Added escape kwarg to append to allow control over
previously automatic single-quote escaping.
-------------------------------------------------------------------
Mon Nov 15 23:54:11 UTC 2010 - alexandre@exatati.com.br
- Update to 0.9.3;
- Fixed Requires and BuildRequires in spec file.
-------------------------------------------------------------------
Wed Sep 8 01:26:05 UTC 2010 - alexandre@exatati.com.br
- Update to 0.9.2.
-------------------------------------------------------------------
Sat May 29 11:30:45 UTC 2010 - alexandre@exatati.com.br
- Update to 0.9.1;
- Building as noarch for openSUSE >= 11.2.
- Spec file cleaned with spec-cleaner.
-------------------------------------------------------------------
Fri Mar 5 18:14:25 UTC 2010 - nix@opensuse.org
- Update to 0.9.0
-------------------------------------------------------------------
Tue Sep 15 11:18:46 UTC 2009 - alexandre@exatati.com.br
- Initial package (0.1.1) for openSUSE.

101
python-fabric.spec Normal file
View File

@@ -0,0 +1,101 @@
#
# spec file for package python-fabric
#
# Copyright (c) 2011 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/
#
# norootforbuild
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define mod_name fabric
Name: python-%{mod_name}
Version: 1.0.1
Release: 0
Url: http://fabfile.org
Summary: Fabric is a simple, Pythonic tool for remote execution and deployment
License: GPL
Group: Development/Languages/Python
Source: Fabric-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-paramiko >= 1.7.6
Requires: python-setuptools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%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
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
# You may have to add additional files here (documentation and binaries mostly)
%{_bindir}/fab
%python_sitelib/%{mod_name}*
%python_sitelib/*.egg-info
%doc README
%changelog