forked from pool/python-sh
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
This commit is contained in:
commit
fa1f16b5a3
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
1.08.tar.gz
Normal file
3
1.08.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4b9700496659e1aa44bb2292ecb6c7d0c5d7763b184fd7eac37df0f2ded4bae8
|
||||
size 26310
|
5
python-sh.changes
Normal file
5
python-sh.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 20 08:51:22 UTC 2014 - mvyskocil@opensuse.org
|
||||
|
||||
- package python-sh 1.08 for openSUSE
|
||||
|
67
python-sh.spec
Normal file
67
python-sh.spec
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user