17
0

Compare commits

8 Commits

Author SHA256 Message Date
11eb0c3b90 Accepting request 1264846 from devel:languages:python
- Normalize metadata directory name.

Requires python-setuptools 78 to build successfully.

OBS-URL: https://build.opensuse.org/request/show/1264846
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-SQLAlchemy-Utils?expand=0&rev=43
2025-04-16 18:38:33 +00:00
43128cd7dc - Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy-Utils?expand=0&rev=87
2025-03-25 08:21:36 +00:00
664eef55e6 Accepting request 1237209 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1237209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-SQLAlchemy-Utils?expand=0&rev=42
2025-01-13 16:51:18 +00:00
4cc9a7382d Accepting request 1236905 from home:bnavigator:branches:devel:languages:python
- Demote pendulum extra: Upstream struggles to maintain it
  gh#python-pendulum/pendulum#590

OBS-URL: https://build.opensuse.org/request/show/1236905
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy-Utils?expand=0&rev=85
2025-01-13 01:37:02 +00:00
f922e133f3 Accepting request 1225046 from devel:languages:python
- skip one more test for python 313
  (https://github.com/kvesteri/sqlalchemy-utils/issues/764)

OBS-URL: https://build.opensuse.org/request/show/1225046
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-SQLAlchemy-Utils?expand=0&rev=41
2024-11-19 21:23:09 +00:00
ab2d7f6db2 - skip one more test for python 313
(https://github.com/kvesteri/sqlalchemy-utils/issues/764)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy-Utils?expand=0&rev=83
2024-11-19 10:26:01 +00:00
7aae540516 Accepting request 1205031 from devel:languages:python
- Update to 0.41.2:
  * Fix breaking change introduced on SQLAlchemy 2.0.22 changes to
    attributes.AttributeImpl constructor
- Drop patch sqlalchemy-2.0.22.patch:
  * Included upstream.

OBS-URL: https://build.opensuse.org/request/show/1205031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-SQLAlchemy-Utils?expand=0&rev=40
2024-10-02 19:33:41 +00:00
2207837a9b - Update to 0.41.2:
* Fix breaking change introduced on SQLAlchemy 2.0.22 changes to
    attributes.AttributeImpl constructor
- Drop patch sqlalchemy-2.0.22.patch:
  * Included upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy-Utils?expand=0&rev=81
2024-10-02 04:50:51 +00:00
5 changed files with 36 additions and 43 deletions

View File

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

View File

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

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Tue Mar 25 08:21:22 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Lowercase metadata directory name.
-------------------------------------------------------------------
Fri Jan 10 15:42:43 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Demote pendulum extra: Upstream struggles to maintain it
gh#python-pendulum/pendulum#590
-------------------------------------------------------------------
Tue Nov 19 10:25:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- skip one more test for python 313
(https://github.com/kvesteri/sqlalchemy-utils/issues/764)
-------------------------------------------------------------------
Wed Oct 2 04:49:35 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.41.2:
* Fix breaking change introduced on SQLAlchemy 2.0.22 changes to
attributes.AttributeImpl constructor
- Drop patch sqlalchemy-2.0.22.patch:
* Included upstream.
-------------------------------------------------------------------
Thu Feb 22 11:23:32 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-SQLAlchemy-Utils
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-SQLAlchemy-Utils
Version: 0.41.1
Version: 0.41.2
Release: 0
Summary: Various utility functions for SQLAlchemy
License: BSD-3-Clause
URL: https://github.com/kvesteri/sqlalchemy-utils
Source: https://files.pythonhosted.org/packages/source/S/SQLAlchemy-Utils/SQLAlchemy-Utils-%{version}.tar.gz
# PATCH-FIX-OPENSUSE sqlalchemy-2.0.22.patch gh#kvesteri/sqlalchemy-utils#725
Patch1: sqlalchemy-2.0.22.patch
BuildRequires: %{python_module Babel >= 1.3}
BuildRequires: %{python_module Jinja2 >= 2.3}
BuildRequires: %{python_module Pygments >= 1.2}
@@ -39,7 +37,7 @@ BuildRequires: %{python_module flexmock >= 0.9.7}
BuildRequires: %{python_module furl >= 0.4.1}
BuildRequires: %{python_module intervals >= 0.7.1}
BuildRequires: %{python_module passlib >= 1.6}
BuildRequires: %{python_module pendulum >= 2.0.5}
BuildRequires: %{python_module pendulum >= 2.0.5 if %python-base < 3.13}
BuildRequires: %{python_module phonenumbers >= 5.9.2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module psycopg2 >= 2.5.1}
@@ -61,8 +59,8 @@ Recommends: python-dateutil
Recommends: python-furl >= 0.4.1
Recommends: python-intervals >= 0.7.1
Recommends: python-passlib >= 1.6
Recommends: python-pendulum >= 2.0.5
Recommends: python-phonenumbers >= 5.9.2
Suggests: python-pendulum >= 2.0.5
BuildArch: noarch
%if 0%{?python_version_nodots} < 39
Requires: python-backports.zoneinfo
@@ -83,8 +81,6 @@ Various utility functions and custom data types for SQLAlchemy.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# https://github.com/kvesteri/sqlalchemy-utils/issues/594
sed -i 's:import mock:from unittest import mock:' tests/types/test_password.py
# needs running pgsql / mssql / mysql
rm tests/test_asserts.py
rm tests/test_translation_hybrid.py
@@ -102,13 +98,12 @@ rm tests/types/test_composite.py
rm tests/types/test_ltree.py
rm tests/types/test_tsvector.py
rm tests/types/test_uuid.py
%pytest -rs -k 'not (TestDatabasePostgres or TestDatabaseMssql or OnPostgres or OnMysql or TestPostgres or TestMysql or TestSortQueryRelationshipCounts or TestSortQueryWithPolymorphicInheritance or TestMaterializedViews or TestLazyEvaluatedSelectExpressionsForAggregates or TestAggregatesWithManyToManyRelationships or TestAggregateManyToManyAndManyToMany or TestAggregateOneToManyAndOneToMany or TestJSONSQL or TestJSONBSQL or TestSortQueryWithCustomPolymorphic or TestAggregateOneToManyAndManyToMany or test_timezone or test_add_observed_object)'
%pytest -rs -k 'not (TestDatabasePostgres or TestDatabaseMssql or OnPostgres or OnMysql or TestPostgres or TestMysql or TestSortQueryRelationshipCounts or TestSortQueryWithPolymorphicInheritance or TestMaterializedViews or TestLazyEvaluatedSelectExpressionsForAggregates or TestAggregatesWithManyToManyRelationships or TestAggregateManyToManyAndManyToMany or TestAggregateOneToManyAndOneToMany or TestJSONSQL or TestJSONBSQL or TestSortQueryWithCustomPolymorphic or TestAggregateOneToManyAndManyToMany or test_timezone or test_add_observed_object or test_render_mock_ddl)'
%files %{python_files}
%license LICENSE
%doc README.rst
%dir %{python_sitelib}/sqlalchemy_utils
%{python_sitelib}/sqlalchemy_utils/*
%{python_sitelib}/SQLAlchemy_Utils-%{version}*-info
%{python_sitelib}/sqlalchemy_utils
%{python_sitelib}/sqlalchemy_utils-%{version}.dist-info
%changelog

View File

@@ -1,28 +0,0 @@
From 712aabaefc5c8ca3680751c705cf5a5984c74af1 Mon Sep 17 00:00:00 2001
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
Date: Thu, 18 Jan 2024 11:02:54 +0100
Subject: [PATCH] Update GenericAttributeImpl to work with SqlAlchemy 2.0.22
Fix https://github.com/kvesteri/sqlalchemy-utils/issues/719
---
sqlalchemy_utils/generic.py | 7 +++++++
1 file changed, 7 insertions(+)
Index: SQLAlchemy-Utils-0.41.1/sqlalchemy_utils/generic.py
===================================================================
--- SQLAlchemy-Utils-0.41.1.orig/sqlalchemy_utils/generic.py
+++ SQLAlchemy-Utils-0.41.1/sqlalchemy_utils/generic.py
@@ -13,6 +13,13 @@ from .functions.orm import _get_class_re
class GenericAttributeImpl(attributes.ScalarAttributeImpl):
+ def __init__(self, *args, **kwargs):
+ # arguments received (class, key, dispatch)
+ # The attributes.AttributeImpl requires (class, key, default_function, dispatch)
+ # Setting None as default_function here
+ args = args[:2] + (None, ) + args[2:]
+ super().__init__(*args, **kwargs)
+
def get(self, state, dict_, passive=attributes.PASSIVE_OFF):
if self.key in dict_:
return dict_[self.key]