Skip to content

Update dependency django-cte to v2

Tine Wittler requested to merge renovate/django-cte-2.x into master

This MR contains the following updates:

Package Type Update Change
django-cte dependencies major ^1.3.2 -> ^2.0.0

Release Notes

dimagi/django-cte (django-cte)

v2.0.0

Compare Source

  • API overhaul
    • With has been renamed to CTE. With is deprecated and will be removed in a future version of django-cte.
    • with_cte was moved from a CTEQuerySet method to a stand-alone function.
    • CTEManager and CTEQuerySet are deprecated and should be removed from code that uses them, as they are no longer necessary. They will be removed in a future version of django-cte.
    • Reference the documentation for new usage patterns.
  • BREAKING: On Django 5.2 and later, the name specified in .values('fk_name') must match the name of the same column referenced by cte.col.fk_name—for example, in a join condition. It may end with _id or not, but the references must be consistent. This change may require previously working CTE queries to be adjusted when migrating to Django 5.2 (example).
  • Django 5.0 is EOL and no longer supported.
  • Fixed broken UNION and other "combined" queries.
  • Internally, the library has been updated to simplify the code and remove workarounds for old and unsupported versions of Django.
  • Modernized development tooling
    • Replaced nosetests with pytest.
    • Replaced setup.py with pyproject.toml
    • Replaced flake8 with ruff.
    • Replaced venv/pip with uv.
    • Improved Github Actions automation, including automated releases.
    • Dev versions of django-cte are now published on PyPI, making them easier to test and use before an official release is cut.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports

Loading