Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-jaraco.collections for
openSUSE:Factory checked in at 2022-10-27 13:52:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jaraco.collections (Old)
and /work/SRC/openSUSE:Factory/.python-jaraco.collections.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jaraco.collections"
Thu Oct 27 13:52:12 2022 rev:7 rq:1031198 version:3.6.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jaraco.collections/python-jaraco.collections.changes
2022-08-31 18:08:32.487304572 +0200
+++
/work/SRC/openSUSE:Factory/.python-jaraco.collections.new.2275/python-jaraco.collections.changes
2022-10-27 13:52:14.643981075 +0200
@@ -1,0 +2,14 @@
+Tue Oct 25 19:21:15 UTC 2022 - Matej Cepl <[email protected]>
+
+- Upgrade to 3.6.0:
+ - Revised DictFilter:
+ - Fixed issue where DictFilter.__contains__ would raise a
+ KeyError.
+ - Relies heavily now on collections.abc.Mapping base class.
+
+-------------------------------------------------------------------
+Tue Oct 25 19:17:07 UTC 2022 - Matej Cepl <[email protected]>
+
+- Remove conditional definition of python_module.
+
+-------------------------------------------------------------------
Old:
----
jaraco.collections-3.5.2.tar.gz
New:
----
jaraco.collections-3.6.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jaraco.collections.spec ++++++
--- /var/tmp/diff_new_pack.OhRMmW/_old 2022-10-27 13:52:15.183983780 +0200
+++ /var/tmp/diff_new_pack.OhRMmW/_new 2022-10-27 13:52:15.187983800 +0200
@@ -16,10 +16,9 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-jaraco.collections
-Version: 3.5.2
+Version: 3.6.0
Release: 0
Summary: Tools to work with collections
License: MIT
++++++ jaraco.collections-3.5.2.tar.gz -> jaraco.collections-3.6.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.collections-3.5.2/.github/workflows/main.yml
new/jaraco.collections-3.6.0/.github/workflows/main.yml
--- old/jaraco.collections-3.5.2/.github/workflows/main.yml 2022-07-14
07:05:53.000000000 +0200
+++ new/jaraco.collections-3.6.0/.github/workflows/main.yml 2022-10-23
18:42:12.000000000 +0200
@@ -2,27 +2,61 @@
on: [push, pull_request]
+env:
+ # Environment variables to support color support (jaraco/skeleton#66):
+ # Request colored output from CLI tools supporting it. Different tools
+ # interpret the value differently. For some, just being set is sufficient.
+ # For others, it must be a non-zero integer. For yet others, being set
+ # to a non-empty value is sufficient.
+ FORCE_COLOR: -106
+ # MyPy's color enforcement (must be a non-zero number)
+ MYPY_FORCE_COLOR: -42
+ # Recognized by the `py` package, dependency of `pytest` (must be "1")
+ PY_COLORS: 1
+ # Make tox-wrapped tools see color requests
+ TOX_TESTENV_PASSENV: >-
+ FORCE_COLOR
+ MYPY_FORCE_COLOR
+ NO_COLOR
+ PY_COLORS
+ PYTEST_THEME
+ PYTEST_THEME_MODE
+
+ # Suppress noisy pip warnings
+ PIP_DISABLE_PIP_VERSION_CHECK: 'true'
+ PIP_NO_PYTHON_VERSION_WARNING: 'true'
+ PIP_NO_WARN_SCRIPT_LOCATION: 'true'
+
+ # Disable the spinner, noise in GHA; TODO(webknjaz): Fix this upstream
+ # Must be "1".
+ TOX_PARALLEL_NO_SPINNER: 1
+
+
jobs:
test:
strategy:
matrix:
python:
- # Build on pre-releases until stable, then stable releases.
- # actions/setup-python#213
- - ~3.7.0-0
- - ~3.10.0-0
- - ~3.11.0-0
+ - "3.7"
+ - "3.10"
+ - "3.11"
+ # Workaround for actions/setup-python#508
+ dev:
+ - -dev
platform:
- ubuntu-latest
- macos-latest
- windows-latest
+ include:
+ - python: pypy3.9
+ platform: ubuntu-latest
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Setup Python
- uses: actions/setup-python@v3
+ uses: actions/setup-python@v4
with:
- python-version: ${{ matrix.python }}
+ python-version: ${{ matrix.python }}${{ matrix.dev }}
- name: Install tox
run: |
python -m pip install tox
@@ -52,9 +86,9 @@
steps:
- uses: actions/checkout@v3
- name: Setup Python
- uses: actions/setup-python@v3
+ uses: actions/setup-python@v4
with:
- python-version: "3.10"
+ python-version: 3.11-dev
- name: Install tox
run: |
python -m pip install tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.collections-3.5.2/.readthedocs.yaml
new/jaraco.collections-3.6.0/.readthedocs.yaml
--- old/jaraco.collections-3.5.2/.readthedocs.yaml 1970-01-01
01:00:00.000000000 +0100
+++ new/jaraco.collections-3.6.0/.readthedocs.yaml 2022-10-23
18:42:12.000000000 +0200
@@ -0,0 +1,13 @@
+version: 2
+python:
+ install:
+ - path: .
+ extra_requirements:
+ - docs
+
+# workaround for readthedocs/readthedocs.org#9623
+build:
+ # workaround for readthedocs/readthedocs.org#9635
+ os: ubuntu-22.04
+ tools:
+ python: "3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.collections-3.5.2/.readthedocs.yml
new/jaraco.collections-3.6.0/.readthedocs.yml
--- old/jaraco.collections-3.5.2/.readthedocs.yml 2022-07-14
07:05:53.000000000 +0200
+++ new/jaraco.collections-3.6.0/.readthedocs.yml 1970-01-01
01:00:00.000000000 +0100
@@ -1,6 +0,0 @@
-version: 2
-python:
- install:
- - path: .
- extra_requirements:
- - docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.collections-3.5.2/CHANGES.rst
new/jaraco.collections-3.6.0/CHANGES.rst
--- old/jaraco.collections-3.5.2/CHANGES.rst 2022-07-14 07:05:53.000000000
+0200
+++ new/jaraco.collections-3.6.0/CHANGES.rst 2022-10-23 18:42:12.000000000
+0200
@@ -1,3 +1,11 @@
+v3.6.0
+======
+
+Revised ``DictFilter``:
+
+ - Fixed issue where ``DictFilter.__contains__`` would raise a ``KeyError``.
+ - Relies heavily now on ``collections.abc.Mapping`` base class.
+
v3.5.2
======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.collections-3.5.2/PKG-INFO
new/jaraco.collections-3.6.0/PKG-INFO
--- old/jaraco.collections-3.5.2/PKG-INFO 2022-07-14 07:06:17.886474400
+0200
+++ new/jaraco.collections-3.6.0/PKG-INFO 2022-10-23 18:42:50.609867600
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: jaraco.collections
-Version: 3.5.2
+Version: 3.6.0
Summary: Collection objects similar to those in stdlib by jaraco
Home-page: https://github.com/jaraco/jaraco.collections
Author: Jason R. Coombs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.collections-3.5.2/docs/conf.py
new/jaraco.collections-3.6.0/docs/conf.py
--- old/jaraco.collections-3.5.2/docs/conf.py 2022-07-14 07:05:53.000000000
+0200
+++ new/jaraco.collections-3.6.0/docs/conf.py 2022-10-23 18:42:12.000000000
+0200
@@ -1,10 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']
+extensions = [
+ 'sphinx.ext.autodoc',
+ 'jaraco.packaging.sphinx',
+]
master_doc = "index"
+html_theme = "furo"
+# Link dates and other references in the changelog
+extensions += ['rst.linker']
link_files = {
'../CHANGES.rst': dict(
using=dict(GH='https://github.com'),
@@ -25,7 +31,7 @@
)
}
-# Be strict about any broken references:
+# Be strict about any broken references
nitpicky = True
# Include Python intersphinx mapping to prevent failures
@@ -35,4 +41,7 @@
'python': ('https://docs.python.org/3', None),
}
+# Preserve authored syntax for defaults
+autodoc_preserve_defaults = True
+
extensions += ['jaraco.tidelift']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.collections-3.5.2/jaraco/collections.py
new/jaraco.collections-3.6.0/jaraco/collections.py
--- old/jaraco.collections-3.5.2/jaraco/collections.py 2022-07-14
07:05:53.000000000 +0200
+++ new/jaraco.collections-3.6.0/jaraco/collections.py 2022-10-23
18:42:12.000000000 +0200
@@ -63,7 +63,7 @@
return len(tuple(iter(self)))
-class DictFilter(object):
+class DictFilter(collections.abc.Mapping):
"""
Takes a dict, and simulates a sub-dict based on the keys.
@@ -92,15 +92,21 @@
...
KeyError: 'e'
+ >>> 'e' in filtered
+ False
+
+ Pattern is useful for excluding keys with a prefix.
+
+ >>> filtered = DictFilter(sample, include_pattern=r'(?![ace])')
+ >>> dict(filtered)
+ {'b': 2, 'd': 4}
+
Also note that DictFilter keeps a reference to the original dict, so
if you modify the original dict, that could modify the filtered dict.
>>> del sample['d']
- >>> del sample['a']
- >>> filtered == {'b': 2, 'c': 3}
- True
- >>> filtered != {'b': 2, 'c': 3}
- False
+ >>> dict(filtered)
+ {'b': 2}
"""
def __init__(self, dict, include_keys=[], include_pattern=None):
@@ -120,29 +126,18 @@
@property
def include_keys(self):
- return self.specified_keys.union(self.pattern_keys)
-
- def keys(self):
- return self.include_keys.intersection(self.dict.keys())
-
- def values(self):
- return map(self.dict.get, self.keys())
+ return self.specified_keys | self.pattern_keys
def __getitem__(self, i):
if i not in self.include_keys:
raise KeyError(i)
return self.dict[i]
- def items(self):
- keys = self.keys()
- values = map(self.dict.get, keys)
- return zip(keys, values)
-
- def __eq__(self, other):
- return dict(self) == other
+ def __iter__(self):
+ return filter(self.include_keys.__contains__, self.dict.keys())
- def __ne__(self, other):
- return dict(self) != other
+ def __len__(self):
+ return len(list(self))
def dict_map(function, dictionary):
@@ -370,7 +365,7 @@
True
>>> 'HELLO' in d
True
- >>> print(repr(FoldedCaseKeyedDict({'heLlo': 'world'})).replace("u'", "'"))
+ >>> print(repr(FoldedCaseKeyedDict({'heLlo': 'world'})))
{'heLlo': 'world'}
>>> d = FoldedCaseKeyedDict({'heLlo': 'world'})
>>> print(d['hello'])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco.collections-3.5.2/jaraco.collections.egg-info/PKG-INFO
new/jaraco.collections-3.6.0/jaraco.collections.egg-info/PKG-INFO
--- old/jaraco.collections-3.5.2/jaraco.collections.egg-info/PKG-INFO
2022-07-14 07:06:17.000000000 +0200
+++ new/jaraco.collections-3.6.0/jaraco.collections.egg-info/PKG-INFO
2022-10-23 18:42:50.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: jaraco.collections
-Version: 3.5.2
+Version: 3.6.0
Summary: Collection objects similar to those in stdlib by jaraco
Home-page: https://github.com/jaraco/jaraco.collections
Author: Jason R. Coombs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco.collections-3.5.2/jaraco.collections.egg-info/SOURCES.txt
new/jaraco.collections-3.6.0/jaraco.collections.egg-info/SOURCES.txt
--- old/jaraco.collections-3.5.2/jaraco.collections.egg-info/SOURCES.txt
2022-07-14 07:06:17.000000000 +0200
+++ new/jaraco.collections-3.6.0/jaraco.collections.egg-info/SOURCES.txt
2022-10-23 18:42:50.000000000 +0200
@@ -2,7 +2,7 @@
.editorconfig
.flake8
.pre-commit-config.yaml
-.readthedocs.yml
+.readthedocs.yaml
CHANGES.rst
LICENSE
README.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jaraco.collections-3.5.2/jaraco.collections.egg-info/requires.txt
new/jaraco.collections-3.6.0/jaraco.collections.egg-info/requires.txt
--- old/jaraco.collections-3.5.2/jaraco.collections.egg-info/requires.txt
2022-07-14 07:06:17.000000000 +0200
+++ new/jaraco.collections-3.6.0/jaraco.collections.egg-info/requires.txt
2022-10-23 18:42:50.000000000 +0200
@@ -2,15 +2,17 @@
jaraco.classes
[docs]
-sphinx
+sphinx>=3.5
jaraco.packaging>=9
rst.linker>=1.9
+furo
jaraco.tidelift>=1.4
[testing]
pytest>=6
pytest-checkdocs>=2.4
pytest-flake8
+flake8<5
pytest-cov
pytest-enabler>=1.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jaraco.collections-3.5.2/setup.cfg
new/jaraco.collections-3.6.0/setup.cfg
--- old/jaraco.collections-3.5.2/setup.cfg 2022-07-14 07:06:17.886474400
+0200
+++ new/jaraco.collections-3.6.0/setup.cfg 2022-10-23 18:42:50.613867500
+0200
@@ -32,6 +32,7 @@
pytest >= 6
pytest-checkdocs >= 2.4
pytest-flake8
+ flake8 < 5
pytest-black >= 0.3.7; \
python_implementation != "PyPy"
pytest-cov
@@ -39,9 +40,10 @@
python_implementation != "PyPy"
pytest-enabler >= 1.3
docs =
- sphinx
+ sphinx >= 3.5
jaraco.packaging >= 9
rst.linker >= 1.9
+ furo
jaraco.tidelift >= 1.4
[options.entry_points]