14
0
Files
python-python-box/python-python-box.spec

69 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-python-box
#
Accepting request 786913 from home:pgajdos:python - version update to 4.2.2 Version 4.2.2 ------------- * Fixing `default_box` doesn't first look for safe attributes before falling back to default (thanks to Pymancer) * Changing from TravisCI to Github Actions Version 4.2.1 ------------- * Fixing uncaught print statement (thanks to Bruno Rocha) * Fixing old references to `box_it_up` in the documentation Version 4.2.0 ------------- * Adding optimizations for speed ups to creation and inserts * Adding internal record of safe attributes for faster lookups, increases memory footprint for speed (thanks to Jonas Irgens Kylling) * Adding all additional methods specific to `Box` as protected keys * Fixing `merge_update` from incorrectly calling `__setattr__` which was causing a huge slowdown (thanks to Jonas Irgens Kylling) * Fixing `copy` and `__copy__` not copying box options Version 4.1.0 ------------- * Adding support for list traversal with `box_dots` (thanks to Lei) * Adding `BoxWarning` class to allow for the clean suppression of warnings * Fixing default_box_attr to accept items that evaluate to `None` (thanks to Wenbo Zhao and Yordan Ivanov) * Fixing `BoxList` to properly send internal box options down into new lists * Fixing issues with conversion and camel killer boxes not being set properly on insert * Changing default_box to set objects in box on lookup * Changing `camel_killer` to convert items on insert, which will change the keys when converted back to dict unlike before * Fallback to `PyYAML` if `ruamel.yaml` is not detected (thanks to wim glenn) * Removing official support for `pypy` as it's pickling behavior is not the same as CPython * Removing internal __box_heritage as it was no longer needed due to behavior update Version 4.0.4 ------------- OBS-URL: https://build.opensuse.org/request/show/786913 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=7
2020-03-20 14:37:25 +00:00
# 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-%{**}}
Accepting request 786913 from home:pgajdos:python - version update to 4.2.2 Version 4.2.2 ------------- * Fixing `default_box` doesn't first look for safe attributes before falling back to default (thanks to Pymancer) * Changing from TravisCI to Github Actions Version 4.2.1 ------------- * Fixing uncaught print statement (thanks to Bruno Rocha) * Fixing old references to `box_it_up` in the documentation Version 4.2.0 ------------- * Adding optimizations for speed ups to creation and inserts * Adding internal record of safe attributes for faster lookups, increases memory footprint for speed (thanks to Jonas Irgens Kylling) * Adding all additional methods specific to `Box` as protected keys * Fixing `merge_update` from incorrectly calling `__setattr__` which was causing a huge slowdown (thanks to Jonas Irgens Kylling) * Fixing `copy` and `__copy__` not copying box options Version 4.1.0 ------------- * Adding support for list traversal with `box_dots` (thanks to Lei) * Adding `BoxWarning` class to allow for the clean suppression of warnings * Fixing default_box_attr to accept items that evaluate to `None` (thanks to Wenbo Zhao and Yordan Ivanov) * Fixing `BoxList` to properly send internal box options down into new lists * Fixing issues with conversion and camel killer boxes not being set properly on insert * Changing default_box to set objects in box on lookup * Changing `camel_killer` to convert items on insert, which will change the keys when converted back to dict unlike before * Fallback to `PyYAML` if `ruamel.yaml` is not detected (thanks to wim glenn) * Removing official support for `pypy` as it's pickling behavior is not the same as CPython * Removing internal __box_heritage as it was no longer needed due to behavior update Version 4.0.4 ------------- OBS-URL: https://build.opensuse.org/request/show/786913 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=7
2020-03-20 14:37:25 +00:00
# python_requires='>=3.6'
%define skip_python2 1
Name: python-python-box
Accepting request 786913 from home:pgajdos:python - version update to 4.2.2 Version 4.2.2 ------------- * Fixing `default_box` doesn't first look for safe attributes before falling back to default (thanks to Pymancer) * Changing from TravisCI to Github Actions Version 4.2.1 ------------- * Fixing uncaught print statement (thanks to Bruno Rocha) * Fixing old references to `box_it_up` in the documentation Version 4.2.0 ------------- * Adding optimizations for speed ups to creation and inserts * Adding internal record of safe attributes for faster lookups, increases memory footprint for speed (thanks to Jonas Irgens Kylling) * Adding all additional methods specific to `Box` as protected keys * Fixing `merge_update` from incorrectly calling `__setattr__` which was causing a huge slowdown (thanks to Jonas Irgens Kylling) * Fixing `copy` and `__copy__` not copying box options Version 4.1.0 ------------- * Adding support for list traversal with `box_dots` (thanks to Lei) * Adding `BoxWarning` class to allow for the clean suppression of warnings * Fixing default_box_attr to accept items that evaluate to `None` (thanks to Wenbo Zhao and Yordan Ivanov) * Fixing `BoxList` to properly send internal box options down into new lists * Fixing issues with conversion and camel killer boxes not being set properly on insert * Changing default_box to set objects in box on lookup * Changing `camel_killer` to convert items on insert, which will change the keys when converted back to dict unlike before * Fallback to `PyYAML` if `ruamel.yaml` is not detected (thanks to wim glenn) * Removing official support for `pypy` as it's pickling behavior is not the same as CPython * Removing internal __box_heritage as it was no longer needed due to behavior update Version 4.0.4 ------------- OBS-URL: https://build.opensuse.org/request/show/786913 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=7
2020-03-20 14:37:25 +00:00
Version: 4.2.2
Release: 0
Summary: Advanced Python dictionaries with dot notation access
License: MIT
Group: Development/Languages/Python
URL: https://github.com/cdgriffith/Box
Accepting request 786913 from home:pgajdos:python - version update to 4.2.2 Version 4.2.2 ------------- * Fixing `default_box` doesn't first look for safe attributes before falling back to default (thanks to Pymancer) * Changing from TravisCI to Github Actions Version 4.2.1 ------------- * Fixing uncaught print statement (thanks to Bruno Rocha) * Fixing old references to `box_it_up` in the documentation Version 4.2.0 ------------- * Adding optimizations for speed ups to creation and inserts * Adding internal record of safe attributes for faster lookups, increases memory footprint for speed (thanks to Jonas Irgens Kylling) * Adding all additional methods specific to `Box` as protected keys * Fixing `merge_update` from incorrectly calling `__setattr__` which was causing a huge slowdown (thanks to Jonas Irgens Kylling) * Fixing `copy` and `__copy__` not copying box options Version 4.1.0 ------------- * Adding support for list traversal with `box_dots` (thanks to Lei) * Adding `BoxWarning` class to allow for the clean suppression of warnings * Fixing default_box_attr to accept items that evaluate to `None` (thanks to Wenbo Zhao and Yordan Ivanov) * Fixing `BoxList` to properly send internal box options down into new lists * Fixing issues with conversion and camel killer boxes not being set properly on insert * Changing default_box to set objects in box on lookup * Changing `camel_killer` to convert items on insert, which will change the keys when converted back to dict unlike before * Fallback to `PyYAML` if `ruamel.yaml` is not detected (thanks to wim glenn) * Removing official support for `pypy` as it's pickling behavior is not the same as CPython * Removing internal __box_heritage as it was no longer needed due to behavior update Version 4.0.4 ------------- OBS-URL: https://build.opensuse.org/request/show/786913 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=7
2020-03-20 14:37:25 +00:00
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
Accepting request 786913 from home:pgajdos:python - version update to 4.2.2 Version 4.2.2 ------------- * Fixing `default_box` doesn't first look for safe attributes before falling back to default (thanks to Pymancer) * Changing from TravisCI to Github Actions Version 4.2.1 ------------- * Fixing uncaught print statement (thanks to Bruno Rocha) * Fixing old references to `box_it_up` in the documentation Version 4.2.0 ------------- * Adding optimizations for speed ups to creation and inserts * Adding internal record of safe attributes for faster lookups, increases memory footprint for speed (thanks to Jonas Irgens Kylling) * Adding all additional methods specific to `Box` as protected keys * Fixing `merge_update` from incorrectly calling `__setattr__` which was causing a huge slowdown (thanks to Jonas Irgens Kylling) * Fixing `copy` and `__copy__` not copying box options Version 4.1.0 ------------- * Adding support for list traversal with `box_dots` (thanks to Lei) * Adding `BoxWarning` class to allow for the clean suppression of warnings * Fixing default_box_attr to accept items that evaluate to `None` (thanks to Wenbo Zhao and Yordan Ivanov) * Fixing `BoxList` to properly send internal box options down into new lists * Fixing issues with conversion and camel killer boxes not being set properly on insert * Changing default_box to set objects in box on lookup * Changing `camel_killer` to convert items on insert, which will change the keys when converted back to dict unlike before * Fallback to `PyYAML` if `ruamel.yaml` is not detected (thanks to wim glenn) * Removing official support for `pypy` as it's pickling behavior is not the same as CPython * Removing internal __box_heritage as it was no longer needed due to behavior update Version 4.0.4 ------------- OBS-URL: https://build.opensuse.org/request/show/786913 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=7
2020-03-20 14:37:25 +00:00
# SECTION test requirements
BuildRequires: %{python_module pathlib}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module ruamel.yaml}
BuildRequires: %{python_module testsuite}
BuildRequires: %{python_module toml}
# /SECTION
Requires: python-ruamel.yaml
Requires: python-toml
%python_subpackages
%description
Advanced Python dictionaries with dot notation access
%prep
Accepting request 786913 from home:pgajdos:python - version update to 4.2.2 Version 4.2.2 ------------- * Fixing `default_box` doesn't first look for safe attributes before falling back to default (thanks to Pymancer) * Changing from TravisCI to Github Actions Version 4.2.1 ------------- * Fixing uncaught print statement (thanks to Bruno Rocha) * Fixing old references to `box_it_up` in the documentation Version 4.2.0 ------------- * Adding optimizations for speed ups to creation and inserts * Adding internal record of safe attributes for faster lookups, increases memory footprint for speed (thanks to Jonas Irgens Kylling) * Adding all additional methods specific to `Box` as protected keys * Fixing `merge_update` from incorrectly calling `__setattr__` which was causing a huge slowdown (thanks to Jonas Irgens Kylling) * Fixing `copy` and `__copy__` not copying box options Version 4.1.0 ------------- * Adding support for list traversal with `box_dots` (thanks to Lei) * Adding `BoxWarning` class to allow for the clean suppression of warnings * Fixing default_box_attr to accept items that evaluate to `None` (thanks to Wenbo Zhao and Yordan Ivanov) * Fixing `BoxList` to properly send internal box options down into new lists * Fixing issues with conversion and camel killer boxes not being set properly on insert * Changing default_box to set objects in box on lookup * Changing `camel_killer` to convert items on insert, which will change the keys when converted back to dict unlike before * Fallback to `PyYAML` if `ruamel.yaml` is not detected (thanks to wim glenn) * Removing official support for `pypy` as it's pickling behavior is not the same as CPython * Removing internal __box_heritage as it was no longer needed due to behavior update Version 4.0.4 ------------- OBS-URL: https://build.opensuse.org/request/show/786913 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=7
2020-03-20 14:37:25 +00:00
%setup -q -n Box-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
Accepting request 786913 from home:pgajdos:python - version update to 4.2.2 Version 4.2.2 ------------- * Fixing `default_box` doesn't first look for safe attributes before falling back to default (thanks to Pymancer) * Changing from TravisCI to Github Actions Version 4.2.1 ------------- * Fixing uncaught print statement (thanks to Bruno Rocha) * Fixing old references to `box_it_up` in the documentation Version 4.2.0 ------------- * Adding optimizations for speed ups to creation and inserts * Adding internal record of safe attributes for faster lookups, increases memory footprint for speed (thanks to Jonas Irgens Kylling) * Adding all additional methods specific to `Box` as protected keys * Fixing `merge_update` from incorrectly calling `__setattr__` which was causing a huge slowdown (thanks to Jonas Irgens Kylling) * Fixing `copy` and `__copy__` not copying box options Version 4.1.0 ------------- * Adding support for list traversal with `box_dots` (thanks to Lei) * Adding `BoxWarning` class to allow for the clean suppression of warnings * Fixing default_box_attr to accept items that evaluate to `None` (thanks to Wenbo Zhao and Yordan Ivanov) * Fixing `BoxList` to properly send internal box options down into new lists * Fixing issues with conversion and camel killer boxes not being set properly on insert * Changing default_box to set objects in box on lookup * Changing `camel_killer` to convert items on insert, which will change the keys when converted back to dict unlike before * Fallback to `PyYAML` if `ruamel.yaml` is not detected (thanks to wim glenn) * Removing official support for `pypy` as it's pickling behavior is not the same as CPython * Removing internal __box_heritage as it was no longer needed due to behavior update Version 4.0.4 ------------- OBS-URL: https://build.opensuse.org/request/show/786913 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=7
2020-03-20 14:37:25 +00:00
export PYTHONPATH='.'
%pytest_arch
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog