-
-
Notifications
You must be signed in to change notification settings - Fork 656
sage.misc.package
: Remove deprecated code
#37855
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
sage.misc.package
: Remove deprecated code
#37855
Conversation
Documentation preview for this PR (built with commit 9221a32; changes) is ready! 🎉 |
@@ -40,8 +40,7 @@ | |||
lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259) | |||
lazy_import('sage.misc.trace', 'trace', deprecation=34259) | |||
lazy_import('sage.misc.package', ('installed_packages', 'is_package_installed', | |||
'standard_packages', 'optional_packages', | |||
'experimental_packages', 'package_versions'), | |||
'package_versions'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest we remove lazy_import('sage.misc.package',...)
altogether. Those functions are always explicitly imported and only in limited context (setup.py and feature.pkg_systems.py). package_versions
is never ever called anywhere anymore which suggests it should be at least deprecated if not removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import is already deprecated, but it's short of 1 year of deprecation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting rid of that stuff is good, wish we could get rid of more faster.
Thank you! |
sagemathgh-37855: `sage.misc.package`: Remove deprecated code <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> Remove code deprecated in: - sagemath#31013 (2022) - sagemath#30747 (2020) - sagemath#30607 (2020) ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#37855 Reported by: Matthias Köppe Reviewer(s): François Bissey, Matthias Köppe
Remove code deprecated in:
sage.misc.package.PackageNotFoundError
, is_package_installed by features #30607 (2020)📝 Checklist
⌛ Dependencies