Add patch because of old failing PyYAML

epel9
Adrien Vergé 5 years ago
parent b6a49c85f2
commit e2ef7c72c2

@ -0,0 +1,25 @@
From 1c85f6c244e5b71f625486cf6a0cb84402cc12f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20Verg=C3=A9?= <adrienverge@gmail.com>
Date: Wed, 15 Jul 2020 11:21:02 +0200
Subject: [PATCH] Skip test on quoted_strings failing if PyYAML is too old
---
tests/rules/test_quoted_strings.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/rules/test_quoted_strings.py b/tests/rules/test_quoted_strings.py
index d66cb0b..7c01441 100644
--- a/tests/rules/test_quoted_strings.py
+++ b/tests/rules/test_quoted_strings.py
@@ -360,7 +360,7 @@ class QuotedTestCase(RuleTestCase):
'k6: ":wq"\n', # fails
conf, problem1=(3, 5), problem2=(5, 5), problem3=(7, 5))
- def test_only_when_needed_extras(self):
+ def skip_test_only_when_needed_extras(self):
conf = ('quoted-strings:\n'
' required: true\n'
' extra-allowed: [^http://]\n')
--
2.26.2

@ -3,12 +3,13 @@
Name: %{pypi_name} Name: %{pypi_name}
Version: 1.23.0 Version: 1.23.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: A linter for YAML files Summary: A linter for YAML files
License: GPLv3+ License: GPLv3+
URL: https://github.com/adrienverge/yamllint URL: https://github.com/adrienverge/yamllint
Source0: https://pypi.python.org/packages/source/y/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Source0: https://pypi.python.org/packages/source/y/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0: 0001-Skip-test-on-quoted_strings-failing-if-PyYAML-is-too.patch
BuildArch: noarch BuildArch: noarch
Requires: python%{python3_pkgversion}-pathspec Requires: python%{python3_pkgversion}-pathspec
@ -29,7 +30,7 @@ repetition and cosmetic problems such as lines length, trailing spaces,
indentation, etc. indentation, etc.
%prep %prep
%autosetup -n %{pypi_name}-%{version} %autosetup -n %{pypi_name}-%{version} -p1
# Remove bundled egg-info # Remove bundled egg-info
rm -rf %{pypi_name}.egg-info rm -rf %{pypi_name}.egg-info
@ -53,6 +54,9 @@ rm -rf %{pypi_name}.egg-info
%exclude %{python3_sitelib}/tests %exclude %{python3_sitelib}/tests
%changelog %changelog
* Wed Jul 15 2020 Adrien Vergé <adrienverge@gmail.com> - 1.23.0-2
- Add patch because of old failing PyYAML
* Fri Apr 17 2020 Adrien Vergé <adrienverge@gmail.com> - 1.23.0-1 * Fri Apr 17 2020 Adrien Vergé <adrienverge@gmail.com> - 1.23.0-1
- Update to latest upstream version - Update to latest upstream version

Loading…
Cancel
Save