Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-packaging for 
openSUSE:Factory checked in at 2021-11-28 21:29:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-packaging (Old)
 and      /work/SRC/openSUSE:Factory/.python-packaging.new.1895 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-packaging"

Sun Nov 28 21:29:51 2021 rev:22 rq:933621 version:21.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-packaging/python-packaging.changes        
2021-11-21 23:51:43.690340739 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-packaging.new.1895/python-packaging.changes  
    2021-11-28 21:29:52.694120471 +0100
@@ -1,0 +2,9 @@
+Wed Nov 24 15:16:45 UTC 2021 - Matthias Fehring <[email protected]>
+
+- update to 21.3:
+  * Add a pp3-none-any tag (gh#pypa/packaging#311)
+  * Replace the blank pyparsing 3 exclusion with a 3.0.5 exclusion
+    (gh#pypa/packaging#481), (gh#pypa/packaging#486)
+  * Fix a spelling mistake (gh#pypa/packaging#479)
+
+-------------------------------------------------------------------

Old:
----
  packaging-21.2.tar.gz

New:
----
  packaging-21.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-packaging.spec ++++++
--- /var/tmp/diff_new_pack.r0TbQT/_old  2021-11-28 21:29:53.290118564 +0100
+++ /var/tmp/diff_new_pack.r0TbQT/_new  2021-11-28 21:29:53.294118552 +0100
@@ -29,7 +29,7 @@
 %define mypython python
 %global skip_python2 1
 Name:           python-packaging%{psuffix}
-Version:        21.2
+Version:        21.3
 Release:        0
 Summary:        Core utilities for Python packages
 License:        Apache-2.0

++++++ packaging-21.2.tar.gz -> packaging-21.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/.pre-commit-config.yaml 
new/packaging-21.3/.pre-commit-config.yaml
--- old/packaging-21.2/.pre-commit-config.yaml  2021-07-23 09:28:49.000000000 
+0200
+++ new/packaging-21.3/.pre-commit-config.yaml  2021-11-16 17:25:31.000000000 
+0100
@@ -14,6 +14,12 @@
         exclude: '^(docs|tasks|tests)|setup\.py'
         args: []
 
+  - repo: https://github.com/asottile/pyupgrade
+    rev: v2.29.0
+    hooks:
+      - id: pyupgrade
+        args: [--py36-plus]
+
   - repo: https://github.com/psf/black
     rev: 20.8b1
     hooks:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/CHANGELOG.rst 
new/packaging-21.3/CHANGELOG.rst
--- old/packaging-21.2/CHANGELOG.rst    2021-10-29 13:25:03.000000000 +0200
+++ new/packaging-21.3/CHANGELOG.rst    2021-11-18 01:38:55.000000000 +0100
@@ -1,6 +1,13 @@
 Changelog
 ---------
 
+21.3 - 2021-11-17
+~~~~~~~~~~~~~~~~~
+
+* Add a ``pp3-none-any`` tag (:issue:`311`)
+* Replace the blank pyparsing 3 exclusion with a 3.0.5 exclusion 
(:issue:`481`, :issue:`486`)
+* Fix a spelling mistake (:issue:`479`)
+
 21.2 - 2021-10-29
 ~~~~~~~~~~~~~~~~~
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/PKG-INFO new/packaging-21.3/PKG-INFO
--- old/packaging-21.2/PKG-INFO 2021-10-29 13:25:06.339652000 +0200
+++ new/packaging-21.3/PKG-INFO 2021-11-18 01:38:59.810365200 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: packaging
-Version: 21.2
+Version: 21.3
 Summary: Core utilities for Python packages
 Home-page: https://github.com/pypa/packaging
 Author: Donald Stufft and individual contributors
@@ -104,6 +104,13 @@
 Changelog
 ---------
 
+21.3 - 2021-11-17
+~~~~~~~~~~~~~~~~~
+
+* Add a ``pp3-none-any`` tag (`#311 
<https://github.com/pypa/packaging/issues/311>`__)
+* Replace the blank pyparsing 3 exclusion with a 3.0.5 exclusion (`#481 
<https://github.com/pypa/packaging/issues/481>`__, `#486 
<https://github.com/pypa/packaging/issues/486>`__)
+* Fix a spelling mistake (`#479 
<https://github.com/pypa/packaging/issues/479>`__)
+
 21.2 - 2021-10-29
 ~~~~~~~~~~~~~~~~~
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/docs/tags.rst 
new/packaging-21.3/docs/tags.rst
--- old/packaging-21.2/docs/tags.rst    2021-10-11 22:34:52.000000000 +0200
+++ new/packaging-21.3/docs/tags.rst    2021-11-16 17:25:31.000000000 +0100
@@ -190,7 +190,7 @@
     user-provided ABIs via ``abis`` and the ``none`` ABI will be used.
 
     :param Sequence python_version: A one- or two-item sequence representing 
the
-                                 targetted Python version. Defaults to
+                                 targeted Python version. Defaults to
                                  ``sys.version_info[:2]``.
     :param Iterable abis: Iterable of compatible ABIs. Defaults to the ABIs
                           compatible with the current system.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/packaging/__about__.py 
new/packaging-21.3/packaging/__about__.py
--- old/packaging-21.2/packaging/__about__.py   2021-10-29 13:25:03.000000000 
+0200
+++ new/packaging-21.3/packaging/__about__.py   2021-11-18 01:38:55.000000000 
+0100
@@ -17,7 +17,7 @@
 __summary__ = "Core utilities for Python packages"
 __uri__ = "https://github.com/pypa/packaging";
 
-__version__ = "21.2"
+__version__ = "21.3"
 
 __author__ = "Donald Stufft and individual contributors"
 __email__ = "[email protected]"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/packaging/_musllinux.py 
new/packaging-21.3/packaging/_musllinux.py
--- old/packaging-21.2/packaging/_musllinux.py  2021-10-29 13:19:27.000000000 
+0200
+++ new/packaging-21.3/packaging/_musllinux.py  2021-11-16 17:25:31.000000000 
+0100
@@ -98,7 +98,7 @@
     with contextlib.ExitStack() as stack:
         try:
             f = stack.enter_context(open(executable, "rb"))
-        except IOError:
+        except OSError:
             return None
         ld = _parse_ld_musl_from_elf(f)
     if not ld:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/packaging/_structures.py 
new/packaging-21.3/packaging/_structures.py
--- old/packaging-21.2/packaging/_structures.py 2021-10-29 13:19:27.000000000 
+0200
+++ new/packaging-21.3/packaging/_structures.py 2021-11-16 17:25:31.000000000 
+0100
@@ -19,9 +19,6 @@
     def __eq__(self, other: object) -> bool:
         return isinstance(other, self.__class__)
 
-    def __ne__(self, other: object) -> bool:
-        return not isinstance(other, self.__class__)
-
     def __gt__(self, other: object) -> bool:
         return True
 
@@ -51,9 +48,6 @@
     def __eq__(self, other: object) -> bool:
         return isinstance(other, self.__class__)
 
-    def __ne__(self, other: object) -> bool:
-        return not isinstance(other, self.__class__)
-
     def __gt__(self, other: object) -> bool:
         return False
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/packaging/specifiers.py 
new/packaging-21.3/packaging/specifiers.py
--- old/packaging-21.2/packaging/specifiers.py  2021-10-29 13:19:27.000000000 
+0200
+++ new/packaging-21.3/packaging/specifiers.py  2021-11-16 17:25:31.000000000 
+0100
@@ -57,13 +57,6 @@
         objects are equal.
         """
 
-    @abc.abstractmethod
-    def __ne__(self, other: object) -> bool:
-        """
-        Returns a boolean representing whether or not the two Specifier like
-        objects are not equal.
-        """
-
     @abc.abstractproperty
     def prereleases(self) -> Optional[bool]:
         """
@@ -119,7 +112,7 @@
             else ""
         )
 
-        return "<{}({!r}{})>".format(self.__class__.__name__, str(self), pre)
+        return f"<{self.__class__.__name__}({str(self)!r}{pre})>"
 
     def __str__(self) -> str:
         return "{}{}".format(*self._spec)
@@ -142,17 +135,6 @@
 
         return self._canonical_spec == other._canonical_spec
 
-    def __ne__(self, other: object) -> bool:
-        if isinstance(other, str):
-            try:
-                other = self.__class__(str(other))
-            except InvalidSpecifier:
-                return NotImplemented
-        elif not isinstance(other, self.__class__):
-            return NotImplemented
-
-        return self._spec != other._spec
-
     def _get_operator(self, op: str) -> CallableOperator:
         operator_callable: CallableOperator = getattr(
             self, f"_compare_{self._operators[op]}"
@@ -667,7 +649,7 @@
             else ""
         )
 
-        return "<SpecifierSet({!r}{})>".format(str(self), pre)
+        return f"<SpecifierSet({str(self)!r}{pre})>"
 
     def __str__(self) -> str:
         return ",".join(sorted(str(s) for s in self._specs))
@@ -706,14 +688,6 @@
 
         return self._specs == other._specs
 
-    def __ne__(self, other: object) -> bool:
-        if isinstance(other, (str, _IndividualSpecifier)):
-            other = SpecifierSet(str(other))
-        elif not isinstance(other, SpecifierSet):
-            return NotImplemented
-
-        return self._specs != other._specs
-
     def __len__(self) -> int:
         return len(self._specs)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/packaging/tags.py 
new/packaging-21.3/packaging/tags.py
--- old/packaging-21.2/packaging/tags.py        2021-10-29 13:19:27.000000000 
+0200
+++ new/packaging-21.3/packaging/tags.py        2021-11-16 17:25:31.000000000 
+0100
@@ -90,7 +90,7 @@
         return f"{self._interpreter}-{self._abi}-{self._platform}"
 
     def __repr__(self) -> str:
-        return "<{self} @ {self_id}>".format(self=self, self_id=id(self))
+        return f"<{self} @ {id(self)}>"
 
 
 def parse_tag(tag: str) -> FrozenSet[Tag]:
@@ -192,7 +192,7 @@
     if not python_version:
         python_version = sys.version_info[:2]
 
-    interpreter = "cp{}".format(_version_nodot(python_version[:2]))
+    interpreter = f"cp{_version_nodot(python_version[:2])}"
 
     if abis is None:
         if len(python_version) > 1:
@@ -268,11 +268,11 @@
     all previous versions of that major version.
     """
     if len(py_version) > 1:
-        yield "py{version}".format(version=_version_nodot(py_version[:2]))
-    yield "py{major}".format(major=py_version[0])
+        yield f"py{_version_nodot(py_version[:2])}"
+    yield f"py{py_version[0]}"
     if len(py_version) > 1:
         for minor in range(py_version[1] - 1, -1, -1):
-            yield "py{version}".format(version=_version_nodot((py_version[0], 
minor)))
+            yield f"py{_version_nodot((py_version[0], minor))}"
 
 
 def compatible_tags(
@@ -481,4 +481,7 @@
     else:
         yield from generic_tags()
 
-    yield from compatible_tags()
+    if interp_name == "pp":
+        yield from compatible_tags(interpreter="pp3")
+    else:
+        yield from compatible_tags()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/packaging.egg-info/PKG-INFO 
new/packaging-21.3/packaging.egg-info/PKG-INFO
--- old/packaging-21.2/packaging.egg-info/PKG-INFO      2021-10-29 
13:25:06.000000000 +0200
+++ new/packaging-21.3/packaging.egg-info/PKG-INFO      2021-11-18 
01:38:59.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: packaging
-Version: 21.2
+Version: 21.3
 Summary: Core utilities for Python packages
 Home-page: https://github.com/pypa/packaging
 Author: Donald Stufft and individual contributors
@@ -104,6 +104,13 @@
 Changelog
 ---------
 
+21.3 - 2021-11-17
+~~~~~~~~~~~~~~~~~
+
+* Add a ``pp3-none-any`` tag (`#311 
<https://github.com/pypa/packaging/issues/311>`__)
+* Replace the blank pyparsing 3 exclusion with a 3.0.5 exclusion (`#481 
<https://github.com/pypa/packaging/issues/481>`__, `#486 
<https://github.com/pypa/packaging/issues/486>`__)
+* Fix a spelling mistake (`#479 
<https://github.com/pypa/packaging/issues/479>`__)
+
 21.2 - 2021-10-29
 ~~~~~~~~~~~~~~~~~
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/packaging.egg-info/requires.txt 
new/packaging-21.3/packaging.egg-info/requires.txt
--- old/packaging-21.2/packaging.egg-info/requires.txt  2021-10-29 
13:25:06.000000000 +0200
+++ new/packaging-21.3/packaging.egg-info/requires.txt  2021-11-18 
01:38:59.000000000 +0100
@@ -1 +1 @@
-pyparsing<3,>=2.0.2
+pyparsing!=3.0.5,>=2.0.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/setup.py new/packaging-21.3/setup.py
--- old/packaging-21.2/setup.py 2021-10-29 13:19:27.000000000 +0200
+++ new/packaging-21.3/setup.py 2021-11-16 17:25:31.000000000 +0100
@@ -48,7 +48,7 @@
     author=about["__author__"],
     author_email=about["__email__"],
     python_requires=">=3.6",
-    install_requires=["pyparsing>=2.0.2,<3"],  # Needed to avoid issue #91
+    install_requires=["pyparsing>=2.0.2,!=3.0.5"],  # 2.0.2 + needed to avoid 
issue #91
     classifiers=[
         "Development Status :: 5 - Production/Stable",
         "Intended Audience :: Developers",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/tests/test_markers.py 
new/packaging-21.3/tests/test_markers.py
--- old/packaging-21.2/tests/test_markers.py    2021-07-23 09:28:49.000000000 
+0200
+++ new/packaging-21.3/tests/test_markers.py    2021-11-16 17:25:31.000000000 
+0100
@@ -68,7 +68,7 @@
 
     @pytest.mark.parametrize("value", ["one", "two", None, 3, 5, []])
     def test_repr(self, value):
-        assert repr(Node(value)) == "<Node({!r})>".format(str(value))
+        assert repr(Node(value)) == f"<Node({str(value)!r})>"
 
     def test_base_class(self):
         with pytest.raises(NotImplementedError):
@@ -205,7 +205,7 @@
     def test_str_and_repr(self, marker_string, expected):
         m = Marker(marker_string)
         assert str(m) == expected
-        assert repr(m) == "<Marker({!r})>".format(str(m))
+        assert repr(m) == f"<Marker({str(m)!r})>"
 
     def test_extra_with_no_extra_in_environment(self):
         # We can't evaluate an extra if no extra is passed into the environment
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/tests/test_requirements.py 
new/packaging-21.3/tests/test_requirements.py
--- old/packaging-21.2/tests/test_requirements.py       2021-07-23 
09:28:49.000000000 +0200
+++ new/packaging-21.3/tests/test_requirements.py       2021-11-16 
17:25:31.000000000 +0100
@@ -192,4 +192,6 @@
     def test_parseexception_error_msg(self):
         with pytest.raises(InvalidRequirement) as e:
             Requirement("toto 42")
-        assert "Expected stringEnd" in str(e.value)
+        assert "Expected stringEnd" in str(e.value) or (
+            "Expected string_end" in str(e.value)  # pyparsing>=3.0.0
+        )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/tests/test_specifiers.py 
new/packaging-21.3/tests/test_specifiers.py
--- old/packaging-21.2/tests/test_specifiers.py 2021-07-23 09:28:49.000000000 
+0200
+++ new/packaging-21.3/tests/test_specifiers.py 2021-11-16 17:25:31.000000000 
+0100
@@ -227,7 +227,7 @@
         spec = Specifier(specifier)
 
         assert str(spec) == expected
-        assert repr(spec) == "<Specifier({!r})>".format(expected)
+        assert repr(spec) == f"<Specifier({expected!r})>"
 
     @pytest.mark.parametrize("specifier", SPECIFIERS)
     def test_specifiers_hash(self, specifier):
@@ -873,7 +873,7 @@
         spec = SpecifierSet(specifier)
 
         assert str(spec) == expected
-        assert repr(spec) == "<SpecifierSet({!r})>".format(expected)
+        assert repr(spec) == f"<SpecifierSet({expected!r})>"
 
     @pytest.mark.parametrize("specifier", SPECIFIERS + LEGACY_SPECIFIERS)
     def test_specifiers_hash(self, specifier):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/tests/test_tags.py 
new/packaging-21.3/tests/test_tags.py
--- old/packaging-21.2/tests/test_tags.py       2021-10-11 22:34:52.000000000 
+0200
+++ new/packaging-21.3/tests/test_tags.py       2021-11-16 17:25:31.000000000 
+0100
@@ -228,12 +228,10 @@
                 platform, "mac_ver", lambda: ("10.14", ("", "", ""), "x86_64")
             )
         version = platform.mac_ver()[0].split(".")
-        if version[0] == "10":
-            expected = "macosx_{major}_{minor}".format(
-                major=version[0], minor=version[1]
-            )
-        else:
-            expected = "macosx_{major}_{minor}".format(major=version[0], 
minor=0)
+        major = version[0]
+        minor = version[1] if major == "10" else "0"
+        expected = f"macosx_{major}_{minor}"
+
         platforms = list(tags.mac_platforms(arch="x86_64"))
         print(platforms, expected)
         assert platforms[0].startswith(expected)
@@ -608,7 +606,7 @@
     def test_pymalloc(self, pymalloc, version, result, monkeypatch):
         config = {"Py_DEBUG": 0, "WITH_PYMALLOC": pymalloc, "Py_UNICODE_SIZE": 
2}
         monkeypatch.setattr(sysconfig, "get_config_var", config.__getitem__)
-        base_abi = "cp{}{}".format(version[0], version[1])
+        base_abi = f"cp{version[0]}{version[1]}"
         expected = [base_abi + "m" if result else base_abi]
         assert tags._cpython_abis(version) == expected
 
@@ -1180,3 +1178,14 @@
             "linux_x86_64",
         ]
         assert platforms == expected
+
+    def test_pypy_first_none_any_tag(self, monkeypatch):
+        # When building the complete list of pypy tags, make sure the first
+        # <interpreter>-none-any one is pp3-none-any
+        monkeypatch.setattr(tags, "interpreter_name", lambda: "pp")
+
+        for tag in tags.sys_tags():
+            if tag.abi == "none" and tag.platform == "any":
+                break
+
+        assert tag == tags.Tag("pp3", "none", "any")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/packaging-21.2/tests/test_version.py 
new/packaging-21.3/tests/test_version.py
--- old/packaging-21.2/tests/test_version.py    2021-07-23 09:28:49.000000000 
+0200
+++ new/packaging-21.3/tests/test_version.py    2021-11-16 17:25:31.000000000 
+0100
@@ -277,7 +277,7 @@
     )
     def test_version_str_repr(self, version, expected):
         assert str(Version(version)) == expected
-        assert repr(Version(version)) == "<Version({!r})>".format(expected)
+        assert repr(Version(version)) == f"<Version({expected!r})>"
 
     def test_version_rc_and_c_equals(self):
         assert Version("1.0rc1") == Version("1.0c1")

Reply via email to