-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
Remove unused class from sage_setup.optional extension #31013
Comments
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:4
Can't make incompatible changes to the interface of a public function |
comment:5
(I'm referring to the |
comment:6
It's also conflicting with the changes in #30940 (which needs review) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Replying to @mkoeppe:
So one cannot change public facing functions at all? What is the policy/strategy for this? Introduce a new method, say
I wouldn't say it's conflicting, just results in easy-to-resolve merge conflicts. |
comment:9
Replying to @tobiasdiez:
It could be a new function (with deprecation for the old one), or an optional argument that controls the return type, ... But in this particular case, it would probably be good enough to just give the new class dictionary-like behavior so that user code can continue to access the slots like a dictionary. Possibly with deprecation warning. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Replying to @mkoeppe:
That's a nice idea, implemented! |
comment:12
Instead of "string-based access", perhaps this should be called "dict-like access" in the deprecation messages? |
comment:13
I think in this change you need to use
|
comment:16
Hoping we can make progress on this ticket this week - https://wiki.sagemath.org/days111 |
Changed keywords from none to sd111 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
Replying to @mkoeppe:
Indeed, thanks! |
comment:61
Setting a new milestone for this ticket based on a cursory review. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:63
Rebased, so this is now ready for review. |
Changed work issues from rebase on #31385 to none |
comment:64
Stalled in |
comment:65
Yes, I would appreciate if this ticket could be reviewed! |
Changed dependencies from #31385 to none |
comment:69
Thanks for copying me Matthias. I was aware of this ticket and I guess it will at least remove some pesky doctests. Otherwise it will just make me move some patch from one file to another.
|
comment:70
Other than that, if you copied me for the review, it all looks good and sensible to me. |
Reviewer: François Bissey |
comment:71
Thanks for the review! |
Changed branch from public/build/remove_optional_extension to |
<!-- ^ 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
<!-- ^ 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
The code in
optional_extension
was mostly unused and is removed in this ticket (and similarlyextension.skip_build
was nowhere else set).The only still used method was
is_package_installed_and_updated
which is moved tosage.misc.package
.Related: #28815
CC: @mkoeppe @kiwifb
Component: build
Keywords: sd111
Author: Tobias Diez
Branch/Commit:
a7b1e81
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/31013
The text was updated successfully, but these errors were encountered: