diff --git a/no_decl_class_registry.patch b/no_decl_class_registry.patch index 076bdf5..96d95d5 100644 --- a/no_decl_class_registry.patch +++ b/no_decl_class_registry.patch @@ -12,7 +12,6 @@ - if hasattr(model, '__table__') and model.__table__.fullname == name: - return model - return None -\ No newline at end of file + for value in ModelBase.registry._class_registry.values(): + if getattr(value, '__tablename__', None) == name: + return value diff --git a/python-sortinghat.changes b/python-sortinghat.changes index 466df6f..d71e50e 100644 --- a/python-sortinghat.changes +++ b/python-sortinghat.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Apr 20 11:16:30 UTC 2022 - pgajdos@suse.com + +- version update to 0.7.19 + * no minor version changelog found +- modified patches + % no_decl_class_registry.patch (refreshed) +- python-mock is not required for build + ------------------------------------------------------------------- Thu Aug 5 15:20:24 UTC 2021 - Matej Cepl diff --git a/python-sortinghat.spec b/python-sortinghat.spec index 99ff336..428a794 100644 --- a/python-sortinghat.spec +++ b/python-sortinghat.spec @@ -1,7 +1,7 @@ # # spec file for package python-sortinghat # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,7 +22,7 @@ %define skip_python2 1 %define skip_python36 1 Name: python-sortinghat -Version: 0.7.15 +Version: 0.7.19 Release: 0 Summary: A tool to manage identities License: GPL-3.0-only @@ -52,7 +52,6 @@ BuildRequires: %{python_module PyMySQL >= 0.7.0} BuildRequires: %{python_module PyYAML >= 3.12} BuildRequires: %{python_module SQLAlchemy >= 1.2} BuildRequires: %{python_module httpretty >= 0.9.5} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pandas >= 0.17} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dateutil >= 2.6.0} diff --git a/sortinghat-0.7.15.tar.gz b/sortinghat-0.7.15.tar.gz deleted file mode 100644 index 4d297bc..0000000 --- a/sortinghat-0.7.15.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ee1696ddc726f8ca3a2c6554d7673409a23b9297ce1ea5ace98f1518fd092f2 -size 190520 diff --git a/sortinghat-0.7.19.tar.gz b/sortinghat-0.7.19.tar.gz new file mode 100644 index 0000000..ac3dfe0 --- /dev/null +++ b/sortinghat-0.7.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a07e3652e7c26b7f888a0d55bba6b079ef3f6e77fa982690fb44ba7c8b05f597 +size 186847