-
-
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 Nov 21, 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 1865f55 - Browse repository at this point
Copy the full SHA 1865f55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d129fa - Browse repository at this point
Copy the full SHA 5d129faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b01e07 - Browse repository at this point
Copy the full SHA 9b01e07View 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 37cd3e0 - Browse repository at this point
Copy the full SHA 37cd3e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1991a32 - Browse repository at this point
Copy the full SHA 1991a32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52ebee6 - Browse repository at this point
Copy the full SHA 52ebee6View 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 e40474c - Browse repository at this point
Copy the full SHA e40474cView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa62c99 - Browse repository at this point
Copy the full SHA aa62c99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51e1224 - Browse repository at this point
Copy the full SHA 51e1224View 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 af643bc - Browse repository at this point
Copy the full SHA af643bcView 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 75badac - Browse repository at this point
Copy the full SHA 75badacView 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 d55e070 - Browse repository at this point
Copy the full SHA d55e070View commit details -
Configuration menu - View commit details
-
Copy full SHA for a6e0414 - Browse repository at this point
Copy the full SHA a6e0414View 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 dd1ef28 - Browse repository at this point
Copy the full SHA dd1ef28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65cd3f2 - Browse repository at this point
Copy the full SHA 65cd3f2View 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 01af03b - Browse repository at this point
Copy the full SHA 01af03bView 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 908d20b - Browse repository at this point
Copy the full SHA 908d20bView 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 091c340 - Browse repository at this point
Copy the full SHA 091c340View 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 e00aa1f - Browse repository at this point
Copy the full SHA e00aa1fView 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 34a5b69 - Browse repository at this point
Copy the full SHA 34a5b69View 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 f76a1f0 - Browse repository at this point
Copy the full SHA f76a1f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52675cd - Browse repository at this point
Copy the full SHA 52675cdView 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 1831e36 - Browse repository at this point
Copy the full SHA 1831e36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 900b8d0 - Browse repository at this point
Copy the full SHA 900b8d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9739480 - Browse repository at this point
Copy the full SHA 9739480View commit details -
Configuration menu - View commit details
-
Copy full SHA for 600ae34 - Browse repository at this point
Copy the full SHA 600ae34View commit details -
Icon and tooltip are changed to reflect current state.
Configuration menu - View commit details
-
Copy full SHA for 868f7ea - Browse repository at this point
Copy the full SHA 868f7eaView 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 3fa8aa6 - Browse repository at this point
Copy the full SHA 3fa8aa6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d43d43 - Browse repository at this point
Copy the full SHA 2d43d43View 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 f94d602 - Browse repository at this point
Copy the full SHA f94d602View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a97451 - Browse repository at this point
Copy the full SHA 0a97451View commit details -
Only update system paths on Spyder startup, not every time the python…
…path manager widget is invoked. If the system paths have changed since last widget invocation, then the user may not be aware and there is no indication in the widget that there has been a change. Furthermore, canceling the widget may still result in a change to the pythonpath, which would be inconsistent with the cancel action.
Configuration menu - View commit details
-
Copy full SHA for a6f7038 - Browse repository at this point
Copy the full SHA a6f7038View commit details -
Add import path functionality.
Rather than automatically updating the system paths, provide mechanism for user to do so.
Configuration menu - View commit details
-
Copy full SHA for c6f8e16 - Browse repository at this point
Copy the full SHA c6f8e16View commit details -
* Test system PYTHONPATH import in test_pathmanager instead of test_mainwindow * Move restore_user_env fixture from app/tests/conftest.py to utils/tests/conftest.py * Ensure that the user environment script runs on posix while testing
Configuration menu - View commit details
-
Copy full SHA for 4ea900e - Browse repository at this point
Copy the full SHA 4ea900eView commit details -
git subrepo clone --branch=ppm-syspath --force https://github.com/mrc…
…lary/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "181f9bf66" upstream: origin: "https://github.com/mrclary/spyder-kernels.git" branch: "ppm-syspath" commit: "181f9bf66" git-subrepo: version: "0.4.9" origin: "???" commit: "???"
Configuration menu - View commit details
-
Copy full SHA for 27e84dc - Browse repository at this point
Copy the full SHA 27e84dcView commit details