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

PR: Skip IPython versions that give buggy code completions and other fixes for dependencies #20656

Merged
merged 6 commits into from
Mar 9, 2023

Conversation

ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 commented Mar 8, 2023

Description of Changes

  • IPython 8.8.0, 8.9.0 and 8.10.0 are known to give wrong code completions in some cases. That's why we need to skip them from our supported versions.
  • Replace parse_version from the pkg_resources module for parse from the packaging one. The first one basically calls the second one, so it's better to use the later directly.
  • Add support for the != operator to is_module_installed.
  • Replace semicolon for comma to separate constraints in is_module_installed. Commas are used both by Conda-build and Setuptools, so our usage of semicolons is non-standard and prone to confusions.
  • Depends on PR: Skip IPython versions that give buggy code completions spyder-kernels#448.

Issue(s) Resolved

Fixes #20393.

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:

parse_version calls the equivalent of packaging.parse at the end, so
it's better to use it directly.
…odule_installed

Commas are used both by Conda-build and Setuptools, so our usage of
semicolon is non-standard and prone to confusions.
subrepo:
  subdir:   "external-deps/spyder-kernels"
  merged:   "7156204ef"
upstream:
  origin:   "https://github.com/spyder-ide/spyder-kernels.git"
  branch:   "2.x"
  commit:   "7156204ef"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

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

Thanks @ccordoba12 ! Maybe we should try to add a regression test for the console completion? In that way we could detect in the future if some other version of IPython breaks things here.

Other than that this LGTM 👍

@ccordoba12
Copy link
Member Author

Good idea @dalthviz! I added a test for the case reported on issue #20393 in my last commit.

@dalthviz dalthviz merged commit 74742d4 into spyder-ide:5.x Mar 9, 2023
dalthviz added a commit that referenced this pull request Mar 9, 2023
@ccordoba12 ccordoba12 deleted the issue-20393 branch March 9, 2023 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants