From fa1f16b5a3c80c5cd254de9944b803005d27a3a6b9c3b1bad0e5bdb2a369cf01 Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Thu, 30 Jan 2014 15:03:37 +0000 Subject: [PATCH] Accepting request 220377 from home:mvyskocil OBS-URL: https://build.opensuse.org/request/show/220377 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sh?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + 1.08.tar.gz | 3 +++ python-sh.changes | 5 ++++ python-sh.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 99 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 1.08.tar.gz create mode 100644 python-sh.changes create mode 100644 python-sh.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/1.08.tar.gz b/1.08.tar.gz new file mode 100644 index 0000000..0fb2ec1 --- /dev/null +++ b/1.08.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b9700496659e1aa44bb2292ecb6c7d0c5d7763b184fd7eac37df0f2ded4bae8 +size 26310 diff --git a/python-sh.changes b/python-sh.changes new file mode 100644 index 0000000..a176c97 --- /dev/null +++ b/python-sh.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Jan 20 08:51:22 UTC 2014 - mvyskocil@opensuse.org + +- package python-sh 1.08 for openSUSE + diff --git a/python-sh.spec b/python-sh.spec new file mode 100644 index 0000000..ada3c2d --- /dev/null +++ b/python-sh.spec @@ -0,0 +1,67 @@ +# +# spec file for package +# +# Copyright (c) 2014 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/ +# + +Name: python-sh +Version: 1.08 +Release: 0 +License: MIT +Summary: Python subprocess interface +Url: https://github.com/amoffat/sh +Group: Development/Languages/Python +Source0: https://github.com/amoffat/sh/archive/%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +BuildRequires: python-devel +BuildRequires: python-setuptools + +%description +sh (previously pbs) is a full-fledged subprocess +replacement for Python 2.6 - 3.2 that allows you to call +any program as if it were a function: + + from sh import ifconfig + print ifconfig("eth0") + +sh is not a collection of system commands implemented in +Python. + +%prep +%setup -q -n sh-%{version} + +%build +python setup.py build + +%install +python setup.py install \ + --prefix=%{_prefix} \ + --root=%{buildroot} + +# mvyskocil: FIXME, fails on test_non_ascii_error and test_unicode_arg +# with UnicodeEncodeError/UnicodeDecodeError +# % check +# python test.py + +%files +%defattr(0644,root,root) +%doc AUTHORS.md CHANGELOG.md LICENSE.txt README.md +%{python_sitelib}/sh.py +%{python_sitelib}/sh.pyc +%{python_sitelib}/sh-%{version}-*.egg-info + +%changelog +