Sync from SUSE:SLFO:Main python-peewee revision 8f8e08c31d200d969501dff46f7f252a
This commit is contained in:
parent
9f77818317
commit
9ffb4a6756
BIN
peewee-3.16.3.tar.gz
(Stored with Git LFS)
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
BIN
peewee-3.17.6.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -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>
|
||||
|
||||
@ -10,12 +106,12 @@ Wed Aug 16 14:40:36 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
- Fix missing binary types for mysql-connector and mariadb-connector.
|
||||
- Add extract() method to MySQL JSONField for extracting a jsonpath.
|
||||
- Add %{?sle15_python_module_pythons}
|
||||
- unbind to cython < 3
|
||||
- unbind to cython < 3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 13 19:59:10 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- bind to cython < 3
|
||||
- bind to cython < 3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 1 20:04:58 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
@ -43,7 +139,7 @@ Thu Jun 1 20:04:58 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 2 21:43:51 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
- Update to 3.15.4
|
||||
- Update to 3.15.4
|
||||
Raise an exception in ReconnectMixin if connection is lost while inside a transaction (if the transaction was interrupted presumably some changes were lost and explicit intervention is needed).
|
||||
Add db.Model property to reduce boilerplate.
|
||||
Add support for running prefetch() queries with joins instead of subqueries (this helps overcome a MySQL limitation about applying LIMITs to a subquery).
|
||||
@ -111,7 +207,7 @@ Tue Oct 4 22:59:19 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
This functionality requires Sqlite 3.35 or newer.
|
||||
Smaller changes:
|
||||
Add shortcuts.insert_where() helper for generating conditional INSERT with a bit less boilerplate.
|
||||
Fix bug in test_utils.count_queres() which could erroneously include pool events such as connect/disconnect, etc.
|
||||
Fix bug in test_utils.count_queres() which could erroneously include pool events such as connect/disconnect, etc.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 16 15:24:55 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
@ -158,7 +254,7 @@ Sat Nov 13 20:29:16 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
* Fix bug which prevented `DeferredForeignKey` from being used as a model's
|
||||
primary key
|
||||
* Ensure foreign key's related object cache is cleared when the foreign-key is
|
||||
set to `None`.
|
||||
set to `None`.
|
||||
* Allow specification of `(schema, table)` to be used with CREATE TABLE AS...
|
||||
* Allow reusing open connections with DataSet
|
||||
* Add `highlight()` and `snippet()` helpers to Sqlite `SearchField`, for use
|
||||
@ -241,24 +337,24 @@ Wed May 20 07:26:11 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 18 16:01:40 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
- switch to PyMSQL instead of mysql-connector-python, which is the
|
||||
- switch to PyMSQL instead of mysql-connector-python, which is the
|
||||
default since 3.12.x and doesn't have vulnerabilities (bsc#1122204)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 11 15:56:45 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- update to 3.13.1
|
||||
* This will be a notable release as it adds support for CockroachDB,
|
||||
* This will be a notable release as it adds support for CockroachDB,
|
||||
a distributed, horizontally-scalable SQL database.
|
||||
* Allow FOR UPDATE clause to specify one or more tables (FOR UPDATE OF...).
|
||||
* Support for Postgres LATERAL join.
|
||||
* Fix non-deterministic join ordering issue when using the filter()
|
||||
* Fix non-deterministic join ordering issue when using the filter()
|
||||
API across several tables
|
||||
* Bulk insert (insert_many() and insert_from()) will now return
|
||||
* Bulk insert (insert_many() and insert_from()) will now return
|
||||
the row count instead of the last insert ID.
|
||||
* Migration extension now supports altering a column's data-type,
|
||||
* Migration extension now supports altering a column's data-type,
|
||||
via the new alter_column_type() method.
|
||||
* Added BloomFilter.from_buffer() method for populating a bloom-filter
|
||||
* Added BloomFilter.from_buffer() method for populating a bloom-filter
|
||||
from the output of a previous call to the to_buffer() method.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
@ -273,7 +369,7 @@ Fri Oct 18 10:19:07 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
* Implement hash interface for Alias instances, allowing them to be used in multi-source queries.
|
||||
* Workaround for MySQL prior to 8 and MariaDB handling of union queries inside of parenthesized expressions (like IN).
|
||||
* Be more permissive in letting invalid values be stored in a field whose type is INTEGER or REAL, since Sqlite allows this.
|
||||
* Fix for issue #1991 regarding setting intervening models to None.
|
||||
* Fix for issue #1991 regarding setting intervening models to None.
|
||||
* Fixes the Model._pk and get_id() interfaces so they no longer introduce the possibility of accidentally resolving the FK.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user