-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
fix(packaging): support Python 3.14 #30687
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
Closed
Technolog796
wants to merge
4
commits into
BerriAI:litellm_internal_staging
from
Technolog796:litellm_python_314_support
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c78a35c
fix(packaging): support python 3.14
Technolog796 519ce29
test(packaging): cover python 3.14 review cases
Technolog796 25e261f
fix(packaging): require patched pypdf release
Technolog796 7dc863a
fix(packaging): support python 3.14 rust bridge
Technolog796 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| name: "Python 3.14 Support" | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - litellm_internal_staging | ||
| - litellm_oss_branch | ||
| - "litellm_**" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| python-314-support: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | ||
| with: | ||
| python-version: "3.14" | ||
| allow-prereleases: true | ||
|
|
||
| - name: Set up uv | ||
| uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 | ||
| with: | ||
| version: "0.10.9" | ||
|
|
||
| - name: Check lockfile | ||
| run: uv lock --check | ||
|
|
||
| - name: Install dependencies | ||
| run: uv sync --frozen --all-groups --all-extras | ||
|
|
||
| - name: Import smoke | ||
| run: | | ||
| uv run --no-sync python - <<'PY' | ||
| import importlib | ||
|
|
||
| modules = ( | ||
| "litellm", | ||
| "fastuuid", | ||
| "redisvl", | ||
| "semantic_router", | ||
| "aurelio_sdk", | ||
| "pypdf", | ||
| "openapi_core", | ||
| ) | ||
|
|
||
| for module in modules: | ||
| importlib.import_module(module) | ||
| PY | ||
|
|
||
| - name: Datadog tracing smoke | ||
| run: | | ||
| DD_TRACE_ENABLED=false USE_DDTRACE=true uv run --no-sync python - <<'PY' | ||
| from litellm.litellm_core_utils import dd_tracing | ||
|
|
||
| with dd_tracing.tracer.trace("litellm.python314.smoke") as span: | ||
| assert span is not None | ||
| span.set_tag("litellm.python", "3.14") | ||
| assert dd_tracing.get_active_span() is not None | ||
|
|
||
| @dd_tracing.tracer.wrap(name="litellm.python314.wrap_smoke") | ||
| def wrapped(): | ||
| return "ok" | ||
|
|
||
| assert wrapped() == "ok" | ||
| PY | ||
|
|
||
| - name: Run targeted regression tests | ||
| run: | | ||
| uv run --no-sync pytest \ | ||
| tests/test_litellm/test_uuid_helper.py \ | ||
| tests/test_litellm/caching/test_s3_cache.py \ | ||
| --tb=short -vv |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.