From 5e226bdb6270d18a83587e81d6f79ffeaef682d2210b8fdb727e31277d20a8bd Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 3 Dec 2022 07:41:56 +0000 Subject: [PATCH] Accepting request 1039675 from home:yarunachalam:branches:devel:languages:python - 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). Add SQL AVG to whitelist to avoid coercing by default. Allow arbitrary keywords in metaclass constructor, #2627 Add a pyproject.toml to silence warnings from newer pips when wheel package is not available. This release has a small helper for reducing boilerplate in some cases by exposing a base model class as an attribute of the database instance. # old: db = SqliteDatabase('...') class BaseModel(Model): class Meta: database = db class MyModel(BaseModel): pass # new: db = SqliteDatabase('...') class MyModel(db.Model): pass OBS-URL: https://build.opensuse.org/request/show/1039675 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-peewee?expand=0&rev=40 --- peewee-3.15.3.tar.gz | 3 --- peewee-3.15.4.tar.gz | 3 +++ python-peewee.changes | 24 ++++++++++++++++++++++++ python-peewee.spec | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) delete mode 100644 peewee-3.15.3.tar.gz create mode 100644 peewee-3.15.4.tar.gz diff --git a/peewee-3.15.3.tar.gz b/peewee-3.15.3.tar.gz deleted file mode 100644 index 6c9d6fc..0000000 --- a/peewee-3.15.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9577a705eef21e702afe23f762fbecbd6fbb6def93005c99eca11cc0c1c3cbb9 -size 906883 diff --git a/peewee-3.15.4.tar.gz b/peewee-3.15.4.tar.gz new file mode 100644 index 0000000..4c30227 --- /dev/null +++ b/peewee-3.15.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97a13da0b017bb27fba1555e8e7fc26238c463d6e062398bc22a6734d8b8f045 +size 908759 diff --git a/python-peewee.changes b/python-peewee.changes index 0bf59fd..ab870c1 100644 --- a/python-peewee.changes +++ b/python-peewee.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Dec 2 21:43:51 UTC 2022 - Yogalakshmi Arunachalam + +- 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). + Add SQL AVG to whitelist to avoid coercing by default. + Allow arbitrary keywords in metaclass constructor, #2627 + Add a pyproject.toml to silence warnings from newer pips when wheel package is not available. + This release has a small helper for reducing boilerplate in some cases by exposing a base model class as an attribute of the database instance. + # old: + db = SqliteDatabase('...') + class BaseModel(Model): + class Meta: + database = db + class MyModel(BaseModel): + pass + + # new: + db = SqliteDatabase('...') + class MyModel(db.Model): + pass + ------------------------------------------------------------------- Fri Oct 28 19:52:59 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-peewee.spec b/python-peewee.spec index dc1a547..7d9b674 100644 --- a/python-peewee.spec +++ b/python-peewee.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-peewee -Version: 3.15.3 +Version: 3.15.4 Release: 0 Summary: An expressive ORM that supports multiple SQL backends License: BSD-3-Clause