Revisions of python-peewee

buildservice-autocommit accepted request 1171418 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 55)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 54)
- 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
buildservice-autocommit accepted request 1146064 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 53)
baserev update by copy to link target
Steve Kowalik's avatar Steve Kowalik (StevenK) committed (revision 52)
- 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.
buildservice-autocommit accepted request 1137846 from Matej Cepl's avatar Matej Cepl (mcepl) (revision 51)
baserev update by copy to link target
Matej Cepl's avatar Matej Cepl (mcepl) accepted request 1137767 from Antonio Larrosa's avatar Antonio Larrosa (alarrosa) (revision 50)
- 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
buildservice-autocommit accepted request 1124001 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 49)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 48)
- 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
- unbind to cython < 3
- bind to cython < 3
- Update to 3.15.4
  Fix bug in test_utils.count_queres() which could erroneously include pool events such as connect/disconnect, etc.
    set to `None`.
- switch to PyMSQL instead of mysql-connector-python, which is the
  * This will be a notable release as it adds support for CockroachDB,
  * Fix non-deterministic join ordering issue when using the filter()
  * Bulk insert (insert_many() and insert_from()) will now return
  * Migration extension now supports altering a column's data-type,
  * Added BloomFilter.from_buffer() method for populating a bloom-filter
  * Fix for issue #1991 regarding setting intervening models to None.
buildservice-autocommit accepted request 1105035 from Markéta Machová's avatar Markéta Machová (mcalabkova) (revision 47)
baserev update by copy to link target
Markéta Machová's avatar Markéta Machová (mcalabkova) accepted request 1104939 from Eric Schirra's avatar Eric Schirra (ecsos) (revision 46)
- Update to 3.16.3
  - Support for Cython 3.0.
  - Add flag to ManyToManyField to prevent setting/getting values
    on unsaved instances. This is worthwhile, since reading or
    writing a many-to-many has no meaning when the instance is unsaved.
  - Adds a star() helper to Source base-class for selecting all columns.
  - 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 
buildservice-autocommit accepted request 1103730 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 45)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 44)
- bind to cython < 3
buildservice-autocommit accepted request 1091730 from Factory Maintainer's avatar Factory Maintainer (factory-maintainer) (revision 43)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 42)
- update to 3.16.2:
  * Fixes a longstanding issue with thread-safety of various
    decorators, including `atomic()`, `transaction()`,
    `savepoint()`. The context-managers are unaffected.
  * Add changes required for building against Cython 3.0 and set
    Cython language-level to 3.
  * Ensure indexes aren't added to unindexed fields during
    introspection, #2691.
  * Ensure we don't redundantly select same PK in prefetch when
    using PREFETCH_TYPE.JOIN.
  * In Sqlite migrator, use Sqlite's builtin DROP and RENAME
    column facilities when possible. This can be overridden
    by passing `legacy=True` flag.
  * This release contains backwards-incompatible changes in the
    way Peewee initializes connections to the underlying
    database driver.  Previously, peewee implemented autocommit
    semantics *on-top* of the existing DB-API transactional
    workflow. Going forward, Peewee instead places the DB-API
    driver into autocommit mode directly.
buildservice-autocommit accepted request 1039750 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 41)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) accepted request 1039675 from Yogalakshmi Arunachalam's avatar Yogalakshmi Arunachalam (yarunachalam) (revision 40)
- 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
buildservice-autocommit accepted request 1032500 from Markéta Machová's avatar Markéta Machová (mcalabkova) (revision 39)
baserev update by copy to link target
buildservice-autocommit accepted request 1008722 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 37)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) accepted request 1008036 from Yogalakshmi Arunachalam's avatar Yogalakshmi Arunachalam (yarunachalam) (revision 36)
- Update to 3.15.3
  Add scalars() query method (complements scalar()), roughly equivalent to writing [t[0] for t in query.tuples()].
  Small doc improvements
  Fix and remove some flaky test assertions with Sqlite INSERT + RETURNING.
  Fix innocuous failing Sqlite test on big-endian machines.
  View commits
- Update to 3.15.2
  Fix bug where field-specific conversions were being applied to the pattern used for LIKE / ILIKE operations. Refs #2609
  Fix possible infinite loop when accidentally invoking the __iter__ method on certain Column subclasses. Refs #2606
  Add new helper for specifying which Model a particular selected column-like should be bound to, in queries with joins that select from multiple sources.
  View commits
- Update to 3.15.1
  Fix issue introduced in Sqlite 3.39.0 regarding the propagation of column subtypes in subqueries.
  Fix bug where cockroachdb server version was not set when beginning a transaction on an unopened database.
  View commits
- Update to 3.15.0
  Rollback behavior change in commit ab43376697 (GH #2026). Peewee will no longer automatically return the cursor rowcount for certain bulk-inserts.
  This should only affect users of MySQL and Sqlite who relied on a bulk INSERT returning the rowcount (as opposed to the cursor's lastrowid).
  The rowcount behavior is still available chaining the as_rowcount() method:
  # NOTE: this change only affects MySQL or Sqlite.
  db = MySQLDatabase(...)
  # Previously, bulk inserts of the following forms would return the rowcount.
  query = User.insert_many(...)  # Bulk insert.
  query = User.insert_from(...)  # Bulk insert (INSERT INTO .. SELECT FROM).
  # Previous behavior (peewee 3.12 - 3.14.10):
  # rows_inserted = query.execute()
  # New behavior:
  last_id = query.execute()
  # To get the old behavior back:
  rows_inserted = query.as_rowcount().execute()
Displaying revisions 1 - 20 of 55
openSUSE Build Service is sponsored by