2018-05-03 07:20:01 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-boltons
|
|
|
|
|
#
|
2025-02-21 12:33:38 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-05-03 07:20:01 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-12-04 13:17:37 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-03 07:20:01 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-12-27 10:47:38 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-05-03 07:20:01 +00:00
|
|
|
Name: python-boltons
|
2025-02-21 12:33:38 +00:00
|
|
|
Version: 25.0.0
|
2018-05-03 07:20:01 +00:00
|
|
|
Release: 0
|
2018-06-08 08:06:22 +00:00
|
|
|
Summary: The "Boltons" utility package for Python
|
2018-05-03 07:20:01 +00:00
|
|
|
License: BSD-3-Clause
|
2020-01-22 16:04:11 +00:00
|
|
|
URL: https://github.com/mahmoud/boltons
|
2023-12-15 09:38:55 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/boltons/boltons-%{version}.tar.gz
|
2025-02-21 12:33:38 +00:00
|
|
|
BuildRequires: %{python_module flit-core}
|
2024-04-20 13:55:41 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
Accepting request 682982 from home:jayvdb:branches:devel:languages:python
- Activate test suite, using GitHub as sdist
- Update to v19.1.0
* Quick release to enhance funcutils.FunctionBuilder and funcutils.wraps
to maintain function annotations on Python 3+
- from v19.0.0
* New types and utilities
+ dictutils.ManyToMany, complement of dictutils.OneToOne
+ dictutils.FrozenDict, immutable mapping
+ setutils.complement(), "negative" sets, useful for exclusion and
many other set operations
+ iterutils.soft_sorted(), more flexible sorting of sequences
+ iterutils.flatten_iter() and .flatten(), collapse nested iterables
+ mathutils.Bits type, representing a bitstring and translating
between integer, bytestring, hex, and boolean sequence representations
* funcutils improvements
+ FunctionBuilder funcutils.wraps now support coroutines/async
+ FunctionBuilder.add_arg() allows the addition of arguments to the
signature, to match FunctionBuilder.remove_arg()
+ Similarly funcutils.wraps() now takes an "expected" argument, to
complement "injected"
* Other bugfixes and improvements
+ cacheutils.LRI is now threadsafe and correctly handles duplicate keys
+ dictutils.subdict() returns the same type of dictionary it was passed
+ urlutils, better IPv6 support and URL behave more natively like strings
+ Improve singularization in strutils
+ Fix some deprecation warnings in Python 3.7
+ Document the change in dict constructor behavior affecting
dictutils.OMD under Python 3.7+
- from v18.0.1
* A few bugfixes and a handy text utility.
* Add MultiSub for multiple string substitutions in a single call
* `tableutils.Table.to_text()` is more Markdown compatible
* `atomic_save` works better with `overwrite=True`
* Reduced memory footprint on `tbutils._DeferredLine` with `__slots__`
OBS-URL: https://build.opensuse.org/request/show/682982
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-boltons?expand=0&rev=10
2019-03-09 09:49:32 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2024-04-20 13:55:41 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-06-08 08:06:22 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-03 07:20:01 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2018-06-08 08:06:22 +00:00
|
|
|
Boltons is a package containing over 160 utility types and functions
|
|
|
|
|
that can be used as a package or independently. Documentation is on
|
|
|
|
|
http://boltons.readthedocs.org.
|
2018-05-03 07:20:01 +00:00
|
|
|
|
|
|
|
|
%prep
|
2021-03-22 10:47:05 +00:00
|
|
|
%autosetup -p1 -n boltons-%{version}
|
2018-05-03 07:20:01 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-04-20 13:55:41 +00:00
|
|
|
%pyproject_wheel
|
2018-05-03 07:20:01 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-04-20 13:55:41 +00:00
|
|
|
%pyproject_install
|
2018-05-03 07:20:01 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
Accepting request 682982 from home:jayvdb:branches:devel:languages:python
- Activate test suite, using GitHub as sdist
- Update to v19.1.0
* Quick release to enhance funcutils.FunctionBuilder and funcutils.wraps
to maintain function annotations on Python 3+
- from v19.0.0
* New types and utilities
+ dictutils.ManyToMany, complement of dictutils.OneToOne
+ dictutils.FrozenDict, immutable mapping
+ setutils.complement(), "negative" sets, useful for exclusion and
many other set operations
+ iterutils.soft_sorted(), more flexible sorting of sequences
+ iterutils.flatten_iter() and .flatten(), collapse nested iterables
+ mathutils.Bits type, representing a bitstring and translating
between integer, bytestring, hex, and boolean sequence representations
* funcutils improvements
+ FunctionBuilder funcutils.wraps now support coroutines/async
+ FunctionBuilder.add_arg() allows the addition of arguments to the
signature, to match FunctionBuilder.remove_arg()
+ Similarly funcutils.wraps() now takes an "expected" argument, to
complement "injected"
* Other bugfixes and improvements
+ cacheutils.LRI is now threadsafe and correctly handles duplicate keys
+ dictutils.subdict() returns the same type of dictionary it was passed
+ urlutils, better IPv6 support and URL behave more natively like strings
+ Improve singularization in strutils
+ Fix some deprecation warnings in Python 3.7
+ Document the change in dict constructor behavior affecting
dictutils.OMD under Python 3.7+
- from v18.0.1
* A few bugfixes and a handy text utility.
* Add MultiSub for multiple string substitutions in a single call
* `tableutils.Table.to_text()` is more Markdown compatible
* `atomic_save` works better with `overwrite=True`
* Reduced memory footprint on `tbutils._DeferredLine` with `__slots__`
OBS-URL: https://build.opensuse.org/request/show/682982
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-boltons?expand=0&rev=10
2019-03-09 09:49:32 +00:00
|
|
|
%check
|
2020-01-22 16:04:11 +00:00
|
|
|
%pytest
|
Accepting request 682982 from home:jayvdb:branches:devel:languages:python
- Activate test suite, using GitHub as sdist
- Update to v19.1.0
* Quick release to enhance funcutils.FunctionBuilder and funcutils.wraps
to maintain function annotations on Python 3+
- from v19.0.0
* New types and utilities
+ dictutils.ManyToMany, complement of dictutils.OneToOne
+ dictutils.FrozenDict, immutable mapping
+ setutils.complement(), "negative" sets, useful for exclusion and
many other set operations
+ iterutils.soft_sorted(), more flexible sorting of sequences
+ iterutils.flatten_iter() and .flatten(), collapse nested iterables
+ mathutils.Bits type, representing a bitstring and translating
between integer, bytestring, hex, and boolean sequence representations
* funcutils improvements
+ FunctionBuilder funcutils.wraps now support coroutines/async
+ FunctionBuilder.add_arg() allows the addition of arguments to the
signature, to match FunctionBuilder.remove_arg()
+ Similarly funcutils.wraps() now takes an "expected" argument, to
complement "injected"
* Other bugfixes and improvements
+ cacheutils.LRI is now threadsafe and correctly handles duplicate keys
+ dictutils.subdict() returns the same type of dictionary it was passed
+ urlutils, better IPv6 support and URL behave more natively like strings
+ Improve singularization in strutils
+ Fix some deprecation warnings in Python 3.7
+ Document the change in dict constructor behavior affecting
dictutils.OMD under Python 3.7+
- from v18.0.1
* A few bugfixes and a handy text utility.
* Add MultiSub for multiple string substitutions in a single call
* `tableutils.Table.to_text()` is more Markdown compatible
* `atomic_save` works better with `overwrite=True`
* Reduced memory footprint on `tbutils._DeferredLine` with `__slots__`
OBS-URL: https://build.opensuse.org/request/show/682982
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-boltons?expand=0&rev=10
2019-03-09 09:49:32 +00:00
|
|
|
|
2018-05-03 07:20:01 +00:00
|
|
|
%files %{python_files}
|
2018-05-03 15:08:32 +00:00
|
|
|
%license LICENSE
|
2021-01-30 12:49:01 +00:00
|
|
|
%doc README.md CHANGELOG.md docs/*.rst
|
2021-03-22 10:47:05 +00:00
|
|
|
%{python_sitelib}/boltons
|
2024-04-20 13:55:41 +00:00
|
|
|
%{python_sitelib}/boltons-%{version}.dist-info
|
2018-05-03 07:20:01 +00:00
|
|
|
|
|
|
|
|
%changelog
|