Skip to content

Update dependencies, holding openai and ipython back#268

Merged
EliahKagan merged 1 commit intodmvassallo:mainfrom
EliahKagan:deps
Dec 4, 2023
Merged

Update dependencies, holding openai and ipython back#268
EliahKagan merged 1 commit intodmvassallo:mainfrom
EliahKagan:deps

Conversation

@EliahKagan
Copy link
Copy Markdown
Collaborator

@EliahKagan EliahKagan commented Dec 4, 2023

This constrains openai<1 for now. Showing how to work with and wrap the old Python API is a central part of this project, so it's unclear what will be done with that moving forward. The options are to stay with <1 indefinitely, move up to 1, or support both conditionally (which should usually be avoided, but for this project it might be nice to show how to do so when needed). Note that embeddings_utils is not present in openai>=1.

Less importantly, this also pins ipython back to ~8.12.3, which is actually a downgrade. This is to support Python 3.8. Before, we were installing an older version just on older Pythons, as we do with numpy and scipy. For ipython, the reason to give newer Pythons the newer version was that the convenient and popular way to autocomplete a full line, by pressing right-arrow, was broken, and the fix initially had not been backported. This is now fixed, due to the backporting of ipython/ipython#14080 to 8.12, which is in the 8.12.3 patch.

See my branch for test status. This should only be merged if all CI checks at the tip of that branch are green.

This supersedes many, and possibly all, currently open Dependabot PRs.

This constrains openai<1 for now. Showing how to work with and wrap
the old Python API is a central part of this project, so it's
unclear what will be done with that moving forward. The options are
to stay with <1 indefinitely, move up to 1, or support both
conditionally (which should usually be avoided, but for this
project it might be nice to show how to do so when needed). Note
that embeddings_utils is not present in openai>=1.

Less importantly, this also pins ipython back to ~8.12.3, which is
actually a downgrade. This is to support Python 3.8. Before, we
were installing an older version just on older Pythons, as we do
with numpy and scipy. For ipython, the reason to give newer Pythons
the newer version was that the convenient and popular way to
autocomplete a full line, by pressing right-arrow, was broken, and
the fix initially had not been backported. This is now fixed, due
to the backporting of ipython/ipython#14080
to 8.12, which is in the 8.12.3 patch.
@EliahKagan EliahKagan marked this pull request as ready for review December 4, 2023 04:34
@EliahKagan
Copy link
Copy Markdown
Collaborator Author

Green at EliahKagan@531bdd8, merging.

@EliahKagan EliahKagan merged commit 3ee894a into dmvassallo:main Dec 4, 2023
@EliahKagan EliahKagan deleted the deps branch December 4, 2023 04:42
EliahKagan added a commit to EliahKagan/EmbeddingScratchwork that referenced this pull request Dec 4, 2023
So Dependabot commands can be issued specific to updates to that
package. Currently we are holding it back <1. See dmvassallo#268 (531bdd8).
EliahKagan added a commit that referenced this pull request Dec 4, 2023
So Dependabot commands can be issued specific to updates to that
package. Currently we are holding it back <1. See #268 (531bdd8).
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