From 0c16d5fa66fc74ca782ae16e9779248837a1b0a33eca464659fd59003959990c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 9 Mar 2019 09:49:32 +0000 Subject: [PATCH] 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 --- LICENSE | 29 ----------------------------- boltons-18.0.0.tar.gz | 3 --- boltons-19.1.0.tar.gz | 3 +++ python-boltons.changes | 38 ++++++++++++++++++++++++++++++++++++++ python-boltons.spec | 14 +++++++------- 5 files changed, 48 insertions(+), 39 deletions(-) delete mode 100644 LICENSE delete mode 100644 boltons-18.0.0.tar.gz create mode 100644 boltons-19.1.0.tar.gz diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 5960736..0000000 --- a/LICENSE +++ /dev/null @@ -1,29 +0,0 @@ -Copyright (c) 2013, Mahmoud Hashemi - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - - * The names of the contributors may not be used to endorse or - promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/boltons-18.0.0.tar.gz b/boltons-18.0.0.tar.gz deleted file mode 100644 index 5bb4c5c..0000000 --- a/boltons-18.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a11e113cf3f0915a21ee2c8c69c315b02f46546ad61d3640e1037b7603f6e16f -size 138894 diff --git a/boltons-19.1.0.tar.gz b/boltons-19.1.0.tar.gz new file mode 100644 index 0000000..b59203b --- /dev/null +++ b/boltons-19.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae59ff28466caacaa0b55a536d41c37c11192475804bdbfeb076172e80a5c1b1 +size 222813 diff --git a/python-boltons.changes b/python-boltons.changes index 361d2d3..7c192d0 100644 --- a/python-boltons.changes +++ b/python-boltons.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Sat Mar 9 08:12:17 UTC 2019 - John Vandenberg + +- 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__` + ------------------------------------------------------------------- Tue Dec 4 12:46:17 UTC 2018 - Matej Cepl diff --git a/python-boltons.spec b/python-boltons.spec index 434e417..52e8882 100644 --- a/python-boltons.spec +++ b/python-boltons.spec @@ -1,7 +1,7 @@ # # spec file for package python-boltons # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,18 +18,17 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-boltons -Version: 18.0.0 +Version: 19.1.0 Release: 0 Summary: The "Boltons" utility package for Python License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/mahmoud/boltons -Source: https://files.pythonhosted.org/packages/source/b/boltons/boltons-%{version}.tar.gz -Source10: https://raw.githubusercontent.com/mahmoud/boltons/%{version}/LICENSE +Source: https://github.com/mahmoud/boltons/archive/19.1.0.tar.gz#/boltons-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -40,7 +39,6 @@ http://boltons.readthedocs.org. %prep %setup -q -n boltons-%{version} -cp %{SOURCE10} . %build %python_build @@ -49,8 +47,10 @@ cp %{SOURCE10} . %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%python_exec -m pytest + %files %{python_files} -%defattr(-,root,root,-) %license LICENSE %doc README.md %{python_sitelib}/*