From c346bff0cc6afe7bede841d67ba841e6bfb6461dd0f4b935dba72d96ef1fb439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 6 Aug 2020 05:43:15 +0000 Subject: [PATCH] Accepting request 824521 from home:mcalabkova:branches:devel:languages:python - Update to 5.1.0 * Adding `dotted` option for `items` function (thanks to ipcoder) * Fixing bug in box.set_default where value is dictionary, return the internal value and not detached temporary (thanks to Noam Graetz) * Removing warnings on import if optional libraries are missing Version 5.0.1 ------------- * Fixing default box saving internal method calls and restricted options (thanks to Marcelo Huerta) Version 5.0.0 ------------- * Adding support for msgpack converters `to_msgpack` and `from_msgpack` * Adding support for comparision of `Box` to other boxes or dicts via the `-` sub operator #144 (thanks to Hitz) * Adding support to `|` union boxes like will come default in Python 3.9 from PEP 0584 * Adding `mypy` type checking, `black` formatting and other checks on commit * Adding new parameter `box_class` for cleaner inheritance #148 (thanks to David Aronchick) * Adding `dotted` option for `keys` method to return box_dots style keys (thanks to ipcoder) * Fixing box_dots to properly delete items from lists * Fixing box_dots to properly find items with dots in their key * Fixing that recast of subclassses of `Box` or `BoxList` were not fed box properties (thanks to Alexander Kapustin) * Changing that sub boxes are always created to properly propagate settings and copy objects #150 (thanks to ipcoder) * Changing that default_box will not raise key errors on `pop` #67 (thanks to Patrock) * Changing `to_csv` and `from_csv` to have same string and filename options as all other transforms * Changing back to no required external imports, instead have extra requires like [all] (thanks to wim glenn) * Changing from putting all details in README.rst to a github wiki at https://github.com/cdgriffith/Box/wiki * Changing `BoxList.box_class` to be stored in `BoxList.box_options` dict as `box_class` * Changing `del` will raise `BoxKeyError`, subclass of both `KeyError` and `BoxError` * Removing support for single level circular references * Removing readthedocs generation * Removing overrides for `keys`, `values` and `items` which will return views again Version 4.2.3 ------------- OBS-URL: https://build.opensuse.org/request/show/824521 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=9 --- 4.2.2.tar.gz | 3 --- 5.1.0.tar.gz | 3 +++ python-python-box.changes | 37 +++++++++++++++++++++++++++++++++++++ python-python-box.spec | 14 +++++++------- 4 files changed, 47 insertions(+), 10 deletions(-) delete mode 100644 4.2.2.tar.gz create mode 100644 5.1.0.tar.gz diff --git a/4.2.2.tar.gz b/4.2.2.tar.gz deleted file mode 100644 index fe6fdf1..0000000 --- a/4.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f15a2290747a0e4a66acc787e2d3e28f6fc053ede4ce574122754010bf10b09c -size 75880 diff --git a/5.1.0.tar.gz b/5.1.0.tar.gz new file mode 100644 index 0000000..5159e7e --- /dev/null +++ b/5.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c0a2a758a02927cd80840bff7999dbb7b3eda8955b8776b1accb26d8b55ceee +size 74875 diff --git a/python-python-box.changes b/python-python-box.changes index 30e5bd6..467035e 100644 --- a/python-python-box.changes +++ b/python-python-box.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Wed Aug 5 15:02:55 UTC 2020 - Marketa Calabkova + +- Update to 5.1.0 + * Adding `dotted` option for `items` function (thanks to ipcoder) + * Fixing bug in box.set_default where value is dictionary, return the internal value and not detached temporary (thanks to Noam Graetz) + * Removing warnings on import if optional libraries are missing + Version 5.0.1 + ------------- + * Fixing default box saving internal method calls and restricted options (thanks to Marcelo Huerta) + Version 5.0.0 + ------------- + * Adding support for msgpack converters `to_msgpack` and `from_msgpack` + * Adding support for comparision of `Box` to other boxes or dicts via the `-` sub operator #144 (thanks to Hitz) + * Adding support to `|` union boxes like will come default in Python 3.9 from PEP 0584 + * Adding `mypy` type checking, `black` formatting and other checks on commit + * Adding new parameter `box_class` for cleaner inheritance #148 (thanks to David Aronchick) + * Adding `dotted` option for `keys` method to return box_dots style keys (thanks to ipcoder) + * Fixing box_dots to properly delete items from lists + * Fixing box_dots to properly find items with dots in their key + * Fixing that recast of subclassses of `Box` or `BoxList` were not fed box properties (thanks to Alexander Kapustin) + * Changing that sub boxes are always created to properly propagate settings and copy objects #150 (thanks to ipcoder) + * Changing that default_box will not raise key errors on `pop` #67 (thanks to Patrock) + * Changing `to_csv` and `from_csv` to have same string and filename options as all other transforms + * Changing back to no required external imports, instead have extra requires like [all] (thanks to wim glenn) + * Changing from putting all details in README.rst to a github wiki at https://github.com/cdgriffith/Box/wiki + * Changing `BoxList.box_class` to be stored in `BoxList.box_options` dict as `box_class` + * Changing `del` will raise `BoxKeyError`, subclass of both `KeyError` and `BoxError` + * Removing support for single level circular references + * Removing readthedocs generation + * Removing overrides for `keys`, `values` and `items` which will return views again + Version 4.2.3 + ------------- + * Fixing README.md example #149 (thanks to J Alan Brogan) + * Changing `protected_keys` to remove magic methods from dict #146 (thanks to Krishna Penukonda) + * Changing that due to `default_box` fix, `pop` or `del` no longer raise BoxKeyErrors on missing items (UNCAUGHT BUG) + ------------------------------------------------------------------- Fri Mar 20 13:38:43 UTC 2020 - pgajdos@suse.com diff --git a/python-python-box.spec b/python-python-box.spec index d14a7cd..4969813 100644 --- a/python-python-box.spec +++ b/python-python-box.spec @@ -20,7 +20,7 @@ # python_requires='>=3.6' %define skip_python2 1 Name: python-python-box -Version: 4.2.2 +Version: 5.1.0 Release: 0 Summary: Advanced Python dictionaries with dot notation access License: MIT @@ -33,14 +33,14 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module pathlib} +BuildRequires: %{python_module msgpack >= 1.0.0} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module ruamel.yaml} -BuildRequires: %{python_module testsuite} -BuildRequires: %{python_module toml} +BuildRequires: %{python_module ruamel.yaml >= 0.16.10} +BuildRequires: %{python_module toml >= 0.10.1} # /SECTION -Requires: python-ruamel.yaml -Requires: python-toml +Requires: python-msgpack >= 1.0.0 +Requires: python-ruamel.yaml >= 0.16.10 +Requires: python-toml >= 0.10.1 %python_subpackages %description