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

69 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-python-box
#
# Copyright (c) 2024 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/
#
- update to 7.1.1: * Fixing Cython optimized build deployments for linux * Adding #255 defer ipython import for large import speed improvements (thanks to Eric Prestat) * Adding testing for Python 3.12 * Fixing #253 merge_update box list merge types not populated to sub dictionaries (thanks to lei wang) * Fixing #257 Two test failures due to arguments having incorrect types (thanks to Michał Górny) * Fixing stub files to match latest code signatures * Removing #251 support for circular references in lists * Removing support for Python 3.7 as it is EOL * Switching off of poetry due to multiple build issues * Adding #169 default functions with the box_instance and key parameter (thanks to Коптев Роман Викторович) * Adding #170 Be able to initialize with a flattened dict - by using DDBox (thanks to Ash A.) * Adding #192 box_dots treats all keys with periods in them as separate keys (thanks to Rexbard) * Adding #211 support for properties and setters in subclasses * Adding #226 namespace to track changes to the box * Adding #236 iPython detection to prevent adding attribute lookup words * Adding #238 allow ``|`` and ``+`` for frozen boxes * Adding new DDBox class (Default Dots Box) that is a subclass of SBox * Fixing #235 how ``|`` and ``+`` updates were performed for right operations * Fixing #234 typos * Fixing no implicit optionals with type hinting OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=17
2023-12-15 21:35:05 +00:00
%{?sle15_python_module_pythons}
Name: python-python-box
Version: 7.2.0
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
- update to 7.1.1: * Fixing Cython optimized build deployments for linux * Adding #255 defer ipython import for large import speed improvements (thanks to Eric Prestat) * Adding testing for Python 3.12 * Fixing #253 merge_update box list merge types not populated to sub dictionaries (thanks to lei wang) * Fixing #257 Two test failures due to arguments having incorrect types (thanks to Michał Górny) * Fixing stub files to match latest code signatures * Removing #251 support for circular references in lists * Removing support for Python 3.7 as it is EOL * Switching off of poetry due to multiple build issues * Adding #169 default functions with the box_instance and key parameter (thanks to Коптев Роман Викторович) * Adding #170 Be able to initialize with a flattened dict - by using DDBox (thanks to Ash A.) * Adding #192 box_dots treats all keys with periods in them as separate keys (thanks to Rexbard) * Adding #211 support for properties and setters in subclasses * Adding #226 namespace to track changes to the box * Adding #236 iPython detection to prevent adding attribute lookup words * Adding #238 allow ``|`` and ``+`` for frozen boxes * Adding new DDBox class (Default Dots Box) that is a subclass of SBox * Fixing #235 how ``|`` and ``+`` updates were performed for right operations * Fixing #234 typos * Fixing no implicit optionals with type hinting OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=17
2023-12-15 21:35:05 +00:00
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
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
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
BuildRequires: %{python_module msgpack >= 1.0.0}
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
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module ruamel.yaml >= 0.17}
BuildRequires: %{python_module toml >= 0.10.2}
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
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
Requires: python-msgpack >= 1.0.0
Requires: python-ruamel.yaml >= 0.17
Requires: python-toml >= 0.10.2
%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
- update to 7.1.1: * Fixing Cython optimized build deployments for linux * Adding #255 defer ipython import for large import speed improvements (thanks to Eric Prestat) * Adding testing for Python 3.12 * Fixing #253 merge_update box list merge types not populated to sub dictionaries (thanks to lei wang) * Fixing #257 Two test failures due to arguments having incorrect types (thanks to Michał Górny) * Fixing stub files to match latest code signatures * Removing #251 support for circular references in lists * Removing support for Python 3.7 as it is EOL * Switching off of poetry due to multiple build issues * Adding #169 default functions with the box_instance and key parameter (thanks to Коптев Роман Викторович) * Adding #170 Be able to initialize with a flattened dict - by using DDBox (thanks to Ash A.) * Adding #192 box_dots treats all keys with periods in them as separate keys (thanks to Rexbard) * Adding #211 support for properties and setters in subclasses * Adding #226 namespace to track changes to the box * Adding #236 iPython detection to prevent adding attribute lookup words * Adding #238 allow ``|`` and ``+`` for frozen boxes * Adding new DDBox class (Default Dots Box) that is a subclass of SBox * Fixing #235 how ``|`` and ``+`` updates were performed for right operations * Fixing #234 typos * Fixing no implicit optionals with type hinting OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=17
2023-12-15 21:35:05 +00:00
%pyproject_wheel
%install
- update to 7.1.1: * Fixing Cython optimized build deployments for linux * Adding #255 defer ipython import for large import speed improvements (thanks to Eric Prestat) * Adding testing for Python 3.12 * Fixing #253 merge_update box list merge types not populated to sub dictionaries (thanks to lei wang) * Fixing #257 Two test failures due to arguments having incorrect types (thanks to Michał Górny) * Fixing stub files to match latest code signatures * Removing #251 support for circular references in lists * Removing support for Python 3.7 as it is EOL * Switching off of poetry due to multiple build issues * Adding #169 default functions with the box_instance and key parameter (thanks to Коптев Роман Викторович) * Adding #170 Be able to initialize with a flattened dict - by using DDBox (thanks to Ash A.) * Adding #192 box_dots treats all keys with periods in them as separate keys (thanks to Rexbard) * Adding #211 support for properties and setters in subclasses * Adding #226 namespace to track changes to the box * Adding #236 iPython detection to prevent adding attribute lookup words * Adding #238 allow ``|`` and ``+`` for frozen boxes * Adding new DDBox class (Default Dots Box) that is a subclass of SBox * Fixing #235 how ``|`` and ``+`` updates were performed for right operations * Fixing #234 typos * Fixing no implicit optionals with type hinting OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=17
2023-12-15 21:35:05 +00:00
%pyproject_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
- update to 7.1.1: * Fixing Cython optimized build deployments for linux * Adding #255 defer ipython import for large import speed improvements (thanks to Eric Prestat) * Adding testing for Python 3.12 * Fixing #253 merge_update box list merge types not populated to sub dictionaries (thanks to lei wang) * Fixing #257 Two test failures due to arguments having incorrect types (thanks to Michał Górny) * Fixing stub files to match latest code signatures * Removing #251 support for circular references in lists * Removing support for Python 3.7 as it is EOL * Switching off of poetry due to multiple build issues * Adding #169 default functions with the box_instance and key parameter (thanks to Коптев Роман Викторович) * Adding #170 Be able to initialize with a flattened dict - by using DDBox (thanks to Ash A.) * Adding #192 box_dots treats all keys with periods in them as separate keys (thanks to Rexbard) * Adding #211 support for properties and setters in subclasses * Adding #226 namespace to track changes to the box * Adding #236 iPython detection to prevent adding attribute lookup words * Adding #238 allow ``|`` and ``+`` for frozen boxes * Adding new DDBox class (Default Dots Box) that is a subclass of SBox * Fixing #235 how ``|`` and ``+`` updates were performed for right operations * Fixing #234 typos * Fixing no implicit optionals with type hinting OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-box?expand=0&rev=17
2023-12-15 21:35:05 +00:00
%{python_sitelib}/box
%{python_sitelib}/python_box-%{version}.dist-info
%changelog