commit python-python-rapidjson for openSUSE:Factory
Hello community, here is the log from the commit of package python-python-rapidjson for openSUSE:Factory checked in at 2020-03-10 11:55:28 Comparing /work/SRC/openSUSE:Factory/python-python-rapidjson (Old) and /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.26092 (New) Package is "python-python-rapidjson" Tue Mar 10 11:55:28 2020 rev:6 rq:783263 version:0.9.1 Changes: --- /work/SRC/openSUSE:Factory/python-python-rapidjson/python-python-rapidjson.changes 2019-10-07 14:14:29.626827608 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.26092/python-python-rapidjson.changes 2020-03-10 11:55:33.891732318 +0100 @@ -1,0 +2,7 @@ +Tue Mar 10 10:08:12 UTC 2020 - Tomáš Chvátal + +- Update to 0.9.1: + * Compatibility fix for Python 3.8 (issue #125) + * Fix memory leak in case of failed validation (issue 126) + +--- Old: python-rapidjson-0.8.0.tar.gz New: python-rapidjson-0.9.1.tar.gz Other differences: -- ++ python-python-rapidjson.spec ++ --- /var/tmp/diff_new_pack.nYz2rF/_old 2020-03-10 11:55:35.947733362 +0100 +++ /var/tmp/diff_new_pack.nYz2rF/_new 2020-03-10 11:55:35.951733365 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-python-rapidjson # -# 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 @@ -19,11 +19,10 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-rapidjson -Version:0.8.0 +Version:0.9.1 Release:0 Summary:Python wrapper around rapidjson License:MIT -Group: Development/Languages/Python URL:https://github.com/python-rapidjson/python-rapidjson Source: https://github.com/python-rapidjson/python-rapidjson/archive/v%{version}.tar.gz#/python-rapidjson-%{version}.tar.gz Patch0: rapidjson-system.patch ++ python-rapidjson-0.8.0.tar.gz -> python-rapidjson-0.9.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.8.0/.appveyor.yml new/python-rapidjson-0.9.1/.appveyor.yml --- old/python-rapidjson-0.8.0/.appveyor.yml2019-08-09 12:57:38.0 +0200 +++ new/python-rapidjson-0.9.1/.appveyor.yml2019-11-13 14:20:44.0 +0100 @@ -17,7 +17,7 @@ install: "git submodule update --init --recursive" build_script: - - "%PYTHON% -m pip install cibuildwheel==0.10.1" + - "%PYTHON% -m pip install cibuildwheel==1.0.0" - "%PYTHON% -m cibuildwheel --output-dir wheelhouse" - ps: >- if ($env:APPVEYOR_REPO_TAG -eq "true") { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.8.0/.gitlab-ci.yml new/python-rapidjson-0.9.1/.gitlab-ci.yml --- old/python-rapidjson-0.8.0/.gitlab-ci.yml 2019-08-09 12:57:38.0 +0200 +++ new/python-rapidjson-0.9.1/.gitlab-ci.yml 2019-11-13 14:20:44.0 +0100 @@ -29,6 +29,6 @@ script: - git submodule update --init --recursive - python3 -m venv env -- env/bin/pip install cibuildwheel==0.10.1 twine +- env/bin/pip install cibuildwheel==1.0.0 twine - env/bin/cibuildwheel - env/bin/twine upload wheelhouse/*.whl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.8.0/.travis.yml new/python-rapidjson-0.9.1/.travis.yml --- old/python-rapidjson-0.8.0/.travis.yml 2019-08-09 12:57:38.0 +0200 +++ new/python-rapidjson-0.9.1/.travis.yml 2019-11-13 14:20:44.0 +0100 @@ -55,7 +55,7 @@ # so we remove bytecode files before running it. - find . -name __pycache__ -exec rm -rf {} + - | -pip3 install cibuildwheel==0.10.2 +pip3 install cibuildwheel==1.0.0 cibuildwheel --output-dir wheelhouse if [[ -n "$TRAVIS_TAG" && -z "$RUN_DEBUG_PYTHON" ]]; then pip3 install twine diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.8.0/CHANGES.rst new/python-rapidjson-0.9.1/CHANGES.rst --- old/python-rapidjson-0.8.0/CHANGES.rst 2019-08-09 12:57:38.0 +0200 +++ new/python-rapidjson-0.9.1/CHANGES.rst 2019-11-13 14:20:44.0 +0100 @@ -1,6 +1,30 @@ Changes --- +0.9.1 (2019-11-13) +~~ + +* Fix memory leak in case of failed validation (`issue 126`__) + + __ https://github.com/python-rapidjson/python-rapidjson/issues/126 + + +0.9.0 (2019-11-13) +~~ + +
commit python-python-rapidjson for openSUSE:Factory
Hello community, here is the log from the commit of package python-python-rapidjson for openSUSE:Factory checked in at 2019-10-07 13:49:36 Comparing /work/SRC/openSUSE:Factory/python-python-rapidjson (Old) and /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.2352 (New) Package is "python-python-rapidjson" Mon Oct 7 13:49:36 2019 rev:5 rq:735631 version:0.8.0 Changes: --- /work/SRC/openSUSE:Factory/python-python-rapidjson/python-python-rapidjson.changes 2019-08-28 18:38:06.617256284 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.2352/python-python-rapidjson.changes 2019-10-07 14:14:29.626827608 +0200 @@ -1,0 +2,5 @@ +Mon Oct 7 08:29:17 UTC 2019 - Tomáš Chvátal + +- Fix fdupes call to run on sitearch not sitelib + +--- Other differences: -- ++ python-python-rapidjson.spec ++ --- /var/tmp/diff_new_pack.kZKxmr/_old 2019-10-07 14:14:30.010826554 +0200 +++ /var/tmp/diff_new_pack.kZKxmr/_new 2019-10-07 14:14:30.010826554 +0200 @@ -52,7 +52,7 @@ %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check export LANG=en_US.UTF-8
commit python-python-rapidjson for openSUSE:Factory
Hello community, here is the log from the commit of package python-python-rapidjson for openSUSE:Factory checked in at 2019-08-28 18:38:03 Comparing /work/SRC/openSUSE:Factory/python-python-rapidjson (Old) and /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.7948 (New) Package is "python-python-rapidjson" Wed Aug 28 18:38:03 2019 rev:4 rq:726709 version:0.8.0 Changes: --- /work/SRC/openSUSE:Factory/python-python-rapidjson/python-python-rapidjson.changes 2019-07-22 17:20:11.137897830 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.7948/python-python-rapidjson.changes 2019-08-28 18:38:06.617256284 +0200 @@ -1,0 +2,6 @@ +Wed Aug 28 08:34:01 UTC 2019 - Marketa Calabkova + +- Update to 0.8.0 + * New serialization option bytes_mode to control how bytes instances gets encoded + +--- Old: python-rapidjson-0.7.2.tar.gz New: python-rapidjson-0.8.0.tar.gz Other differences: -- ++ python-python-rapidjson.spec ++ --- /var/tmp/diff_new_pack.A8rcbk/_old 2019-08-28 18:38:07.797256080 +0200 +++ /var/tmp/diff_new_pack.A8rcbk/_new 2019-08-28 18:38:07.801256079 +0200 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-rapidjson -Version:0.7.2 +Version:0.8.0 Release:0 Summary:Python wrapper around rapidjson License:MIT @@ -52,6 +52,7 @@ %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LANG=en_US.UTF-8 ++ python-rapidjson-0.7.2.tar.gz -> python-rapidjson-0.8.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.7.2/CHANGES.rst new/python-rapidjson-0.8.0/CHANGES.rst --- old/python-rapidjson-0.7.2/CHANGES.rst 2019-06-09 11:15:04.0 +0200 +++ new/python-rapidjson-0.8.0/CHANGES.rst 2019-08-09 12:57:38.0 +0200 @@ -1,6 +1,15 @@ Changes --- +0.8.0 (2019-08-09) +~~ + +* New serialization option ``bytes_mode`` to control how bytes instances gets encoded + (`issue #122`__) + + __ https://github.com/python-rapidjson/python-rapidjson/issues/122 + + 0.7.2 (2019-06-09) ~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.7.2/docs/api.rst new/python-rapidjson-0.8.0/docs/api.rst --- old/python-rapidjson-0.7.2/docs/api.rst 2019-06-09 11:15:04.0 +0200 +++ new/python-rapidjson-0.8.0/docs/api.rst 2019-08-09 12:57:38.0 +0200 @@ -146,6 +146,20 @@ *arrays* and *objects*. +.. rubric:: `bytes_mode` related constants + +.. data:: BM_NONE + + This disables the default handling mode (:data:`BM_UTF8`) of :class:`bytes` instances: + they won't be treated in any special way and will raise an ``TypeError`` exception when + encountered. On the other hand, in this mode they can be managed by a `default` + handler. + +.. data:: BM_UTF8 + + This is the default setting for `bytes_mode`: any :class:`bytes` instance will be + assumed to be an ``UTF-8`` encoded string, and decoded accordingly. + .. rubric:: Exceptions .. exception:: JSONDecodeError diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.7.2/docs/dump.rst new/python-rapidjson-0.8.0/docs/dump.rst --- old/python-rapidjson-0.7.2/docs/dump.rst2019-06-09 11:15:04.0 +0200 +++ new/python-rapidjson-0.8.0/docs/dump.rst2019-08-09 12:57:38.0 +0200 @@ -18,7 +18,7 @@ .. function:: dump(obj, stream, *, skipkeys=False, ensure_ascii=True, indent=None, \ default=None, sort_keys=False, number_mode=None, datetime_mode=None, \ - uuid_mode=None, chunk_size=65536, allow_nan=True) + uuid_mode=None, bytes_mode=BM_UTF8, chunk_size=65536, allow_nan=True) Encode given Python `obj` instance into a ``JSON`` stream. @@ -36,6 +36,7 @@ :param int datetime_mode: how should :class:`datetime`, :class:`time` and :class:`date` instances be handled :param int uuid_mode: how should :class:`UUID` instances be handled + :param int bytes_mode: how should :class:`bytes` instances be handled :param int chunk_size: write the stream in chunks of this size at a time :param bool allow_nan: *compatibility* flag equivalent to ``number_mode=NM_NAN`` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.7.2/docs/dumps.rst new/python-rapidjson-0.8.0/docs/dumps.r
commit python-python-rapidjson for openSUSE:Factory
Hello community, here is the log from the commit of package python-python-rapidjson for openSUSE:Factory checked in at 2019-07-22 17:20:08 Comparing /work/SRC/openSUSE:Factory/python-python-rapidjson (Old) and /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.4126 (New) Package is "python-python-rapidjson" Mon Jul 22 17:20:08 2019 rev:3 rq:717592 version:0.7.2 Changes: --- /work/SRC/openSUSE:Factory/python-python-rapidjson/python-python-rapidjson.changes 2019-06-21 09:58:35.824680998 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.4126/python-python-rapidjson.changes 2019-07-22 17:20:11.137897830 +0200 @@ -1,0 +2,6 @@ +Mon Jul 22 13:14:40 UTC 2019 - Tomáš Chvátal + +- Update to 0.7.2: + * Hopefully fix the memory leak when loading from a stream (issue #117) + +--- Old: python-rapidjson-0.7.1.tar.gz New: python-rapidjson-0.7.2.tar.gz Other differences: -- ++ python-python-rapidjson.spec ++ --- /var/tmp/diff_new_pack.BbV4RE/_old 2019-07-22 17:20:11.877897629 +0200 +++ /var/tmp/diff_new_pack.BbV4RE/_new 2019-07-22 17:20:11.881897627 +0200 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-rapidjson -Version:0.7.1 +Version:0.7.2 Release:0 Summary:Python wrapper around rapidjson License:MIT @@ -55,7 +55,7 @@ %check export LANG=en_US.UTF-8 -%python_expand PYTHONPATH=%{buildroot}%{python_sitearch} py.test-%{$python_bin_suffix} -v tests +%pytest_arch tests %files %{python_files} %doc CHANGE* README* ++ python-rapidjson-0.7.1.tar.gz -> python-rapidjson-0.7.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.7.1/CHANGES.rst new/python-rapidjson-0.7.2/CHANGES.rst --- old/python-rapidjson-0.7.1/CHANGES.rst 2019-05-11 09:49:10.0 +0200 +++ new/python-rapidjson-0.7.2/CHANGES.rst 2019-06-09 11:15:04.0 +0200 @@ -1,6 +1,14 @@ Changes --- +0.7.2 (2019-06-09) +~~ + +* Hopefully fix the memory leak when loading from a stream (`issue #117`__) + + __ https://github.com/python-rapidjson/python-rapidjson/issues/117 + + 0.7.1 (2019-05-11) ~~ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.7.1/rapidjson.cpp new/python-rapidjson-0.7.2/rapidjson.cpp --- old/python-rapidjson-0.7.1/rapidjson.cpp2019-05-11 09:49:10.0 +0200 +++ new/python-rapidjson-0.7.2/rapidjson.cpp2019-06-09 11:15:04.0 +0200 @@ -641,13 +641,24 @@ bool Key(const char* str, SizeType length, bool copy) { HandlerContext& current = stack.back(); +// This happens when operating in stream mode and kParseInsituFlag is not set: we +// must copy the incoming string in the context, and destroy the duplicate when +// the context gets reused for the next dictionary key + +if (current.key && current.copiedKey) { +free((void*) current.key); +current.key = NULL; +} + if (copy) { char* copied_str = (char*) malloc(length+1); if (copied_str == NULL) return false; memcpy(copied_str, str, length+1); str = copied_str; +assert(!current.key); } + current.key = str; current.keyLength = length; current.copiedKey = copy; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rapidjson-0.7.1/version.txt new/python-rapidjson-0.7.2/version.txt --- old/python-rapidjson-0.7.1/version.txt 2019-05-11 09:49:10.0 +0200 +++ new/python-rapidjson-0.7.2/version.txt 2019-06-09 11:15:04.0 +0200 @@ -1 +1 @@ -0.7.1 \ No newline at end of file +0.7.2 \ No newline at end of file
commit python-python-rapidjson for openSUSE:Factory
Hello community, here is the log from the commit of package python-python-rapidjson for openSUSE:Factory checked in at 2019-06-21 09:58:34 Comparing /work/SRC/openSUSE:Factory/python-python-rapidjson (Old) and /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.4811 (New) Package is "python-python-rapidjson" Fri Jun 21 09:58:34 2019 rev:2 rq:711171 version:0.7.1 Changes: --- /work/SRC/openSUSE:Factory/python-python-rapidjson/python-python-rapidjson.changes 2019-06-20 18:54:42.576789040 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-rapidjson.new.4811/python-python-rapidjson.changes 2019-06-21 09:58:35.824680998 +0200 @@ -1,0 +2,5 @@ +Mon Jun 10 17:18:47 UTC 2019 - Jan Engelhardt + +- Trim bias from description. + +--- Other differences: -- ++ python-python-rapidjson.spec ++ --- /var/tmp/diff_new_pack.7kstns/_old 2019-06-21 09:58:36.360681796 +0200 +++ /var/tmp/diff_new_pack.7kstns/_new 2019-06-21 09:58:36.364681802 +0200 @@ -38,7 +38,7 @@ %python_subpackages %description -RapidJSON is an extremely fast C++ JSON parser and serialization library: this +RapidJSON is a C++ JSON parser and serialization library. This module wraps it into a Python 3 extension, exposing its serialization/deserialization (to/from either bytes, str or file-like instances) and JSON Schema validation capabilities.