Skip to content

Commit

Permalink
Use current branch of pydantic, not PyPI version
Browse files Browse the repository at this point in the history
  • Loading branch information
dmontagu committed Jul 26, 2023
1 parent 78d355e commit cd4938a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Expand Up @@ -82,9 +82,7 @@ test-examples: .pdm

.PHONY: test-fastapi ## Run the FastAPI tests with this version of pydantic
test-fastapi:
# TODO: Fetch single branch after FastAPI compatible release
# git clone https://github.com/tiangolo/fastapi.git --single-branch
git clone https://github.com/tiangolo/fastapi.git
git clone https://github.com/tiangolo/fastapi.git --single-branch
./tests/test_fastapi.sh

.PHONY: test-pydantic-settings ## Run the pydantic-settings tests with this version of pydantic
Expand Down
3 changes: 3 additions & 0 deletions tests/test_fastapi.sh
Expand Up @@ -7,6 +7,9 @@ cd fastapi
git fetch --tags

pip install -r requirements.txt
# Install the version of pydantic from the current branch, not the released version used by fastapi
pip uninstall -y pydantic
cd .. && pip install . && cd fastapi

# ./scripts/test.sh accepts arbitrary arguments and passes them to the pytest call.
# This may be necessary if we make low-consequence changes to pydantic, such as minor changes the details of a JSON
Expand Down

0 comments on commit cd4938a

Please sign in to comment.