Skip to content
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

chore: prep for 3.13 by removing msgspec dep #73

Merged

Conversation

bitwise-constructs
Copy link
Contributor

@bitwise-constructs bitwise-constructs commented Dec 4, 2024

What I did

Prep for 3.13 by removing msgspec dep and functionality when using it.

How I did it

How to verify it

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

@bitwise-constructs bitwise-constructs marked this pull request as ready for review December 4, 2024 23:03
@bitwise-constructs bitwise-constructs enabled auto-merge (squash) December 4, 2024 23:04
Copy link
Member

@antazoey antazoey left a comment

Choose a reason for hiding this comment

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

this is a good idea, love it. So we can move forward with Python 3.13 but can add better support for vmTrace later as well as make decision regarding msgspec versus pydantic.

Had one comment, feel free to consider or ignore.

import sys

# msgspec does not currently build on python 3.13 so hide it behind a version check
if sys.version_info < (3, 13):
Copy link
Member

Choose a reason for hiding this comment

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

idea: so one thing you could do in this situation to avoid having to indent everything is move all of the contents of the file to another file called _vmrace.py (leading underscore). Then, in this file import all those things and put them in all iff this condition.

@bitwise-constructs bitwise-constructs merged commit 1c4987f into ApeWorX:main Dec 4, 2024
18 checks passed
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