Skip to content

[14.0] pre-commit: bump setuptools-odoo to 3.3.2 to fix pkg_resources ImportError - #221

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

[14.0] pre-commit: bump setuptools-odoo to 3.3.2 to fix pkg_resources ImportError#221
klodr wants to merge 1 commit into
OCA:14.0from
klodr:14.0-pre-commit-setuptools-odoo

Conversation

@klodr

@klodr klodr commented Jun 20, 2026

Copy link
Copy Markdown

setuptools-odoo 3.1.8 imports the removed pkg_resources module, so the setuptools-odoo-make-default and setuptools-odoo-get-requirements pre-commit hooks fail with ModuleNotFoundError: No module named 'pkg_resources' on recent setuptools (>= 81). The pre-commit check is therefore red on every PR currently opened against 14.0.

Bump the hook to 3.3.2, the same fix as #217 (16.0).

… ImportError

setuptools-odoo 3.1.8 imports the removed `pkg_resources` module, so the
`setuptools-odoo-make-default` and `setuptools-odoo-get-requirements` hooks fail
with `ModuleNotFoundError: No module named 'pkg_resources'` on recent
setuptools (>= 81). This makes the pre-commit check red on every PR currently
opened against this branch.

Bump the hook to 3.3.2, same as OCA#217 for 16.0.

Signed-off-by: Claude Perrin <klodr@users.noreply.github.com>
@klodr

klodr commented Jun 20, 2026

Copy link
Copy Markdown
Author

@OCA/currency-maintainers could you please review? This is the 14.0 counterpart of #217: bump setuptools-odoo to 3.3.2 so the pre-commit hooks stop failing with ModuleNotFoundError: No module named 'pkg_resources'. pre-commit is green here; the test jobs stay red only because of the unrelated xe issue (fixed by #220). Thanks!

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