commit python-pyaml for openSUSE:Factory

2020-03-26 Thread root
Hello community,

here is the log from the commit of package python-pyaml for openSUSE:Factory 
checked in at 2020-03-27 00:27:22

Comparing /work/SRC/openSUSE:Factory/python-pyaml (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyaml.new.3160 (New)


Package is "python-pyaml"

Fri Mar 27 00:27:22 2020 rev:5 rq:786408 version:20.3.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pyaml/python-pyaml.changes
2019-05-16 22:08:55.254343656 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyaml.new.3160/python-pyaml.changes  
2020-03-27 00:27:23.804320608 +0100
@@ -1,0 +2,6 @@
+Thu Mar 19 10:22:04 UTC 2020 - Marketa Calabkova 
+
+- Update to version 20.3.1
+  * Add -r/--replace command-line option
+
+---

Old:

  pyaml-19.4.1.tar.gz

New:

  pyaml-20.3.1.tar.gz



Other differences:
--
++ python-pyaml.spec ++
--- /var/tmp/diff_new_pack.wbPZPm/_old  2020-03-27 00:27:24.344320882 +0100
+++ /var/tmp/diff_new_pack.wbPZPm/_new  2020-03-27 00:27:24.348320884 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyaml
 #
-# 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-pyaml
-Version:19.4.1
+Version:20.3.1
 Release:0
 Summary:Python module to produce formatted YAML-serialized data
 License:WTFPL

++ pyaml-19.4.1.tar.gz -> pyaml-20.3.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyaml-19.4.1/PKG-INFO new/pyaml-20.3.1/PKG-INFO
--- old/pyaml-19.4.1/PKG-INFO   2019-04-17 04:29:06.0 +0200
+++ new/pyaml-20.3.1/PKG-INFO   2020-03-09 21:21:37.987214600 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pyaml
-Version: 19.4.1
+Version: 20.3.1
 Summary: PyYAML-based module to produce pretty and readable YAML-serialized 
data
 Home-page: https://github.com/mk-fg/pretty-yaml
 Author: Mike Kazantsev
@@ -14,6 +14,8 @@
 This module is for serialization only, see `ruamel.yaml`_ module for 
literate
 YAML parsing (keeping track of comments, spacing, line/column numbers 
of values, etc).
 
+[note: to dump stuff parsed by ruamel.yaml with this module, use only 
``YAML(typ='safe')`` there]
+
 .. contents::
   :backlinks: none
 
@@ -216,8 +218,12 @@
 
 * Pretty-print any yaml or json (yaml subset) file from the shell::
 
-python -m pyaml /path/to/some/file.yaml
-curl -s https://status.github.com/api.json | python -m pyaml
+% python -m pyaml /path/to/some/file.yaml
+% curl -s https://www.githubstatus.com/api/v2/summary.json | 
python -m pyaml
+
+* Process and replace json/yaml file in-place::
+
+% python -m pyaml -r file-with-json.data
 
 * Easier "debug printf" for more complex data (all funcs below are 
aliases to
   same thing)::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyaml-19.4.1/README new/pyaml-20.3.1/README
--- old/pyaml-19.4.1/README 2019-04-17 04:03:22.0 +0200
+++ new/pyaml-20.3.1/README 2020-03-09 21:21:14.0 +0100
@@ -6,6 +6,8 @@
 This module is for serialization only, see `ruamel.yaml`_ module for literate
 YAML parsing (keeping track of comments, spacing, line/column numbers of 
values, etc).
 
+[note: to dump stuff parsed by ruamel.yaml with this module, use only 
``YAML(typ='safe')`` there]
+
 .. contents::
   :backlinks: none
 
@@ -208,8 +210,12 @@
 
 * Pretty-print any yaml or json (yaml subset) file from the shell::
 
-python -m pyaml /path/to/some/file.yaml
-curl -s https://status.github.com/api.json | python -m pyaml
+% python -m pyaml /path/to/some/file.yaml
+% curl -s https://www.githubstatus.com/api/v2/summary.json | python -m 
pyaml
+
+* Process and replace json/yaml file in-place::
+
+% python -m pyaml -r file-with-json.data
 
 * Easier "debug printf" for more complex data (all funcs below are aliases to
   same thing)::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyaml-19.4.1/README.rst new/pyaml-20.3.1/README.rst
--- old/pyaml-19.4.1/README.rst 2019-04-17 04:03:22.0 +0200
+++ new/pyaml-20.3.1/README.rst 2020-03-09 21:21:14.0 +0100
@@ -6,6 +6,8 @@
 This module is for serialization only, see `ruamel.yaml`_ module 

commit python-pyaml for openSUSE:Factory

2019-05-16 Thread root
Hello community,

here is the log from the commit of package python-pyaml for openSUSE:Factory 
checked in at 2019-05-16 22:08:52

Comparing /work/SRC/openSUSE:Factory/python-pyaml (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyaml.new.5148 (New)


Package is "python-pyaml"

Thu May 16 22:08:52 2019 rev:4 rq:703228 version:19.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pyaml/python-pyaml.changes
2018-09-20 11:41:41.088848594 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyaml.new.5148/python-pyaml.changes  
2019-05-16 22:08:55.254343656 +0200
@@ -1,0 +2,6 @@
+Wed May 15 17:37:38 UTC 2019 - Gary Smith 
+
+- Update to version 19.4.1
+  * no changelog available
+
+---

Old:

  pyaml-17.12.1.tar.gz

New:

  pyaml-19.4.1.tar.gz



Other differences:
--
++ python-pyaml.spec ++
--- /var/tmp/diff_new_pack.miNsm7/_old  2019-05-16 22:08:56.770342279 +0200
+++ /var/tmp/diff_new_pack.miNsm7/_new  2019-05-16 22:08:56.802342250 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyaml
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,13 +12,13 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pyaml
-Version:17.12.1
+Version:19.4.1
 Release:0
 Summary:Python module to produce formatted YAML-serialized data
 License:WTFPL

++ pyaml-17.12.1.tar.gz -> pyaml-19.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyaml-17.12.1/PKG-INFO new/pyaml-19.4.1/PKG-INFO
--- old/pyaml-17.12.1/PKG-INFO  2017-12-23 21:27:16.0 +0100
+++ new/pyaml-19.4.1/PKG-INFO   2019-04-17 04:29:06.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pyaml
-Version: 17.12.1
+Version: 19.4.1
 Summary: PyYAML-based module to produce pretty and readable YAML-serialized 
data
 Home-page: https://github.com/mk-fg/pretty-yaml
 Author: Mike Kazantsev
@@ -112,6 +112,10 @@
 >>> yaml.safe_dump(data, sys.stdout, allow_unicode=True, 
default_style='"')
 "key": "value\nasldpáknsa\n"
 
+* "sort_dicts=False" option to leave dict item ordering to python, and 
not
+  force-sort them in yaml output, which can be important for python 
3.6+ where
+  they retain ordering info.
+
 * Has an option to add vertical spacing (empty lines) between keys on 
different
   depths, to make output much more seekable.
 
@@ -240,6 +244,10 @@
   These are actually keywords for PyYAML Emitter (passed to it from 
Dumper),
   see more info on these in `PyYAML docs`_.
 
+* Dump multiple yaml documents into a file: ``pyaml.dump_all([data1, 
data2, data3], dst_file)``
+
+  explicit_start=True is implied, unless explicit_start=False is 
passed.
+
 .. _PyYAML docs: http://pyyaml.org/wiki/PyYAMLDocumentation#Scalars
 .. _this SO thread: http://stackoverflow.com/a/7445560
 .. _github-issue-7: https://github.com/mk-fg/pretty-yaml/issues/7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyaml-17.12.1/README new/pyaml-19.4.1/README
--- old/pyaml-17.12.1/README2019-05-16 22:08:57.234341858 +0200
+++ new/pyaml-19.4.1/README 2019-04-17 04:03:22.0 +0200
@@ -1 +1,310 @@
-symbolic link to README.rst
+pretty-yaml (or pyaml)
+==
+
+PyYAML-based python module to produce pretty and readable YAML-serialized data.
+
+This module is for serialization only, see `ruamel.yaml`_ module for literate
+YAML parsing (keeping track of comments, spacing, line/column numbers of 
values, etc).
+
+.. contents::
+  :backlinks: none
+
+
+Warning
+---
+
+Prime goal of this module is to produce human-readable output that can be 
easily
+manipulated and re-used, but maybe with some occasional caveats.
+
+One good example of such "caveat" is that e.g. ``{'foo': '123'}`` will 
serialize
+to ``foo: 123``, which for PyYAML would be a bug, as 123 will then be read back
+as an integer from that, but here it's a feature.
+
+So please do not rely on the thing to produce output that can always be

commit python-pyaml for openSUSE:Factory

2018-09-20 Thread root
Hello community,

here is the log from the commit of package python-pyaml for openSUSE:Factory 
checked in at 2018-09-20 11:41:39

Comparing /work/SRC/openSUSE:Factory/python-pyaml (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyaml.new (New)


Package is "python-pyaml"

Thu Sep 20 11:41:39 2018 rev:3 rq:634884 version:17.12.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pyaml/python-pyaml.changes
2018-09-03 10:34:33.332584743 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyaml.new/python-pyaml.changes   
2018-09-20 11:41:41.088848594 +0200
@@ -1,0 +2,5 @@
+Mon Sep 10 12:27:33 UTC 2018 - Jan Engelhardt 
+
+- Trim bias from description. Use noun phrasing.
+
+---



Other differences:
--
++ python-pyaml.spec ++
--- /var/tmp/diff_new_pack.JmmGlk/_old  2018-09-20 11:41:42.208847938 +0200
+++ /var/tmp/diff_new_pack.JmmGlk/_new  2018-09-20 11:41:42.208847938 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
@@ -20,7 +20,7 @@
 Name:   python-pyaml
 Version:17.12.1
 Release:0
-Summary:Produce pretty and readable YAML-serialized data
+Summary:Python module to produce formatted YAML-serialized data
 License:WTFPL
 Group:  Development/Languages/Python
 URL:https://github.com/mk-fg/pretty-yaml
@@ -36,8 +36,7 @@
 %python_subpackages
 
 %description
-PyYAML-based python module to produce pretty and readable
-YAML-serialized data.
+PyYAML-based python module to produce formatted YAML-serialized data.
 
 %prep
 %setup -q -n pyaml-%{version}




commit python-pyaml for openSUSE:Factory

2018-09-03 Thread root
Hello community,

here is the log from the commit of package python-pyaml for openSUSE:Factory 
checked in at 2018-09-03 10:34:31

Comparing /work/SRC/openSUSE:Factory/python-pyaml (Old)
 and  /work/SRC/openSUSE:Factory/.python-pyaml.new (New)


Package is "python-pyaml"

Mon Sep  3 10:34:31 2018 rev:2 rq:632475 version:17.12.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pyaml/python-pyaml.changes
2018-01-10 23:29:54.882815039 +0100
+++ /work/SRC/openSUSE:Factory/.python-pyaml.new/python-pyaml.changes   
2018-09-03 10:34:33.332584743 +0200
@@ -1,0 +2,7 @@
+Fri Aug 31 10:43:07 UTC 2018 - Martin Pluskal 
+
+- Update to version 17.12.1:
+  * Internal changes
+- Drop some useless dependencies and conditions
+
+---

Old:

  pyaml-17.10.0.tar.gz

New:

  pyaml-17.12.1.tar.gz



Other differences:
--
++ python-pyaml.spec ++
--- /var/tmp/diff_new_pack.qceYG8/_old  2018-09-03 10:34:33.916586249 +0200
+++ /var/tmp/diff_new_pack.qceYG8/_new  2018-09-03 10:34:33.916586249 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyaml
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,33 +12,27 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
 Name:   python-pyaml
-Version:17.10.0
+Version:17.12.1
 Release:0
 Summary:Produce pretty and readable YAML-serialized data
 License:WTFPL
 Group:  Development/Languages/Python
-Url:https://github.com/mk-fg/pretty-yaml
+URL:https://github.com/mk-fg/pretty-yaml
 Source: 
https://files.pythonhosted.org/packages/source/p/pyaml/pyaml-%{version}.tar.gz
 BuildRequires:  %{python_module PyYAML}
-BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module setuptools}
-%if %{with test}
 BuildRequires:  %{python_module Unidecode}
-%endif
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-PyYAML
 Recommends: python-Unidecode
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -55,14 +49,12 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%if %{with test}
 %check
 %python_exec setup.py test
-%endif
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc COPYING README.rst
+%license COPYING
+%doc README.rst
 %{python_sitelib}/*
 
 %changelog

++ pyaml-17.10.0.tar.gz -> pyaml-17.12.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyaml-17.10.0/PKG-INFO new/pyaml-17.12.1/PKG-INFO
--- old/pyaml-17.10.0/PKG-INFO  2017-10-08 03:33:50.0 +0200
+++ new/pyaml-17.12.1/PKG-INFO  2017-12-23 21:27:16.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pyaml
-Version: 17.10.0
+Version: 17.12.1
 Summary: PyYAML-based module to produce pretty and readable YAML-serialized 
data
 Home-page: https://github.com/mk-fg/pretty-yaml
 Author: Mike Kazantsev
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyaml-17.10.0/pyaml/__init__.py 
new/pyaml-17.12.1/pyaml/__init__.py
--- old/pyaml-17.10.0/pyaml/__init__.py 2017-08-17 12:01:00.0 +0200
+++ new/pyaml-17.12.1/pyaml/__init__.py 2017-12-23 21:26:39.0 +0100
@@ -3,7 +3,9 @@
 
 import itertools as it, operator as op, functools as ft
 from collections import defaultdict, OrderedDict, namedtuple
-import os, sys, io, yaml
+import os, sys, io
+
+import yaml
 
 if sys.version_info.major > 2: unicode = str
 
@@ -42,9 +44,11 @@
 
@staticmethod
def pyaml_transliterate(string):
-   from unidecode import unidecode
+   if not all(ord(c) < 128 for c in string):
+   from unidecode import unidecode
+   string = unidecode(string)
string_new = ''
-   for ch in unidecode(string):
+   for ch in string:
if '0' <= ch <= '9' or 'A' <= ch <= 'Z' or 'a' <= ch <= 
'z' or ch in '-_': string_new += ch
else: string_new += '_'
return