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

Python 3.13 Compatibility & CI Improvements #626

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

teocns
Copy link
Contributor

@teocns teocns commented Jan 7, 2025

This PR includes two main improvements:

1. Python 3.13 Dependency Updates

  • Ensures Pydantic ≥2.8.0 and typing-extensions are used to prevent build failures with pydantic-core when running with Python 3.13
  • Implements using UV's constraint-dependencies with environment markers
  • Allows flexible dependency versions for other Python versions while enforcing compatibility requirements specifically for Python 3.13

2. CI Workflow Enhancements

  • Triggers python-tests workflow on pyproject.toml changes to ensure dependency updates are properly tested
  • Updates setup-uv action configuration to use cache-suffix instead of deprecated cache-prefix parameter
  • Maintains separate caches for different Python versions using cache-suffix: uv-${python-version}

When running with Python 3.13, ensure Pydantic ≥2.8.0 and typing-extensions are used
to prevent build failures with pydantic-core. This is implemented using UV's
constraint-dependencies with environment markers, allowing flexible dependency
versions for other Python versions while enforcing compatibility requirements
specifically for Python 3.13.
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ
unittests 36.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@teocns teocns force-pushed the fix/packaging-py13-pydantic branch from 03e5145 to 844ad8b Compare January 7, 2025 06:09
@teocns teocns changed the title chore: update dependencies for Python 3.13 compatibility Python 3.13 Compatibility & CI Improvements Jan 7, 2025
@teocns teocns merged commit 7f8f3b6 into main Jan 7, 2025
7 checks passed
@teocns teocns deleted the fix/packaging-py13-pydantic branch January 7, 2025 06:16
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.

1 participant