forked from pool/python-knack
- Remove patch as the test fail properly as the pkg does not support
python2: * k_skip-broken-tests.patch - Fix the version field OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-knack?expand=0&rev=21
This commit is contained in:
committed by
Git OBS Bridge
parent
0f67e1d19a
commit
f1efb70c23
@@ -1,21 +0,0 @@
|
||||
diff -Nru knack-0.7.0rc1.orig/tests/test_output.py knack-0.7.0rc1/tests/test_output.py
|
||||
--- knack-0.7.0rc1.orig/tests/test_output.py 2020-03-20 06:39:38.000000000 +0100
|
||||
+++ knack-0.7.0rc1/tests/test_output.py 2020-04-02 17:41:48.453582516 +0200
|
||||
@@ -120,7 +120,7 @@
|
||||
"""active: true
|
||||
id: 0b1f6472
|
||||
"""))
|
||||
-
|
||||
+ @unittest.skip("Skip test currently failing on openSUSE")
|
||||
def test_out_yaml_byte(self):
|
||||
output_producer = OutputProducer(cli_ctx=self.mock_ctx)
|
||||
output_producer.out(CommandResultItem({'active': True, 'contents': b'0b1f6472'}),
|
||||
@@ -130,7 +130,7 @@
|
||||
contents: !!binary |
|
||||
MGIxZjY0NzI=
|
||||
"""))
|
||||
-
|
||||
+ @unittest.skip("Skip test currently failing on openSUSE")
|
||||
def test_out_yaml_byte_empty(self):
|
||||
output_producer = OutputProducer(cli_ctx=self.mock_ctx)
|
||||
output_producer.out(CommandResultItem({'active': True, 'contents': b''}),
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 3 06:30:50 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Remove patch as the test fail properly as the pkg does not support
|
||||
python2:
|
||||
* k_skip-broken-tests.patch
|
||||
- Fix the version field
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 2 15:48:46 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
||||
@@ -17,15 +17,16 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define realver 0.7.0rc1
|
||||
Name: python-knack
|
||||
Version: 0.7.0rc1
|
||||
Version: 0.7.0~rc1
|
||||
Release: 0
|
||||
Summary: A Command-Line Interface framework
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/microsoft/knack
|
||||
Source: https://files.pythonhosted.org/packages/source/k/knack/knack-%{version}.tar.gz
|
||||
Patch: k_skip-broken-tests.patch
|
||||
Source: https://files.pythonhosted.org/packages/source/k/knack/knack-%{realver}.tar.gz
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module argcomplete}
|
||||
BuildRequires: %{python_module colorama}
|
||||
@@ -38,7 +39,6 @@ BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module tabulate}
|
||||
BuildRequires: %{python_module vcrpy}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-enum34
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyYAML
|
||||
Requires: python-argcomplete
|
||||
@@ -48,17 +48,13 @@ Requires: python-pygments
|
||||
Requires: python-six
|
||||
Requires: python-tabulate
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-enum34
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A Command-Line Interface framework
|
||||
|
||||
%prep
|
||||
%setup -q -n knack-%{version}
|
||||
%patch0 -p1
|
||||
%setup -q -n knack-%{realver}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user