Sync from SUSE:SLFO:Main python-peewee revision 8f8e08c31d200d969501dff46f7f252a

This commit is contained in:
Adrian Schröter 2024-12-13 11:55:00 +01:00
parent 9f77818317
commit 9ffb4a6756
4 changed files with 128 additions and 24 deletions

BIN
peewee-3.16.3.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
peewee-3.17.6.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,99 @@
-------------------------------------------------------------------
Wed Oct 30 12:42:57 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Update license to MIT, that's what the project defines in the
setup.py
-------------------------------------------------------------------
Sat Aug 31 12:12:35 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.17.6:
* Fix bug in recursive `model.delete_instance()` when a table
contains foreign-keys at multiple depths of the graph
* Fix regression in pool behavior on systems where
`time.time()` returns identical values for two connections.
This adds a no-op comparable sentinel to the heap to prevent
any recurrence of this problem.
* Ensure that subqueries inside `CASE` statements generate
correct SQL.
* Fix regression that broke server-side cursors with Postgres
* Fix to ensure compatibility with psycopg3 - the libpq
TransactionStatus constants are no longer available on the
`Connection` instance.
* Fix quoting issue in pwiz that could generate invalid python
code for double-quoted string literals used as column defaults.
-------------------------------------------------------------------
Thu Jun 6 20:17:28 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.17.5:
* Fixes package installation issue on 3.12 and newer introduced
in the last version.
- update to 3.17.4:
* Fix bug that could occur when using CASE inside a function,
and one or more of the CASE clauses consisted of a subquery.
Refs #2873. new fix in #2872 for regression in truthiness of
cursor.
* Fix bug in the conversion of TIMESTAMP type in Sqlite on
Python 3.12+.
* Fix for hybrid properties on subclasses when aliased (#2888).
* Many fixes for SqliteQueueDatabase (#2874, #2876, #2877).
-------------------------------------------------------------------
Thu May 2 16:33:48 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.17.3:
* Better fix for #2871 (extraneous queries when coercing query
to list), and new fix in #2872 for regression in truthiness
of cursor.
* Full support for `psycopg3`.
* Basic support for Sqlite `jsonb`.
* Fix bug where calling `list(query)` resulted in extra
queries, #2871
-------------------------------------------------------------------
Mon Feb 12 02:57:29 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 3.17.1:
* Add bitwise and other helper methods to `BigBitField`, #2802.
* Add `add_column_default` and `drop_column_default` migrator methods for
specifying a server-side default value, #2803.
* The new `star` attribute was causing issues for users who had a field named
star on their models. This attribute is now renamed to `__star__`. #2796.
* Fix compatibility issues with 3.12 related to utcnow() deprecation.
* Add stricter locking on connection pool to prevent race conditions.
* Add adapters and converters to Sqlite to replace ones deprecated in 3.12.
* Fix bug in `model_to_dict()` when only aliases are present.
* Fix version check for Sqlite native drop column support.
* Do not specify a `reconnect=` argument to `ping()` if using MySQL 8.x.
-------------------------------------------------------------------
Tue Jan 9 15:18:54 UTC 2024 - Antonio Larrosa <alarrosa@suse.com>
- Remove unneeded BuildRequires PyMySQL and psycopg2. I checked
that the number of tests that are run are the same.
- Fix shebangs and other rpmlint errors/warnings
-------------------------------------------------------------------
Tue Nov 7 14:21:31 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.17.0:
* Only roll-back in the outermost `@db.transaction`
decorator/ctx manager if an unhandled exception occurs.
* Cover transaction `BEGIN` in the reconnect-mixin. Given that
no transaction has been started, reconnecting when beginning
a new transaction ensures that a reconnect will occur if it
is safe to do so.
* Add support for setting `isolation_level` in `db.atomic()`
and `db.transaction()` when using Postgres and MySQL/MariaDB,
which will apply to the wrapped transaction.
* Add support for the Sqlite `SQLITE_DETERMINISTIC` function
flag. This allows user-defined Sqlite functions to be used
in indexes and may be used by the query planner.
* Fix unreported bug in dataset import when inferred field name
differs from column name.
- disable apsw from tests for sle15 - can't be build anymore
-------------------------------------------------------------------
Wed Aug 16 14:40:36 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-peewee
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,19 +18,19 @@
%{?sle15_python_module_pythons}
Name: python-peewee
Version: 3.16.3
Version: 3.17.6
Release: 0
Summary: An expressive ORM that supports multiple SQL backends
License: BSD-3-Clause
License: MIT
URL: https://github.com/coleifer/peewee
Source: https://github.com/coleifer/peewee/archive/refs/tags/%{version}.tar.gz#/peewee-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module PyMySQL}
%if 0%{?suse_version} > 1500
BuildRequires: %{python_module apsw}
%endif
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module psycopg2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: %{pythons}
@ -40,7 +40,7 @@ BuildRequires: python-rpm-macros
BuildRequires: unzip
BuildRequires: pkgconfig(sqlite3)
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@ -55,7 +55,11 @@ An expressive ORM that supports PostgreSQL, MySQL and SQLite.
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pwiz.py
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
# Remove shebang from non-executable files
sed -i -e '1{\@^#! *%{_bindir}.*python@d}' %{buildroot}%{$python_sitearch}/pwiz.py
}
%check
%pytest_arch tests
@ -69,8 +73,12 @@ An expressive ORM that supports PostgreSQL, MySQL and SQLite.
%files %{python_files}
%license LICENSE
%doc CHANGELOG.md README.rst TODO.rst
%{_bindir}/pwiz.py-%{python_bin_suffix}
%python_alternative %{_bindir}/pwiz.py
%{python_sitearch}/*
%{python_sitearch}/peewee-%{version}.dist-info
%{python_sitearch}/peewee.py
%{python_sitearch}/pwiz.py
%{python_sitearch}/playhouse
%pycache_only %{python_sitearch}/__pycache__/peewee.*.pyc
%pycache_only %{python_sitearch}/__pycache__/pwiz.*.pyc
%changelog