14
0

Accepting request 971333 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/971333
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sortinghat?expand=0&rev=2
This commit is contained in:
2022-04-21 13:42:41 +00:00
committed by Git OBS Bridge
5 changed files with 14 additions and 7 deletions

View File

@@ -12,7 +12,6 @@
- if hasattr(model, '__table__') and model.__table__.fullname == name: - if hasattr(model, '__table__') and model.__table__.fullname == name:
- return model - return model
- return None - return None
\ No newline at end of file
+ for value in ModelBase.registry._class_registry.values(): + for value in ModelBase.registry._class_registry.values():
+ if getattr(value, '__tablename__', None) == name: + if getattr(value, '__tablename__', None) == name:
+ return value + return value

View File

@@ -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 <mcepl@suse.com> Thu Aug 5 15:20:24 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-sortinghat # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
%define skip_python2 1 %define skip_python2 1
%define skip_python36 1 %define skip_python36 1
Name: python-sortinghat Name: python-sortinghat
Version: 0.7.15 Version: 0.7.19
Release: 0 Release: 0
Summary: A tool to manage identities Summary: A tool to manage identities
License: GPL-3.0-only 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 PyYAML >= 3.12}
BuildRequires: %{python_module SQLAlchemy >= 1.2} BuildRequires: %{python_module SQLAlchemy >= 1.2}
BuildRequires: %{python_module httpretty >= 0.9.5} BuildRequires: %{python_module httpretty >= 0.9.5}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pandas >= 0.17} BuildRequires: %{python_module pandas >= 0.17}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil >= 2.6.0} BuildRequires: %{python_module python-dateutil >= 2.6.0}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ee1696ddc726f8ca3a2c6554d7673409a23b9297ce1ea5ace98f1518fd092f2
size 190520

3
sortinghat-0.7.19.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a07e3652e7c26b7f888a0d55bba6b079ef3f6e77fa982690fb44ba7c8b05f597
size 186847