Skip to content

Bump tortoise-orm from 0.25.1 to 1.0.0#95

Merged
manzato merged 1 commit intomainfrom
dependabot/pip/tortoise-orm-1.0.0
Feb 11, 2026
Merged

Bump tortoise-orm from 0.25.1 to 1.0.0#95
manzato merged 1 commit intomainfrom
dependabot/pip/tortoise-orm-1.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Feb 9, 2026

Bumps tortoise-orm from 0.25.1 to 1.0.0.

Release notes

Sourced from tortoise-orm's releases.

1.0.0

This is a major release with breaking changes. Please read the migration guide before upgrading.

Breaking Changes

  • Minimum Python version raised to 3.10 (was 3.9). (#2062)
  • use_tz now defaults to True (was False). Set use_tz=False explicitly if you need naive datetimes.
  • Context-first architecture: All ORM state now lives in TortoiseContext instances. Tortoise.init() returns a TortoiseContext (previously returned None). Multiple separate asyncio.run() calls require explicit context management; the typical single asyncio.run(main()) pattern works unchanged.
  • Removed legacy test infrastructure: test.TestCase, test.IsolatedTestCase, test.TruncationTestCase, test.SimpleTestCase, initializer(), finalizer(), env_initializer(), getDBConfig(). Use tortoise_test_context() with pytest instead.
  • Removed pytz dependency: Timezone handling now uses the standard library zoneinfo module. Tortoise APIs return ZoneInfo objects instead of pytz timezones. (#2023)
  • DatetimeField/TimeField with auto_now=True no longer implicitly sets auto_now_add=True. In practice auto_now=True alone still sets the value on every save (including creation), so this is unlikely to affect most users. The internal flag coupling was removed for correctness.
  • Shell extras required: Interactive shell dependencies are now optional. Install with pip install tortoise-orm[ipython] or pip install tortoise-orm[ptpython].

Added

  • Native migrations framework with CLI commands: tortoise makemigrations, tortoise migrate, tortoise sqlmigrate. Supports RunPython, RunSQL, reversible migrations, and multi-app projects. (#2061)
  • Database schema support for PostgreSQL and MSSQL (on MySQL maps to database name) — tables can live in non-default schemas (e.g., warehouse.inventory), with cross-schema relations and migration support. (#2084)
  • PostgreSQL full-text search: TSVectorField, SearchVector, SearchQuery, SearchRank, SearchHeadline expressions, and GIN/GiST index support. (#2065)
  • Query API (tortoise.query_api) for building and executing custom pypika queries against models, with Model.get_table() classmethod. (#2064)
  • TortoiseContext — explicit context manager for ORM state with full isolation. (#2069)
  • tortoise_test_context() — modern pytest fixture helper for test isolation. (#2069)
  • get_connection(alias) / get_connections() — functions to access connections from current context.
  • Tortoise.close_connections() — restored (was deprecated in 0.19) as the canonical way to close connections, now context-aware.
  • Tortoise.is_inited() — explicit method version of Tortoise._inited property.
  • ForeignKeyField and ManyToManyField now accept a model class directly, not just string references. (#2027)
  • DateField now supports __year / __month / __day filters. (#2067)

Changed

  • Framework integrations (FastAPI, Starlette, Sanic, etc.) now use Tortoise.close_connections() internally.
  • ConnectionHandler uses per-instance ContextVar storage for context isolation.
  • Tortoise.apps and Tortoise._inited are now classproperty descriptors.
  • Performance optimizations for model hydration, object construction, and query building. (#2078)
  • Pydantic model creator internals cleaned up: removed legacy validator, improved computed field handling. (#2079)

Deprecated

  • from tortoise import connections — use get_connection() / get_connections() instead (still works but deprecated).

Fixed

  • use_tz=False now correctly preserves naive datetimes instead of silently making them timezone-aware. (#631)
  • Annotations incorrectly selected in ValuesListQuery when not specified in .values_list() fields. (#2059)
  • M2M filtering broken when two relations point to the same target model. (#2083)
  • Pydantic incorrectly marking fields with default values as Optional. (#2082)
  • Model.in_bulk type annotation now supports any primary key type. (#2075)

0.25.4

Fixed

... (truncated)

Changelog

Sourced from tortoise-orm's changelog.

1.0.0

.. warning::

This is a **major release** with breaking changes.
Please read the :ref:`migration_guide` before upgrading.

Breaking Changes ^^^^^^^^^^^^^^^^

  • Minimum Python version raised to 3.10 (was 3.9). (#2062)
  • use_tz now defaults to True (was False). Set use_tz=False explicitly if you need naive datetimes.
  • Context-first architecture: All ORM state now lives in TortoiseContext instances. Tortoise.init() returns a TortoiseContext (previously returned None). Multiple separate asyncio.run() calls require explicit context management; the typical single asyncio.run(main()) pattern works unchanged.
  • Removed legacy test infrastructure: test.TestCase, test.IsolatedTestCase, test.TruncationTestCase, test.SimpleTestCase, initializer(), finalizer(), env_initializer(), getDBConfig(). Use tortoise_test_context() with pytest instead.
  • Removed pytz dependency: Timezone handling now uses the standard library zoneinfo module. Tortoise APIs return ZoneInfo objects instead of pytz timezones. (#2023)
  • DatetimeField/TimeField with auto_now=True no longer implicitly sets auto_now_add=True. In practice auto_now=True alone still sets the value on every save (including creation), so this is unlikely to affect most users. The internal flag coupling was removed for correctness.
  • Shell extras required: Interactive shell dependencies are now optional. Install with pip install tortoise-orm[ipython] or pip install tortoise-orm[ptpython].

Added ^^^^^

  • Native migrations framework with CLI commands: tortoise makemigrations, tortoise migrate, tortoise sqlmigrate. Supports RunPython, RunSQL, reversible migrations, and multi-app projects. (#2061)
  • Database schema support for PostgreSQL and MSSQL (on MySQL maps to database name) — tables can live in non-default schemas (e.g., warehouse.inventory), with cross-schema relations and migration support. (#2084)
  • PostgreSQL full-text search: TSVectorField, SearchVector, SearchQuery, SearchRank, SearchHeadline expressions, and GIN/GiST index support. (#2065)
  • Query API (tortoise.query_api) for building and executing custom pypika queries against models, with Model.get_table() classmethod. (#2064)
  • TortoiseContext — explicit context manager for ORM state with full isolation. (#2069)
  • tortoise_test_context() — modern pytest fixture helper for test isolation. (#2069)
  • get_connection(alias) / get_connections() — functions to access connections from current context.
  • Tortoise.close_connections() — restored (was deprecated in 0.19) as the canonical way to close connections, now context-aware.
  • Tortoise.is_inited() — explicit method version of Tortoise._inited property.
  • ForeignKeyField and ManyToManyField now accept a model class directly, not just string references. (#2027)
  • DateField now supports __year / __month / __day filters. (#2067)

Changed ^^^^^^^

  • Framework integrations (FastAPI, Starlette, Sanic, etc.) now use Tortoise.close_connections() internally.
  • ConnectionHandler uses per-instance ContextVar storage for context isolation.
  • Tortoise.apps and Tortoise._inited are now classproperty descriptors.
  • Performance optimizations for model hydration, object construction, and query building. (#2078)
  • Pydantic model creator internals cleaned up: removed legacy validator, improved computed field handling. (#2079)

Deprecated ^^^^^^^^^^

  • from tortoise import connections — use get_connection() / get_connections() instead (still works but deprecated).

Fixed ^^^^^

  • use_tz=False now correctly preserves naive datetimes instead of silently making them timezone-aware. (#631)
  • Annotations incorrectly selected in ValuesListQuery when not specified in .values_list() fields. (#2059)
  • M2M filtering broken when two relations point to the same target model. (#2083)
  • Pydantic incorrectly marking fields with default values as Optional. (#2082)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.25.1 to 1.0.0.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](tortoise/tortoise-orm@0.25.1...1.0.0)

---
updated-dependencies:
- dependency-name: tortoise-orm
  dependency-version: 1.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Feb 9, 2026
@manzato manzato merged commit e343455 into main Feb 11, 2026
2 of 3 checks passed
@manzato manzato deleted the dependabot/pip/tortoise-orm-1.0.0 branch February 11, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant