Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] l10n_fr_siret[_lookup]: remove wrong dependency #515

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

yajo
Copy link
Member

@yajo yajo commented Jan 31, 2024

Odoo 16 depends on both requests and python-stdnum, so there's no need to specify those dependencies.

Besides, python-stdnum is pinned to 1.16. Thus, when applying OCA/oca-ci#66 locally, the constraint failed. OCA addons should work with the dependencies pinned upstream.

@moduon MT-4520 @EmilioPascual

@OCA-git-bot
Copy link
Contributor

Hi @alexis-via, @remi-filament,
some modules you are maintaining are being modified, check this out!

@@ -14,7 +14,6 @@
"depends": [
"l10n_fr_siret",
],
"external_dependencies": {"python": ["requests", "python-stdnum>=1.18"]},
Copy link
Member

@sbidoul sbidoul Jan 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's okay to specify direct dependencies here, if only for docs purposes. So the line must not be removed.

Maybe there a good reason to require python-stdnum>=1.18 for this module to work? In such case we must accept it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the line must not be removed.

Restored

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yajo thank you for looking into this,
as a matter of fact there is a good reason to request python-stdnum >= 1.18, which is this commit : arthurdejong/python-stdnum@73f5e3a

The module should work with older version, although it will fail for the specific SIRET covered by the above commit (but this specific case is not tested in the module so unit tests should not fail neither if done with older version)

@yajo yajo force-pushed the 16.0-fix_python_stdnum_deps branch 2 times, most recently from 274a604 to a9f1d65 Compare January 31, 2024 11:28
@@ -12,7 +12,7 @@
"website": "https://github.com/OCA/l10n-france",
"license": "AGPL-3",
"depends": ["l10n_fr", "base_view_inheritance_extension"],
"external_dependencies": {"python": ["python-stdnum>=1.18"]},
"external_dependencies": {"python": ["python-stdnum"]},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should keep it here also

Suggested change
"external_dependencies": {"python": ["python-stdnum"]},
"external_dependencies": {"python": ["python-stdnum>=1.18"]},

@@ -14,7 +14,6 @@
"depends": [
"l10n_fr_siret",
],
"external_dependencies": {"python": ["requests", "python-stdnum>=1.18"]},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yajo thank you for looking into this,
as a matter of fact there is a good reason to request python-stdnum >= 1.18, which is this commit : arthurdejong/python-stdnum@73f5e3a

The module should work with older version, although it will fail for the specific SIRET covered by the above commit (but this specific case is not tested in the module so unit tests should not fail neither if done with older version)

@alexis-via
Copy link
Contributor

Yes, it's very annoying that Odoo depends on old version of python-stdnum. It's a lack of respect for the excellent work of the guys of python-stdnum. By depending on such an old version, we miss all the bugfixes of the recent years.

@sbidoul
Copy link
Member

sbidoul commented Jan 31, 2024

I would not merge this. We'll find a better solution for OCA/oca-ci#66

@yajo
Copy link
Member Author

yajo commented Feb 1, 2024

What about this?

  1. Add to the installation instructions that it is recommended to upgrade this library.
  2. Leave it unconstrained.
  3. Open PR to Odoo explaining the problem.

@alexis-via
Copy link
Contributor

@yajo I'm ok to remove the constraint on the version of python-stdnum in the manifest and explain in the README of the module that we recommend to have a version >= 1.18 to have the fix on SIRET that is included in that version.

@yajo yajo force-pushed the 16.0-fix_python_stdnum_deps branch from a9f1d65 to 8c61202 Compare February 27, 2024 09:43
@yajo
Copy link
Member Author

yajo commented Feb 27, 2024

seems fair, done.

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jun 30, 2024
Odoo 16 depends on both requests and python-stdnum, so there's no need to specify those dependencies.

Besides, [python-stdnum is pinned to 1.16][1]. Thus, when applying OCA/oca-ci#66 locally, the constraint failed. OCA addons should work with the dependencies pinned upstream.

[1]: https://github.com/odoo/odoo/blob/fe4d8e8014e50d4335e0a8b052b5098f3a79bcec/requirements.txt#L48

@moduon MT-4520
@yajo yajo force-pushed the 16.0-fix_python_stdnum_deps branch from 8c61202 to 781a01e Compare July 17, 2024 08:12
@yajo
Copy link
Member Author

yajo commented Jul 17, 2024

Thanks, bot. AFAIK this is ready to merge. I just rebased to fix conflicts.

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 21, 2024
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.

5 participants