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

add some notes about pinning python dependencies in CONTRIBUTING.rst #198

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

Conversation

hparfr
Copy link

@hparfr hparfr commented Jan 24, 2025

slighly edited from @sbidoul comment : OCA/queue#530 (comment)

@hparfr
Copy link
Author

hparfr commented Jan 24, 2025

Thanks, I have update as requested

@hparfr
Copy link
Author

hparfr commented Jan 27, 2025

@rvalyi @pedrobaeza can you please review your requests of changes ?


If the module dependencies versions are pinned or if bounds are too stricts, then integrators may face a "dependency hell" with unresolvable dependency conflicts.

Note that versions in Odoo's requirement.txt are a recommendation (known good versions used in some Debian and/or Ubuntu versions), but Odoo may work well with more recent versions of many libraries, and it frequently happens that one needs to use more recent versions of the Odoo requirements to be compatible with other modern libraries.
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't say "it frequently happens that one needs to use more recent versions of the Odoo requirements to be compatible".

While it's possible, I think it should be a not-so-frequently case and we should stick to the pinned versions as much as possible.

Copy link
Author

Choose a reason for hiding this comment

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

we should stick to the pinned versions as much as possible.

Wow; I had the feeling there was shared agreement on this.

Copy link
Member

Choose a reason for hiding this comment

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

Well, I already said in #198 (comment) that we shouldn't advise the use of latest versions.

Copy link
Member

@rvalyi rvalyi Jan 27, 2025

Choose a reason for hiding this comment

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

what about "it may happen" instead of "frequently happens" so it looks more neutral. frequently is a bit subjective and depends also about the point of view like: it might be frequent for us developpers who specialize into delivering cutting edge technologies but it's probably not so frequent for the average OCA module user who will like something easy to install that just work out of the box with the standard Odoo dependencies.

Copy link
Author

Choose a reason for hiding this comment

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

It's not an advice to use lastest version, it's about to not pin version without a good reason in oca.

I will %s/frequently/may as suggested by @rvalyi to be more neutral.

Again, the recommandation here, in this paragraph, is not about use modern or outdated dependencies.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, I like @rvalyi suggestion.

Add some notes about pinning python dependencies.

Taken from sbidoul : OCA/queue#530 (comment)
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.

6 participants