14
0

Accepting request 824585 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/824585
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-box?expand=0&rev=5
This commit is contained in:
2020-08-06 08:42:32 +00:00
committed by Git OBS Bridge
4 changed files with 47 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f15a2290747a0e4a66acc787e2d3e28f6fc053ede4ce574122754010bf10b09c
size 75880

3
5.1.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0c0a2a758a02927cd80840bff7999dbb7b3eda8955b8776b1accb26d8b55ceee
size 74875

View File

@@ -1,3 +1,40 @@
-------------------------------------------------------------------
Wed Aug 5 15:02:55 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- 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

View File

@@ -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