-
Notifications
You must be signed in to change notification settings - Fork 25
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
Pin upper version on PyBaMM #289
Comments
Thanks for opening this as a new issue, @BradyPlanden. I would also point out that upper-pinning should be as liberal as possible so that it opens up space to use a reasonable number of PyBaMM versions, if upper-pinning has to be done, otherwise it can cause conflicts if PyBOP is used as a library in coordination with other packages (as a library, that is). The blog post linked above has many insights. I think Saransh would also have some more information about this (cc: @Saransh-cpp). The good thing, though, is that PyBaMM does not have any upper pins for any package and pins just one of its dependencies ( |
Pinning a dependency is not recommended. Pinning a particular library will make your code behave like an application, and not like an extendable library. If this repository is meant to be used as an application and users are not expected to depend on it, it should be fine to pin PyBaMM. In extreme cases, pinning a library is okay but it should be avoided. |
Thanks, @Saransh-cpp. That's what I think, too. I was thinking of a very wide/forgiving upper-pin, but I think the best way forward would be to actively track changes on PyBaMM's side, through:
and then PyBOP devs shall cut a release for PyBOP with updated lower bounds on PyBaMM, which will be soon after PyBaMM gets to its stable release, so that users still on older versions of PyBOP will receive compatible versions of PyBaMM from |
I guess this should be okay to close with the other PRs being open right now, and we can evaluate what to do on a case-by-case basis. |
As discussed in #285, pinning an upper version limit on PyBaMM would ensure breaking changes are mitigated to PyBOP users. Further discussion on this topic is here:
Originally posted by @agriyakhetarpal in #285 (comment)
The text was updated successfully, but these errors were encountered: