-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: Add option to prepend or append Pythonpath Manager paths to sys.path #21769
base: master
Are you sure you want to change the base?
Commits on May 31, 2024
-
Update UI with toggle button to prioritize spyder_pythonpath with res…
…pect to sys.path.
Configuration menu - View commit details
-
Copy full SHA for 888d15a - Browse repository at this point
Copy the full SHA 888d15aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a2d18f - Browse repository at this point
Copy the full SHA 9a2d18fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cda2fff - Browse repository at this point
Copy the full SHA cda2fffView commit details -
Add path priority to IPython Console plugin
Remove SPY_PYTHONPATH; run update_syspath on setup_spyder_kernel. I think this would be much cleaner if the the emitted signal carried old/new spyder_pythonpath instead of the dictionary. I don't know of any plugin listening for sig_pythonpath_changed that requires the dictionary version.
Configuration menu - View commit details
-
Copy full SHA for 63f9bb2 - Browse repository at this point
Copy the full SHA 63f9bb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 099089e - Browse repository at this point
Copy the full SHA 099089eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ce811e - Browse repository at this point
Copy the full SHA 2ce811eView commit details -
Update ipythonconsole plugin tests
test_ipythoncosonle.py had many failures on latest master; attempting CI=1 skipped many tests but hangs on test_pdb_ignore_lib[True]
Configuration menu - View commit details
-
Copy full SHA for 7d12f9d - Browse repository at this point
Copy the full SHA 7d12f9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6880a0a - Browse repository at this point
Copy the full SHA 6880a0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9995525 - Browse repository at this point
Copy the full SHA 9995525View commit details -
Configuration menu - View commit details
-
Copy full SHA for 892a79b - Browse repository at this point
Copy the full SHA 892a79bView commit details -
Convert (path, project_path, not_active_path) to (user_paths, project…
…_paths, system_paths) and dictionary type
Configuration menu - View commit details
-
Copy full SHA for 123586c - Browse repository at this point
Copy the full SHA 123586cView commit details -
Only set user_paths, project_paths, system_paths, and prioritize in u…
…pdate_paths method and call setup in update-paths method. This will allow the container to instantiate the PathManager widget before providing paths. Paths will not be retrieved or determined within the widget, only passed to it by the container.
Configuration menu - View commit details
-
Copy full SHA for af77a0d - Browse repository at this point
Copy the full SHA af77a0dView commit details -
Send new user paths, system paths, and prioritize back to container.
These will be dictionaries and the container will handle updating the pythonpath_manager configuration and assembling the final spyder_pythonpath. There is no need for _update_system_path method because the container will handle updates to the underlying system path. Again, the widget will only handle user-interactive changes.
Configuration menu - View commit details
-
Copy full SHA for 7826390 - Browse repository at this point
Copy the full SHA 7826390View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0476a6c - Browse repository at this point
Copy the full SHA 0476a6cView commit details -
Remove algorithm to save system PYTHONPATH.
This will be done in the container instead.
Configuration menu - View commit details
-
Copy full SHA for dc7ef7c - Browse repository at this point
Copy the full SHA dc7ef7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d276f5b - Browse repository at this point
Copy the full SHA d276f5bView commit details -
Update container attributes (path, not_active_path, project_path, pri…
…oritize) -> (_user_paths, _system_paths, _project_paths, _prioritize, _spyder_pythonpath). Path lists are now OrderedDict * Simplifies _load_pythonpath -> _load_paths * Move migration method from setup to _load_paths
Configuration menu - View commit details
-
Copy full SHA for ec4023e - Browse repository at this point
Copy the full SHA ec4023eView commit details -
Revise configuration migration method.
* Promptly exits if remnants of old configuration are not present * Removes remnants of old configuration if present * Constructs user paths from old configuration remnants
Configuration menu - View commit details
-
Copy full SHA for 271ebf2 - Browse repository at this point
Copy the full SHA 271ebf2View commit details -
* Configuration keys and private attributes for user paths, system paths, prioritize, and spyder_pythonpath are set conditionally in this method and nowhere else. * sig_pythonpath_changed is conditionally emitted from this method and nowhere else. This signal now sends only the spyder_pythonpath and prioritize, not the old spyder_pythonpath. Subscribers should update accordingly.
Configuration menu - View commit details
-
Copy full SHA for 6941cdc - Browse repository at this point
Copy the full SHA 6941cdcView commit details -
Simplify get_spyder_pythonpath. spyder_pythonpath is now straightforw…
…ardly constructed from project, user, and system paths attributes.
Configuration menu - View commit details
-
Copy full SHA for 60110cf - Browse repository at this point
Copy the full SHA 60110cfView commit details -
Simplify update_active_project_path. sig_pythonpath_changed is emitte…
…d in _save_paths if spyder_pythonpath is changed.
Configuration menu - View commit details
-
Copy full SHA for 33b5964 - Browse repository at this point
Copy the full SHA 33b5964View commit details -
Update show_path_manager method. Note that PathManager.setup is calle…
…d in PathManager.updat_paths
Configuration menu - View commit details
-
Copy full SHA for 8c750c8 - Browse repository at this point
Copy the full SHA 8c750c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d519fc - Browse repository at this point
Copy the full SHA 3d519fcView commit details -
Propagate changes to sig_pythonpath_changed to ipythonconsole plugin.…
… Note that spyder-kernels must be updated to accommodate.
Configuration menu - View commit details
-
Copy full SHA for a1ce825 - Browse repository at this point
Copy the full SHA a1ce825View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29d2596 - Browse repository at this point
Copy the full SHA 29d2596View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63ba87a - Browse repository at this point
Copy the full SHA 63ba87aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 189e56f - Browse repository at this point
Copy the full SHA 189e56fView commit details -
Icon and tooltip are changed to reflect current state.
Configuration menu - View commit details
-
Copy full SHA for 94eced2 - Browse repository at this point
Copy the full SHA 94eced2View commit details -
Apply suggestions from code review
Co-authored-by: Jitse Niesen <jitseniesen@yahoo.com> Typographical errors. Improved docstring clarity
Configuration menu - View commit details
-
Copy full SHA for 64b1b0f - Browse repository at this point
Copy the full SHA 64b1b0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21dd974 - Browse repository at this point
Copy the full SHA 21dd974View commit details -
Python 3.8 does not support | operator on OrderedDict.
The desired affect is project paths | user paths | system paths, where the paths are in that order and are overwritten in that order. System paths cannot overwrite user paths, which cannot overwrite project paths, i.e we cannot just do project_paths.update(user_paths) etc.
Configuration menu - View commit details
-
Copy full SHA for 74bf1ae - Browse repository at this point
Copy the full SHA 74bf1aeView commit details -
git subrepo pull --branch=ppm-syspath --remote=https://github.com/mrc…
…lary/python-lsp-server.git --update --force external-deps/python-lsp-server subrepo: subdir: "external-deps/python-lsp-server" merged: "8c8807af5" upstream: origin: "https://github.com/mrclary/python-lsp-server.git" branch: "ppm-syspath" commit: "8c8807af5" git-subrepo: version: "0.4.6" origin: "???" commit: "???"
Configuration menu - View commit details
-
Copy full SHA for e91e283 - Browse repository at this point
Copy the full SHA e91e283View commit details -
git subrepo pull --branch=ppm-syspath --remote=https://github.com/mrc…
…lary/spyder-kernels.git --update --force external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "bd5fc817f" upstream: origin: "https://github.com/mrclary/spyder-kernels.git" branch: "ppm-syspath" commit: "bd5fc817f" git-subrepo: version: "0.4.6" origin: "???" commit: "???"
Configuration menu - View commit details
-
Copy full SHA for f93eb7d - Browse repository at this point
Copy the full SHA f93eb7dView commit details