commit python-json5 for openSUSE:Factory

2020-05-26 Thread root
Hello community,

here is the log from the commit of package python-json5 for openSUSE:Factory 
checked in at 2020-05-26 17:48:56

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


Package is "python-json5"

Tue May 26 17:48:56 2020 rev:3 rq:808779 version:0.9.4

Changes:

--- /work/SRC/openSUSE:Factory/python-json5/python-json5.changes
2020-04-16 23:05:43.827807090 +0200
+++ /work/SRC/openSUSE:Factory/.python-json5.new.2738/python-json5.changes  
2020-05-26 17:48:58.319834737 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:34 UTC 2020 - Petr Gajdos 
+
+- %python3_only -> %python_alternative
+
+---



Other differences:
--
++ python-json5.spec ++
--- /var/tmp/diff_new_pack.ssGVKR/_old  2020-05-26 17:49:00.227838919 +0200
+++ /var/tmp/diff_new_pack.ssGVKR/_new  2020-05-26 17:49:00.227838919 +0200
@@ -30,6 +30,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
 %python_subpackages
 
@@ -52,16 +54,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/pyjson5
 %python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%python_install_alternative pyjson5
+
+%postun
+%python_uninstall_alternative pyjson5
+
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%python3_only %{_bindir}/pyjson5
+%python_alternative %{_bindir}/pyjson5
 %{python_sitelib}/*
 
 %changelog




commit python-json5 for openSUSE:Factory

2020-04-16 Thread root
Hello community,

here is the log from the commit of package python-json5 for openSUSE:Factory 
checked in at 2020-04-16 23:05:38

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


Package is "python-json5"

Thu Apr 16 23:05:38 2020 rev:2 rq:794585 version:0.9.4

Changes:

--- /work/SRC/openSUSE:Factory/python-json5/python-json5.changes
2019-07-29 17:31:08.586190280 +0200
+++ /work/SRC/openSUSE:Factory/.python-json5.new.2738/python-json5.changes  
2020-04-16 23:05:43.827807090 +0200
@@ -1,0 +2,31 @@
+Thu Apr 16 11:47:01 UTC 2020 - pgaj...@suse.com
+
+- version update to 0.9.4
+  * v0.9.4 (2020-03-26)
+* [GitHub pull #38](https://github.com/dpranke/pyjson5/pull/38)
+  Fix from fred...@fornwall.net for dumps() crashing when passed
+  an empty string as a key in an object.
+  * v0.9.3 (2020-03-17)
+* [GitHub pull #35](https://github.com/dpranke/pyjson5/pull/35)
+  Fix from pastelmind@ for dump() not passing the right args to dumps().
+* Fix from p.skou...@novafutur.com to remove the tests directory from
+  the setup call, making the package a bit smaller.
+  * v0.9.2 (2020-03-02)
+* [GitHub pull #34](https://github.com/dpranke/pyjson5/pull/34)
+  Fix from roosephu@ for a badly formatted nested list.
+  * v0.9.1 (2020-02-09)
+* [GitHub issue #33](https://github.com/dpranke/pyjson5/issues/33):
+   Fix stray trailing comma when dumping an object with an invalid key.
+  * v0.9.0 (2020-01-30)
+* [GitHub issue #29](https://github.com/dpranke/pyjson5/issues/29):
+   Fix an issue where objects keys that started with a reserved
+   word were incorrectly quoted.
+* [GitHub issue #30](https://github.com/dpranke/pyjson5/issues/30):
+   Fix an issue where dumps() incorrectly thought a data structure
+   was cyclic in some cases.
+* [GitHub issue #32](https://github.com/dpranke/pyjson5/issues/32):
+   Allow for non-string keys in dicts passed to ``dump()``/``dumps()``.
+   Add an ``allow_duplicate_keys=False`` to prevent possible
+   ill-formed JSON that might result.
+
+---

Old:

  pyjson5-0.8.5.tar.gz

New:

  pyjson5-0.9.4.tar.gz



Other differences:
--
++ python-json5.spec ++
--- /var/tmp/diff_new_pack.ltFKgf/_old  2020-04-16 23:05:44.983808119 +0200
+++ /var/tmp/diff_new_pack.ltFKgf/_new  2020-04-16 23:05:44.987808122 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-json5
 #
-# 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
@@ -12,23 +12,25 @@
 # 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-json5
-Version:0.8.5
+Version:0.9.4
 Release:0
-License:Apache-2.0
 Summary:A Python implementation of the JSON5 data format
-Url:https://github.com/dpranke/pyjson5
+License:Apache-2.0
 Group:  Development/Languages/Python
+URL:https://github.com/dpranke/pyjson5
 Source: 
https://github.com/dpranke/pyjson5/archive/v%{version}.tar.gz#/pyjson5-%{version}.tar.gz
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:   python-setuptools
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -42,7 +44,6 @@
   * Objects and arrays may end with trailing commas.
   * Strings can be single-quoted, and multi-line string literals are allowed.
 
-
 %prep
 %setup -q -n pyjson5-%{version}
 
@@ -55,7 +56,7 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec setup.py test
+%pytest
 
 %files %{python_files}
 %doc README.md

++ pyjson5-0.8.5.tar.gz -> pyjson5-0.9.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyjson5-0.8.5/README.md new/pyjson5-0.9.4/README.md
--- old/pyjson5-0.8.5/README.md 2019-07-05 04:18:45.0 +0200
+++ new/pyjson5-0.9.4/README.md 2020-03-27 00:12:33.0 +0100
@@ -52,17 +52,51 @@
 
 ## Version History / Release Notes
 
+* v0.9.4 (2020-03-26)
+* [GitHub pull #38](https://github.com/dpranke/pyjson5/pull/38)
+  Fix from fred...@fornwall

commit python-json5 for openSUSE:Factory

2019-07-29 Thread root
Hello community,

here is the log from the commit of package python-json5 for openSUSE:Factory 
checked in at 2019-07-29 17:31:08

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


Package is "python-json5"

Mon Jul 29 17:31:08 2019 rev:1 rq:719461 version:0.8.5

Changes:

New Changes file:

--- /dev/null   2019-07-18 00:53:00.979475821 +0200
+++ /work/SRC/openSUSE:Factory/.python-json5.new.4126/python-json5.changes  
2019-07-29 17:31:08.586190280 +0200
@@ -0,0 +1,4 @@
+---
+Mon Jul 29 02:39:50 UTC 2019 - Todd R 
+
+- Initial version

New:

  pyjson5-0.8.5.tar.gz
  python-json5.changes
  python-json5.spec



Other differences:
--
++ python-json5.spec ++
#
# spec file for package python-json5
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:   python-json5
Version:0.8.5
Release:0
License:Apache-2.0
Summary:A Python implementation of the JSON5 data format
Url:https://github.com/dpranke/pyjson5
Group:  Development/Languages/Python
Source: 
https://github.com/dpranke/pyjson5/archive/v%{version}.tar.gz#/pyjson5-%{version}.tar.gz
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:  noarch

%python_subpackages

%description
A Python implementation of the JSON5 data format.

JSON5 extends the JSON data interchange format to make it
slightly more usable as a configuration language:

  * JavaScript-style comments (both single and multi-line) are legal.
  * Object keys may be unquoted if they are legal ECMAScript identifiers
  * Objects and arrays may end with trailing commas.
  * Strings can be single-quoted, and multi-line string literals are allowed.


%prep
%setup -q -n pyjson5-%{version}

%build
%python_build

%install
%python_install
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%python_exec setup.py test

%files %{python_files}
%doc README.md
%license LICENSE
%python3_only %{_bindir}/pyjson5
%{python_sitelib}/*

%changelog