commit python-yamllint for openSUSE:Leap:15.2

2020-04-20 Thread root
Hello community,

here is the log from the commit of package python-yamllint for 
openSUSE:Leap:15.2 checked in at 2020-04-20 12:55:36

Comparing /work/SRC/openSUSE:Leap:15.2/python-yamllint (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-yamllint.new.2738 (New)


Package is "python-yamllint"

Mon Apr 20 12:55:36 2020 rev:6 rq:795560 version:1.22.1

Changes:

--- /work/SRC/openSUSE:Leap:15.2/python-yamllint/python-yamllint.changes
2020-03-02 13:25:09.330612875 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-yamllint.new.2738/python-yamllint.changes  
2020-04-20 12:55:49.880760744 +0200
@@ -1,0 +2,12 @@
+Thu Apr 16 07:39:02 UTC 2020 - Tomáš Chvátal 
+
+- Update to 1.22.1:
+  * Fix quoted-strings rule with only-when-needed on corner cases
+  * Add check-keys option to the truthy rule
+  * Fix quoted-strings rule not working on sequences items
+  * Sunset Python 2
+  * Fix new-lines rule on Python 3 with DOS line endings
+  * Fix quoted-strings rule not working for string values matching scalars
+  * Add required: only-when-needed option to the quoted-strings rule
+
+---

Old:

  yamllint-1.20.0.tar.gz

New:

  yamllint-1.22.1.tar.gz



Other differences:
--
++ python-yamllint.spec ++
--- /var/tmp/diff_new_pack.sRjDLH/_old  2020-04-20 12:55:50.280761372 +0200
+++ /var/tmp/diff_new_pack.sRjDLH/_new  2020-04-20 12:55:50.284761378 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-yamllint
-Version:1.20.0
+Version:1.22.1
 Release:0
 Summary:A linter for YAML files
 License:GPL-3.0-only
@@ -30,6 +30,8 @@
 BuildRequires:  python-rpm-macros
 Requires:   python-PyYAML
 Requires:   python-pathspec >= 0.5.3
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
 # SECTION test requirements
 BuildRequires:  %{python_module PyYAML}
@@ -53,14 +55,22 @@
 %install
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%python_clone -a %{buildroot}%{_bindir}/yamllint
 
 %check
-%python_exec -m unittest discover
+export LANG="en_US.UTF8"
+%python_exec -m unittest discover -v
+
+%post
+%python_install_alternative yamllint
+
+%postun
+%python_uninstall_alternative yamllint
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%python3_only %{_bindir}/yamllint
+%python_alternative %{_bindir}/yamllint
 %{python_sitelib}/*
 
 %changelog

++ yamllint-1.20.0.tar.gz -> yamllint-1.22.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yamllint-1.20.0/PKG-INFO new/yamllint-1.22.1/PKG-INFO
--- old/yamllint-1.20.0/PKG-INFO2019-12-26 16:07:34.0 +0100
+++ new/yamllint-1.22.1/PKG-INFO2020-04-15 07:57:48.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: yamllint
-Version: 1.20.0
+Version: 1.22.1
 Summary: A linter for YAML files.
 Home-page: https://github.com/adrienverge/yamllint
 Author: Adrien Vergé
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yamllint-1.20.0/README.rst 
new/yamllint-1.22.1/README.rst
--- old/yamllint-1.20.0/README.rst  2019-07-07 18:14:22.0 +0200
+++ new/yamllint-1.22.1/README.rst  2020-04-10 16:31:09.0 +0200
@@ -21,6 +21,10 @@
 
 Written in Python (compatible with Python 2 & 3).
 
+⚠ Python 2 upstream support stopped on January 1, 2020. yamllint will keep
+best-effort support for Python 2.7 until January 1, 2021. Passed that date,
+yamllint will drop all Python 2-related code.
+
 Documentation
 -
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yamllint-1.20.0/tests/rules/test_quoted_strings.py 
new/yamllint-1.22.1/tests/rules/test_quoted_strings.py
--- old/yamllint-1.20.0/tests/rules/test_quoted_strings.py  2018-10-17 
10:18:32.0 +0200
+++ new/yamllint-1.22.1/tests/rules/test_quoted_strings.py  2020-04-15 
07:54:25.0 +0200
@@ -22,6 +22,7 @@
 
 def test_disabled(self):
 conf = 'quoted-strings: disable'
+
 self.check('---\n'
'foo: bar\n', conf)
 self.check('---\n'
@@ -30,23 +31,34 @@
'foo: \'bar\'\n', conf)
 self.check('---\n'
'bar: 123\n', conf)
+self.check('---\n'
+   'bar: "123"\n', conf)
 
 def test_quote_type_any(self):
 conf = 'quoted-strings: {quote-type: any}\n'
+
 self.check('---\n'
'boolean1: true\n'
'number1: 123\n'
'string1: foo\n'

commit python-yamllint for openSUSE:Leap:15.2

2020-03-02 Thread root
Hello community,

here is the log from the commit of package python-yamllint for 
openSUSE:Leap:15.2 checked in at 2020-03-02 13:25:09

Comparing /work/SRC/openSUSE:Leap:15.2/python-yamllint (Old)
 and  /work/SRC/openSUSE:Leap:15.2/.python-yamllint.new.26092 (New)


Package is "python-yamllint"

Mon Mar  2 13:25:09 2020 rev:5 rq:777300 version:1.20.0

Changes:

--- /work/SRC/openSUSE:Leap:15.2/python-yamllint/python-yamllint.changes
2020-01-15 15:54:38.867639325 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-yamllint.new.26092/python-yamllint.changes 
2020-03-02 13:25:09.330612875 +0100
@@ -1,0 +2,33 @@
+Tue Feb  4 16:00:48 UTC 2020 - Marketa Calabkova 
+
+- update to 1.20.0
+  * Add --no-warnings option to suppress warning messages
+  * Use 'syntax' as rule name upon syntax errors
+  * Allow disabling all checks for a file with # yamllint disable-file
+
+---
+Wed Oct 30 12:21:46 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.18.0:
+  * Lint .yamllint config file by default
+  * Also read config from .yamllint.yml and .yamllint.yaml
+  * Improve documentation for yaml-files
+  * Update documentation for pre-commit
+  * Explicitly disable empty-values and octal-values rules
+
+---
+Mon Aug 19 08:43:21 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.17.0:
+  * Simplify installation instructions in the README
+  * Add OpenBSD installation instructions
+  * Make YAML file extensions configurable
+
+---
+Fri Jun 14 11:46:41 UTC 2019 - Marketa Calabkova 
+
+- Update to 1.16.0
+  * Add the allowed-values option to the truthy rule
+  * Allow configuration options to be a list of enums
+
+---

Old:

  yamllint-1.15.0.tar.gz

New:

  yamllint-1.20.0.tar.gz



Other differences:
--
++ python-yamllint.spec ++
--- /var/tmp/diff_new_pack.mR0gY1/_old  2020-03-02 13:25:09.686613583 +0100
+++ /var/tmp/diff_new_pack.mR0gY1/_new  2020-03-02 13:25:09.686613583 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-yamllint
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-yamllint
-Version:1.15.0
+Version:1.20.0
 Release:0
 Summary:A linter for YAML files
 License:GPL-3.0-only
@@ -34,9 +34,6 @@
 # SECTION test requirements
 BuildRequires:  %{python_module PyYAML}
 BuildRequires:  %{python_module pathspec >= 0.5.3}
-# nose is optional, used only to exclude a failing test caused by PyYAML
-# deprecation warnings.
-BuildRequires:  %{python_module nose}
 # /SECTION
 %python_subpackages
 
@@ -58,7 +55,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec -m nose -e test_run_auto_output_without_tty_output
+%python_exec -m unittest discover
 
 %files %{python_files}
 %doc README.rst

++ yamllint-1.15.0.tar.gz -> yamllint-1.20.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yamllint-1.15.0/PKG-INFO new/yamllint-1.20.0/PKG-INFO
--- old/yamllint-1.15.0/PKG-INFO2019-02-11 14:22:05.0 +0100
+++ new/yamllint-1.20.0/PKG-INFO2019-12-26 16:07:34.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.2
 Name: yamllint
-Version: 1.15.0
+Version: 1.20.0
 Summary: A linter for YAML files.
 Home-page: https://github.com/adrienverge/yamllint
 Author: Adrien Vergé
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yamllint-1.15.0/README.rst 
new/yamllint-1.20.0/README.rst
--- old/yamllint-1.15.0/README.rst  2018-05-31 11:06:31.0 +0200
+++ new/yamllint-1.20.0/README.rst  2019-07-07 18:14:22.0 +0200
@@ -38,31 +38,16 @@
 Installation
 
 
-On Fedora / CentOS (note: `EPEL `_ is
-required on CentOS):
-
-.. code:: bash
-
- sudo dnf install yamllint
-
-On Debian 8+ / Ubuntu 16.04+:
-
-.. code:: bash
-
- sudo apt-get install yamllint
-
-On Mac OS 10.11+:
-
-.. code:: bash
-
- brew install yamllint
-
-Alternatively using pip, the Python package manager:
+Using pip, the Python package manager:
 
 .. code:: bash
 
  pip install --user yamllint
 
+yamllint is also packaged for all major operating systems, see installation
+examples (``dnf``, ``apt-get``...) `in the documentati