Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ git interpret-trailers --if-exists doNothing --trailer \
To run the tests:

```sh
pip install -r requirements-dev.txt
pytest
script/setup
script/test
```

To install the package in development:
Expand Down
30 changes: 6 additions & 24 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --extra=dev --output-file=requirements-dev.txt pyproject.toml
#
# This file was autogenerated by uv via the following command:
# uv pip compile pyproject.toml --extra=dev -o requirements-dev.txt
annotated-types==0.5.0
# via pydantic
anyio==3.7.1
Expand All @@ -21,9 +17,7 @@ h11==0.14.0
httpcore==0.17.3
# via httpx
httpx==0.24.1
# via
# replicate (pyproject.toml)
# respx
# via respx
idna==3.4
# via
# anyio
Expand All @@ -40,36 +34,28 @@ multidict==6.0.4
nodeenv==1.8.0
# via pyright
packaging==23.1
# via
# pytest
# replicate (pyproject.toml)
# via pytest
platformdirs==3.11.0
# via pylint
pluggy==1.2.0
# via pytest
pydantic==2.0.3
# via replicate (pyproject.toml)
pydantic-core==2.3.0
# via pydantic
pylint==3.0.2
# via replicate (pyproject.toml)
pyright==1.1.337
# via replicate (pyproject.toml)
pytest==7.4.0
# via
# pytest-asyncio
# pytest-recording
# replicate (pyproject.toml)
pytest-asyncio==0.21.1
# via replicate (pyproject.toml)
pytest-recording==0.13.0
# via replicate (pyproject.toml)
pyyaml==6.0.1
# via vcrpy
respx==0.20.2
# via replicate (pyproject.toml)
ruff==0.3.3
# via replicate (pyproject.toml)
setuptools==69.2.0
# via nodeenv
sniffio==1.3.0
# via
# anyio
Expand All @@ -81,13 +67,9 @@ typing-extensions==4.7.1
# via
# pydantic
# pydantic-core
# replicate (pyproject.toml)
vcrpy==5.1.0
# via pytest-recording
wrapt==1.15.0
# via vcrpy
yarl==1.9.2
# via vcrpy

# The following packages are considered to be unsafe in a requirements file:
# setuptools
12 changes: 2 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --output-file=requirements.txt --resolver=backtracking pyproject.toml
#
# This file was autogenerated by uv via the following command:
# uv pip compile pyproject.toml -o requirements.txt
annotated-types==0.5.0
# via pydantic
anyio==3.7.1
Expand All @@ -17,15 +13,12 @@ h11==0.14.0
httpcore==0.17.3
# via httpx
httpx==0.24.1
# via replicate (pyproject.toml)
idna==3.4
# via
# anyio
# httpx
packaging==23.1
# via replicate (pyproject.toml)
pydantic==2.0.3
# via replicate (pyproject.toml)
pydantic-core==2.3.0
# via pydantic
sniffio==1.3.0
Expand All @@ -37,4 +30,3 @@ typing-extensions==4.7.1
# via
# pydantic
# pydantic-core
# replicate (pyproject.toml)
11 changes: 10 additions & 1 deletion script/setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@

set -e

python -m pip install -r requirements.txt -r requirements-dev.txt .
: "${GITHUB_ACTIONS:=}"

python -m pip install uv
uv venv .venv
uv pip sync requirements.txt requirements-dev.txt

if [ "$GITHUB_ACTIONS" = "true" ]; then
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
fi