-
-
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 Dec 2, 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 4966f94 - Browse repository at this point
Copy the full SHA 4966f94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2803d16 - Browse repository at this point
Copy the full SHA 2803d16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c44b6e - Browse repository at this point
Copy the full SHA 6c44b6eView 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 984fff9 - Browse repository at this point
Copy the full SHA 984fff9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9725dd - Browse repository at this point
Copy the full SHA d9725ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c919a5 - Browse repository at this point
Copy the full SHA 5c919a5View 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 88724f9 - Browse repository at this point
Copy the full SHA 88724f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 080069d - Browse repository at this point
Copy the full SHA 080069dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e726f5 - Browse repository at this point
Copy the full SHA 4e726f5View 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 cbe3af7 - Browse repository at this point
Copy the full SHA cbe3af7View 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 275b579 - Browse repository at this point
Copy the full SHA 275b579View 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 0bc403e - Browse repository at this point
Copy the full SHA 0bc403eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d5735b - Browse repository at this point
Copy the full SHA 2d5735bView 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 d7d508c - Browse repository at this point
Copy the full SHA d7d508cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 516c8d1 - Browse repository at this point
Copy the full SHA 516c8d1View 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 a8eeb01 - Browse repository at this point
Copy the full SHA a8eeb01View 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 e712c2b - Browse repository at this point
Copy the full SHA e712c2bView 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 2c6f65a - Browse repository at this point
Copy the full SHA 2c6f65aView 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 a2bed3f - Browse repository at this point
Copy the full SHA a2bed3fView 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 059c128 - Browse repository at this point
Copy the full SHA 059c128View 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 7ddf61c - Browse repository at this point
Copy the full SHA 7ddf61cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f8bd31e - Browse repository at this point
Copy the full SHA f8bd31eView 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 98519c3 - Browse repository at this point
Copy the full SHA 98519c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb1edbf - Browse repository at this point
Copy the full SHA cb1edbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed5d7f5 - Browse repository at this point
Copy the full SHA ed5d7f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1efee5c - Browse repository at this point
Copy the full SHA 1efee5cView commit details -
Icon and tooltip are changed to reflect current state.
Configuration menu - View commit details
-
Copy full SHA for 516fbfd - Browse repository at this point
Copy the full SHA 516fbfdView commit details -
Apply suggestions from code review
Co-authored-by: Jitse Niesen <[email protected]> Typographical errors. Improved docstring clarity
Configuration menu - View commit details
-
Copy full SHA for 352e2cb - Browse repository at this point
Copy the full SHA 352e2cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8eb5fd6 - Browse repository at this point
Copy the full SHA 8eb5fd6View 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 3c428b6 - Browse repository at this point
Copy the full SHA 3c428b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7d1b59 - Browse repository at this point
Copy the full SHA d7d1b59View 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 5ced645 - Browse repository at this point
Copy the full SHA 5ced645View 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 86e9b17 - Browse repository at this point
Copy the full SHA 86e9b17View 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 304ee07 - Browse repository at this point
Copy the full SHA 304ee07View 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: "66766d44b" upstream: origin: "https://github.com/mrclary/spyder-kernels.git" branch: "ppm-syspath" commit: "66766d44b" git-subrepo: version: "0.4.9" origin: "???" commit: "???"
Configuration menu - View commit details
-
Copy full SHA for d36db51 - Browse repository at this point
Copy the full SHA d36db51View commit details