Skip to content

Update our tooling to support Odoo 17 #582

@sbidoul

Description

@sbidoul

What needs to be done to create the 17.0 branches

Replace setup.py with pyproject.toml

This year I'd like to replace setup.py files with a pyproject.toml at the root of each addon, using setuptools-odoo's successor:
whool. This will get rid of most of the setup directory.

This is less intrusive, standards-based and necessary because setuptools-odoo relied on setuptools features that are being deprecated. There are a few pre-requisites for that:

Use ruff

If the community agrees, we could use ruff to improve pre-commit run performance:

  • Convert our pre-commit config to replace flake8, isort and pyupgrade with ruff. A
    .ruff.toml at the repo root can replace .flake8 and .isort.cfg.
  • Use ruff-format instead of black

PR here: OCA/oca-addons-repo-template#219

This can be done as a copier question in the addons repo template to switch between ruff and other linters.

Update pylint config

  • It's a good time to review or mandatory and optional pylint checks in the addons repo template

Usual tasks

See #537 for links to similar PRs for 16.0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions