Skip to content

[SYNPY-1553] Update to support python 3.13 #1171

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

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

BryanFauble
Copy link
Member

@BryanFauble BryanFauble commented Feb 27, 2025

Problem:

  1. Python 3.13 is not supported

Solution:

  1. Update the github pipeline to build 3.13 and run integration tests on that version.
  2. Updating the docs and install files to reference 3.13 as a valid version.
  3. Removing the usage of cgi.parse_header in favor of the email.message Message class as mentioned in (PEP 594) https://docs.python.org/3/whatsnew/3.13.html#removed-modules-and-apis

Testing:

  • Unit/Integration testing
  • Verified that before the changes I can run into the cgi error as reported by the original user, and after the change I was able to download a small (few byte) file as expected:

image

Comment on lines +176 to +178
message = Message()
message.add_header("content-disposition", content_disposition_header)
return message.get_filename(failobj=default_filename)
Copy link
Member Author

Choose a reason for hiding this comment

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

I verified that there was unit test coverage that already covered this function.

@BryanFauble BryanFauble marked this pull request as ready for review February 28, 2025 19:44
@BryanFauble BryanFauble requested a review from a team as a code owner February 28, 2025 19:44
@BryanFauble BryanFauble merged commit b00099f into develop Feb 28, 2025
28 checks passed
@BryanFauble BryanFauble deleted the synpy-1552-support-3-13 branch February 28, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants