From 7eb54eb911d3b41a740e3babee50ed3434a3773096a07a285149d162cd7e22f3 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Fri, 6 Oct 2017 13:56:56 +0000 Subject: [PATCH 1/2] Accepting request 532231 from devel:languages:python:singlespec-staging - singlespec auto-conversion - shortened description - conditionally enabled tests (they still fail) - update to 1.14.0 * minor bugfixes and feature support * see ful changelog at http://www.fabfile.org/changelog.html OBS-URL: https://build.opensuse.org/request/show/532231 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=50 --- Fabric-1.10.2.tar.gz | 3 -- Fabric-1.14.0.tar.gz | 3 ++ python-Fabric.changes | 11 +++++++ python-Fabric.spec | 72 ++++++++++++++++++------------------------- 4 files changed, 44 insertions(+), 45 deletions(-) delete mode 100644 Fabric-1.10.2.tar.gz create mode 100644 Fabric-1.14.0.tar.gz diff --git a/Fabric-1.10.2.tar.gz b/Fabric-1.10.2.tar.gz deleted file mode 100644 index e966bb7..0000000 --- a/Fabric-1.10.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:666a3da92273532d3a49dd1ac53e3d721c5ec2f2512cd7dddb7ce19e29e9f038 -size 212942 diff --git a/Fabric-1.14.0.tar.gz b/Fabric-1.14.0.tar.gz new file mode 100644 index 0000000..d42997c --- /dev/null +++ b/Fabric-1.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81572002a562b26df657ca10d06b5bcfc6fd56b53374037392c83d4a2158208f +size 219294 diff --git a/python-Fabric.changes b/python-Fabric.changes index d88b9ad..1e18db7 100644 --- a/python-Fabric.changes +++ b/python-Fabric.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Oct 6 13:41:22 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion +- shortened description +- conditionally enabled tests (they still fail) +- update to 1.14.0 + * minor bugfixes and feature support + * see ful changelog at http://www.fabfile.org/changelog.html + ------------------------------------------------------------------- Thu Feb 18 15:32:02 UTC 2016 - eshmarnev@suse.com @@ -666,3 +676,4 @@ Fri Mar 5 18:14:25 UTC 2010 - nix@opensuse.org Tue Sep 15 11:18:46 UTC 2009 - alexandre@exatati.com.br - Initial package (0.1.1) for openSUSE. + diff --git a/python-Fabric.spec b/python-Fabric.spec index d084e19..55cd447 100644 --- a/python-Fabric.spec +++ b/python-Fabric.spec @@ -1,7 +1,7 @@ # # spec file for package python-Fabric # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,31 +16,38 @@ # -%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 +%bcond_with test +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Fabric -Version: 1.10.2 +Version: 1.14.0 Release: 0 Summary: Fabric is a simple, Pythonic tool for remote execution and deployment License: BSD-2-Clause Group: Development/Languages/Python Url: http://fabfile.org -Source: https://pypi.python.org/packages/source/F/Fabric/Fabric-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/F/Fabric/Fabric-%{version}.tar.gz # Test requirements: #TODO: Disabled due to errors / fudge requirement #BuildRequires: python-fudge #BuildRequires: python-nose # Documentation requirements: -BuildRequires: python-Sphinx -BuildRequires: python-devel -BuildRequires: python-paramiko >= 1.10 -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module paramiko >= 1.10} +BuildRequires: %{python_module setuptools} +%if %{with test} +# SECTION test requirements +BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module fudge} +BuildRequires: %{python_module nose} +# /SECTION +%endif +BuildRequires: python-rpm-macros +BuildRequires: python3-Sphinx Requires: python-paramiko >= 1.10 Requires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages %description Fabric is a Python (2.5 or higher) library and command-line tool for @@ -52,27 +59,6 @@ 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 @@ -80,22 +66,24 @@ Fabric itself leverages.) %prep %setup -q -n Fabric-%{version} -#sed -i "s|fudge<1.0|fudge|" setup.py # Try testing with newer fudge +sed -i "s|fudge<1.0|fudge|" setup.py # Try testing with newer fudge %build -python setup.py build -python setup.py build_sphinx --source-dir=sites/docs && rm -r build/sphinx/html/.buildinfo +%python_build +python3 setup.py build_sphinx --source-dir=sites/docs && rm -r build/sphinx/html/.buildinfo && mv build/sphinx/html html %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -#%%check -#python setup.py test +%if %{with test} +%check +%python_exec setup.py test +%endif -%files +%files %{python_files} %defattr(-,root,root,-) -%doc AUTHORS LICENSE README.rst build/sphinx/html -%{_bindir}/fab +%doc AUTHORS LICENSE README.rst html +%python3_only %{_bindir}/fab %{python_sitelib}/* %changelog From d24f52526143eb211481c753222532a610f0899070da8969f030051f174aba59 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Fri, 6 Oct 2017 14:49:51 +0000 Subject: [PATCH 2/2] Accepting request 532236 from home:jengelh:branches:devel:languages:python - Rectify grammar issues in descriptions. OBS-URL: https://build.opensuse.org/request/show/532236 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=51 --- python-Fabric.changes | 5 +++++ python-Fabric.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-Fabric.changes b/python-Fabric.changes index 1e18db7..d649444 100644 --- a/python-Fabric.changes +++ b/python-Fabric.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 6 14:02:06 UTC 2017 - jengelh@inai.de + +- Rectify grammar issues in descriptions. + ------------------------------------------------------------------- Fri Oct 6 13:41:22 UTC 2017 - jmatejek@suse.com diff --git a/python-Fabric.spec b/python-Fabric.spec index 55cd447..59a450c 100644 --- a/python-Fabric.spec +++ b/python-Fabric.spec @@ -21,7 +21,7 @@ Name: python-Fabric Version: 1.14.0 Release: 0 -Summary: Fabric is a simple, Pythonic tool for remote execution and deployment +Summary: A Pythonic tool for remote execution and deployment License: BSD-2-Clause Group: Development/Languages/Python Url: http://fabfile.org @@ -50,7 +50,7 @@ BuildArch: noarch %python_subpackages %description -Fabric is a Python (2.5 or higher) library and command-line tool for +Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. @@ -59,10 +59,10 @@ 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. -In addition to use via the fab tool, Fabric's components may be imported +In addition to being used 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.) +Fabric itself leverages). %prep %setup -q -n Fabric-%{version}