14
0
Files
python-python-box/python-python-box.spec
Tomáš Chvátal c346bff0cc 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
2020-08-06 05:43:15 +00:00

69 lines
2.0 KiB
RPMSpec

#
# spec file for package python-python-box
#
# 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
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# python_requires='>=3.6'
%define skip_python2 1
Name: python-python-box
Version: 5.1.0
Release: 0
Summary: Advanced Python dictionaries with dot notation access
License: MIT
Group: Development/Languages/Python
URL: https://github.com/cdgriffith/Box
Source: https://github.com/cdgriffith/Box/archive/%{version}.tar.gz
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module msgpack >= 1.0.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module ruamel.yaml >= 0.16.10}
BuildRequires: %{python_module toml >= 0.10.1}
# /SECTION
Requires: python-msgpack >= 1.0.0
Requires: python-ruamel.yaml >= 0.16.10
Requires: python-toml >= 0.10.1
%python_subpackages
%description
Advanced Python dictionaries with dot notation access
%prep
%setup -q -n Box-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PYTHONPATH='.'
%pytest_arch
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog