forked from pool/python-python-box
- version update to 5.4.1 Version 5.4.1 ------------- * Fixing #205 setdefault behavior with box_dots (thanks to Ivan Pepelnjak) Version 5.4.0 ------------- * Adding py.typed for mypy support (thanks to Dominic) * Adding testing for Python 3.10-dev * Fixing #189 by adding mappings for mypy * Fixing setdefault behavior with box_dots (thanks to ipcoder) * Changing #193 how magic methods are handled with default_box (thanks to Rexbard) Version 5.3.0 ------------- * Adding support for functions to box_recast (thanks to Jacob Hayes) * Adding #181 support for extending or adding new items to list during `merge_update` (thanks to Marcos Dione) * Fixing maintain stacktrace cause for BoxKeyError and BoxValueError (thanks to Jacob Hayes) * Fixing #177 that emtpy yaml files raised errors instead of returning empty objects (thanks to Tim Schwenke) * Fixing #171 that `popitems` wasn't first checking if box was frozen (thanks to Varun Madiath) * Changing all files to LF line endings * Removing duplicate `box_recast` calls (thanks to Jacob Hayes) * Removing coveralls code coverage, due to repeated issues with service Version 5.2.0 ------------- * Adding checks for frozen boxes to `pop`, `popitem` and `clear` (thanks to Varun Madiath) * Fixing requirements-test.txt (thanks to Fabian Affolter) * Fixing Flake8 conflicts with black (thanks to Varun Madiath) * Fixing coveralls update (thanks to Varun Madiath) Version 5.1.1 ------------- * Adding testing for Python 3.9 OBS-URL: https://build.opensuse.org/request/show/936457 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=11
68 lines
1.9 KiB
RPMSpec
68 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-python-box
|
|
#
|
|
# Copyright (c) 2021 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.4.1
|
|
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 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
|