Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove backend 3.7-deprecated API#26962

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

issamarabi
Copy link
Contributor

@issamarabiissamarabi commentedSep 29, 2023
edited
Loading

PR summary

This PR addresses the removal of classes that were deprecated in version 3.7. (issue#26865)

Changes:

  • RemovedPsBackendHelper class which was deprecated since 3.7.
  • Removed theps_backend_helper attribute from the__getattr__ class which referenced the now-removedPsBackendHelper.
  • Removed theServerThread class which was also deprecated since 3.7.

PR checklist

Copy link

@github-actionsgithub-actionsbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join uson gitter for real-time discussion.

For details on testing, writing docs, and our review process, please seethe developer guide

We strive to be a welcoming and open project. Please follow ourCode of Conduct.

@QuLogicQuLogic added this to thev3.9.0 milestoneSep 30, 2023
@QuLogic
Copy link
Member

This looks good, but it needs an API change note for the removals. There's also something insrc/_backend_agg_wrapper.cpp that's backend-related if you want to remove that too.

@QuLogicQuLogic mentioned this pull requestSep 29, 2023
14 tasks
@issamarabi
Copy link
ContributorAuthor

There's also something insrc/_backend_agg_wrapper.cpp that's backend-related if you want to remove that too.

I've removed the deprecated methodsPyBufferRegion_to_string andPyBufferRegion_to_string_argb fromsrc/_backend_agg_wrapper.cpp as suggested. The API change notes have been updated accordingly. Please review.

@ksunden
Copy link
Member

Doc build is failing because of the build system change, should be fixed by rebasing again onto currentupstream/main.

Also the changelog note wants a newline at the end (this is what is failing pre-commit CI)

This was referencedOct 13, 2023
@Vishnu9535
Copy link

hey can i work on this issue

@QuLogic
Copy link
Member

This is not an open issue; it's an open pull request waiting for a reply from the original submitter,@issamarabi. There is no work to be done here unless the original submitter has disappeared (and it's not clear that enough time has passed for that to be the case).

issamarabi reacted with thumbs up emoji

@timhoffm
Copy link
Member

@issamarabi please report back whether you are you planning to continue this work.

issamarabiand others added10 commitsNovember 2, 2023 08:30
Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
…gion_to_string_argbThis commit removes two deprecated methods, PyBufferRegion_to_string and PyBufferRegion_to_string_argb, from src/_backend_agg_wrapper.cpp, deprecated since version 3.7.Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
… methods from 3.7This commit updates the API change notes to reflect the removal of deprecated Python classes and C++ methods.Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
Removed `to_string` and `to_string_argb` methods from `PyBufferRegion_init_type`Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
Co-authored-by: Kyle Sunden <git@ksunden.space>
issamarabiand others added3 commitsNovember 2, 2023 08:30
Update doc formatCo-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Signed-off-by: Issam Arabi <issam@cs.toronto.edu>
@issamarabiissamarabiforce-pushed theremove-backend-deprecations branch from36bc45d to1d45c3dCompareNovember 2, 2023 12:31
@issamarabi
Copy link
ContributorAuthor

Sorry about that!

Copy link
Member

@ksundenksunden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should just be the small amount of clean up in the release note to quell sphinx warnings.

If you are comfortable squashing your commits down, that would also be nice (though we can do that on merge as well).

Co-authored-by: Kyle Sunden <git@ksunden.space>
@issamarabi
Copy link
ContributorAuthor

I created several commits to separate distinct changes. I think this will help future coders. I also wouldn't know how to create one commit message that encompasses all the changes I made.

@rcomer
Copy link
Member

I created several commits to separate distinct changes. I think this will help future coders. I also wouldn't know how to create one commit message that encompasses all the changes I made.

I think the PR title would be fine as a commit message, though you can also create a multi-line commit message if you want to add more detail. In general, Matplotlib tries to keep commits to a minimum and, while we are not overly strict about that, it would be very unusual for this project to merge 14 separate commits from a single PR.

Copy link
Member

@QuLogicQuLogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The code looks fine; the commits could be squashed a bit.

@ksundenksunden merged commitf80ff65 intomatplotlib:mainDec 6, 2023
@QuLogic
Copy link
Member

Thanks@issamarabi! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

@QuLogicQuLogicQuLogic approved these changes

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Projects
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

[MNT]: Remove 3.7-deprecated API
6 participants
@issamarabi@QuLogic@ksunden@Vishnu9535@timhoffm@rcomer

[8]ページ先頭

©2009-2025 Movatter.jp