Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pydantic for openSUSE:Factory
checked in at 2022-08-08 08:44:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pydantic (Old)
and /work/SRC/openSUSE:Factory/.python-pydantic.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pydantic"
Mon Aug 8 08:44:54 2022 rev:13 rq:990100 version:1.9.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pydantic/python-pydantic.changes
2022-06-19 21:10:33.978099553 +0200
+++
/work/SRC/openSUSE:Factory/.python-pydantic.new.1521/python-pydantic.changes
2022-08-08 08:44:57.966412394 +0200
@@ -1,0 +2,6 @@
+Tue Jul 19 09:20:43 UTC 2022 - Steve Kowalik <[email protected]>
+
+- Add patch remove-pkg_resources.patch:
+ * Use packaging, not pkg_resources for versions.
+
+-------------------------------------------------------------------
New:
----
remove-pkg_resources.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pydantic.spec ++++++
--- /var/tmp/diff_new_pack.qoG9qx/_old 2022-08-08 08:44:58.458413841 +0200
+++ /var/tmp/diff_new_pack.qoG9qx/_new 2022-08-08 08:44:58.462413853 +0200
@@ -26,7 +26,9 @@
License: MIT
URL: https://github.com/samuelcolvin/pydantic
Source:
https://github.com/samuelcolvin/pydantic/archive/v%{version}.tar.gz#/pydantic-%{version}.tar.gz
+Patch0: remove-pkg_resources.patch
BuildRequires: %{python_module email_validator >= 1.0.3}
+BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dotenv >= 0.10.4}
++++++ remove-pkg_resources.patch ++++++
Index: pydantic-1.9.1/tests/test_utils.py
===================================================================
--- pydantic-1.9.1.orig/tests/test_utils.py
+++ pydantic-1.9.1/tests/test_utils.py
@@ -8,7 +8,7 @@ from copy import copy, deepcopy
from typing import Callable, Dict, List, NewType, Tuple, TypeVar, Union
import pytest
-from pkg_resources import safe_version
+from packaging.version import Version
from typing_extensions import Annotated, Literal
from pydantic import VERSION, BaseModel, ConstrainedList, conlist
@@ -379,7 +379,7 @@ def test_version_info():
def test_standard_version():
- assert safe_version(VERSION) == VERSION
+ assert str(Version(VERSION)) == VERSION
def test_class_attribute():