Skip to content

[16.0] pre-commit: bump setuptools-odoo to 3.3.2#227

Open
klodr wants to merge 1 commit into
OCA:16.0from
klodr:16.0-pre-commit-setuptools-odoo
Open

[16.0] pre-commit: bump setuptools-odoo to 3.3.2#227
klodr wants to merge 1 commit into
OCA:16.0from
klodr:16.0-pre-commit-setuptools-odoo

Conversation

@klodr

@klodr klodr commented Jun 20, 2026

Copy link
Copy Markdown

The setuptools-odoo 3.1.8 hooks import pkg_resources, which is removed in
recent setuptools, so setuptools-odoo-make-default and
setuptools-odoo-get-requirements crash with
ModuleNotFoundError: No module named 'pkg_resources' and the pre-commit job
fails on every PR targeting 16.0. Bumping to 3.3.2 (which dropped the
pkg_resources import) fixes it.

Same change as #217 (17.0) and #221 (14.0).

The setuptools-odoo 3.1.8 hooks import pkg_resources, removed in recent
setuptools, so setuptools-odoo-make-default and setuptools-odoo-get-requirements
crash with ModuleNotFoundError and the pre-commit job fails on every PR.
3.3.2 drops the pkg_resources import.

Signed-off-by: Claude Perrin <klodr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant