diff --git a/pyjson5-0.8.5.tar.gz b/pyjson5-0.8.5.tar.gz deleted file mode 100644 index 607aa1e..0000000 --- a/pyjson5-0.8.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6fccabcdc609899b0eb69a1c8d790b722c054b4aae0fc4b95cc63fd9a72ceb6 -size 106674 diff --git a/pyjson5-0.9.4.tar.gz b/pyjson5-0.9.4.tar.gz new file mode 100644 index 0000000..5528bb0 --- /dev/null +++ b/pyjson5-0.9.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5675f71cd6613adf53b629c947cf766e31d20dff696d574de294a94e55c7eae +size 108245 diff --git a/python-json5.changes b/python-json5.changes index eb59366..d1e9b5b 100644 --- a/python-json5.changes +++ b/python-json5.changes @@ -1,3 +1,34 @@ +------------------------------------------------------------------- +Thu Apr 16 11:47:01 UTC 2020 - pgajdos@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 fredrik@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.skouzos@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. + ------------------------------------------------------------------- Mon Jul 29 02:39:50 UTC 2019 - Todd R diff --git a/python-json5.spec b/python-json5.spec index 3d5ae13..ffd23ca 100644 --- a/python-json5.spec +++ b/python-json5.spec @@ -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 @@ slightly more usable as a configuration language: * 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 @@ slightly more usable as a configuration language: %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %doc README.md