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

relax pinning on importlib_metadata, typing_extensions #363

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

minrk
Copy link
Contributor

@minrk minrk commented Aug 28, 2023

== pinning is ~always to be avoided in exported package dependencies, and tight pinning on backports like importlib_metadata is extremely unlikely to be desirable, since these prohibit users from installing later, compatible versions of these dependencies for their own use alongside jupyter-ai.

I've replaced some very stable dependencies with strict pinnings (which cause many installation conflicts without any actual compatibility issues) to lower bounds, and replaced some strict ~=x.y.z with semantic >=x.y.z,<x+1, where ~=x.y.z produces >=x.y.z,<x.y+1.

I didn't update strict pinnings on dependencies like langchain, which I strongly suspect should also be relaxed, but I can't speak to that one.

In general, I'd encourage upper bounds to be on the major version at most, if upper bounds should be used at all (usually the answer is no unless compatibility breakage is likely, e.g. jupyterlab).

@welcome
Copy link

welcome bot commented Aug 28, 2023

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@3coins 3coins added the maintenance Change related to maintenance of the repository label Aug 29, 2023
@3coins
Copy link
Collaborator

3coins commented Aug 29, 2023

@minrk
Thanks for normalizing the dependency versioning for this project. I would like to upgrade LangChain version with this PR as well, but that requires a round of testing in different Python environments. I will go through this today and update the PR. Agree in general about your choice of the versioning, except LangChain, which is still <1.0 version and have introduced breaking changes in the past.

@3coins
Copy link
Collaborator

3coins commented Aug 30, 2023

@minrk
Wasn't able to upgrade LangChain to latest, but everything else works fine. Will merge soon. Thanks for working on this.

== pinning is almost always to be avoided in packages,
and tight pinning on backports like importlib_metadata is extremely unlikely to be desirable
@3coins 3coins merged commit 93eb896 into jupyterlab:main Aug 30, 2023
@welcome
Copy link

welcome bot commented Aug 30, 2023

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

@minrk minrk deleted the less-pinning branch August 30, 2023 08:51
dlqqq pushed a commit to dlqqq/jupyter-ai that referenced this pull request Sep 5, 2023
== pinning is almost always to be avoided in packages,
and tight pinning on backports like importlib_metadata is extremely unlikely to be desirable
dlqqq added a commit that referenced this pull request Sep 5, 2023
* Update README, docs (#347)

* Copy edits for brevity, adds large screenshot

* Adds screenshot, adds principles to contributor docs

* Uses screenshot class for home page image

* Fix reference to screenshot

* Copy edits

* Update index.md

Styles magic command

* Copy edits based on @dlqqq's feedback

* fix newline typo in improve_code (#364)

* Remove frontend js unit tests as not planned (#371)

* Added alias for bedrock titan model (#368)

* Added alias for bedrock titan model

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* relax pinning on importlib_metadata, typing_extensions (#363)

== pinning is almost always to be avoided in packages,
and tight pinning on backports like importlib_metadata is extremely unlikely to be desirable

* Loads vector store index lazily (#374)

* Upgrades LangChain to 0.0.277

* Pinned Pydantic version, updated pydantic references

* add .yarn to .gitignore in 1.x for local dev

---------

Co-authored-by: michaelchia <michael_chia7@msn.com>
Co-authored-by: Andrii Ieroshenko <aieroshe@amazon.com>
Co-authored-by: Piyush Jain <piyushjain@duck.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Min RK <benjaminrk@gmail.com>
dbelgrod pushed a commit to dbelgrod/jupyter-ai that referenced this pull request Jun 10, 2024
== pinning is almost always to be avoided in packages,
and tight pinning on backports like importlib_metadata is extremely unlikely to be desirable
Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
== pinning is almost always to be avoided in packages,
and tight pinning on backports like importlib_metadata is extremely unlikely to be desirable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Change related to maintenance of the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unable to install cohere due to conflicting importlib-metadata version
2 participants