Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37854709
en ru br
ALT Linux repositórios
S:0.26.2-alt2

Group :: Development/Python3
RPM: python3-module-argh

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: python3-module-argh-0.26.2-alt.patch
Download


 .gear/argh.spec          | 77 ++++++++++++++++++++++++++++++++++++++++++++++++
 .gear/rules              |  3 ++
 .gear/tags/list          |  1 +
 .gear/upstream/remotes   |  3 ++
 test/test_integration.py |  9 +++---
 5 files changed, 88 insertions(+), 5 deletions(-)
diff --git a/.gear/argh.spec b/.gear/argh.spec
new file mode 100644
index 0000000..2eec050
--- /dev/null
+++ b/.gear/argh.spec
@@ -0,0 +1,77 @@
+%define _unpackaged_files_terminate_build 1
+
+%define oname argh
+%def_with check
+
+Name: python3-module-%oname
+Version: 0.26.2
+Release: alt1
+Summary: An unobtrusive argparse wrapper with natural syntax
+License: LGPLv3
+Group: Development/Python3
+Url: https://pypi.org/project/argh/
+
+# https://github.com/neithere/argh.git
+Source: %name-%version.tar
+Patch0: %name-%version-alt.patch
+
+BuildArch: noarch
+
+BuildRequires(pre): rpm-build-python3
+
+%if_with check
+BuildRequires: python3(mock)
+BuildRequires: python3(tox)
+%endif
+
+%description
+An argparse wrapper that doesn't make you say "argh" each time you deal
+with it.
+
+http://argh.rtfd.org
+
+%prep
+%setup
+%autopatch -p1
+
+%build
+%python3_build_debug
+
+%install
+%python3_install
+
+%check
+cat > tox.ini <<EOF
+[testenv]
+commands =
+    {envpython} -m pytest {posargs:-vra}
+EOF
+export PIP_NO_INDEX=YES
+export TOXENV=py3
+tox.py3 --sitepackages -vvr
+
+%files
+%doc AUTHORS CHANGES *.rst
+%python3_sitelibdir/*
+
+%changelog
+* Tue Sep 08 2020 Stanislav Levin <slev@altlinux.org> 0.26.2-alt1
+- 0.26.1 -> 0.26.2.
+- Stopped Python2 package build.
+
+* Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 0.26.1-alt1.git20141030.2.1
+- (NMU) Fix Requires and BuildRequires to python-setuptools
+
+* Mon Jul 17 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 0.26.1-alt1.git20141030.2
+- Fixed build spec with pytest3
+
+* Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.26.1-alt1.git20141030.1.1
+- (NMU) rebuild with rpm-build-python3-0.1.9
+  (for common python3/site-packages/ and auto python3.3-ABI dep when needed)
+
+* Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 0.26.1-alt1.git20141030.1
+- NMU: Use buildreq for BR.
+
+* Sat Nov 22 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.26.1-alt1.git20141030
+- Initial build for Sisyphus
+
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..a222a8e
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,3 @@
+spec: .gear/argh.spec
+tar: v@version@:.
+diff: v@version@:. . name=@name@-@version@-alt.patch
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..e413089
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+06b6bb19a5da3b338918d5e84d5068a5aaf50911 v0.26.2
diff --git a/.gear/upstream/remotes b/.gear/upstream/remotes
new file mode 100644
index 0000000..cfb720d
--- /dev/null
+++ b/.gear/upstream/remotes
@@ -0,0 +1,3 @@
+[remote "upstream"]
+	url = https://github.com/neithere/argh.git
+	fetch = +refs/heads/*:refs/remotes/upstream/*
diff --git a/test/test_integration.py b/test/test_integration.py
index 8899d8e..649f576 100644
--- a/test/test_integration.py
+++ b/test/test_integration.py
@@ -7,7 +7,6 @@ import sys
 import re
 import argparse
 
-import iocapture
 import mock
 import pytest
 
@@ -761,7 +760,7 @@ def test_help_formatting_is_preserved():
     assert func.__doc__ in p.format_help()
 
 
-def test_prog():
+def test_prog(capsys):
     "Program name propagates from sys.argv[0]"
 
     def cmd(foo=1):
@@ -772,9 +771,9 @@ def test_prog():
 
     usage = get_usage_string()
 
-    with iocapture.capture() as captured:
-        assert run(p, '-h', exit=True) == None
-        assert captured.stdout.startswith(usage)
+    assert run(p, '-h', exit=True) == None
+    captured = capsys.readouterr()
+    assert captured.out.startswith(usage)
 
 
 def test_unknown_args():
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009