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

Migrate pydantic tests to uv #501

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

brianschubert
Copy link
Contributor

Fixes #499

Pydantic switched from pdm to uv in pydantic/pydantic#10727, which broke the pydantic daily tests. This PR updates the pydantic tests to use the new uv-based setup.

Example of the updated CI running green: https://github.com/brianschubert/typing_extensions/actions/runs/11767214620

- name: Install pydantic test dependencies
run: pdm install -G testing -G email
run: uv sync --group testing --group dev
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: the email dependency group was replaced by the dev group (relevant commit from the linked PR)

- name: Add local version of typing_extensions as a dependency
run: pdm add ./typing-extensions-latest
run: uv add --editable ./typing-extensions-latest
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: --editable isn't strictly required here. I included it as a sanity check. This causes the path to the installed typing_extensions to be printed in the later steps, which helps to confirm that the latest tip is being used (and not a version from PyPI)

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks!

@JelleZijlstra JelleZijlstra merged commit e391124 into python:main Nov 11, 2024
56 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.

Third-party tests failed on Sat Nov 09 2024
2 participants