Skip to content

Commit

Permalink
⬆️ Upgrade pydantic and cloudcontroller (#733)
Browse files Browse the repository at this point in the history
* ⬆️ Upgrade `pydantic` to latest

* ⬆️ Upgrade `typing-extensions` to latest

* ⬆️ Upgrade `anyio` to latest

* 👷 add `--upgrade` flag to pip install

* ➖ drop unnecessary requirement for starlette

* ⬆️ use latest cloudcontroller, with `validate_call` re-added
  • Loading branch information
ff137 authored Apr 4, 2024
1 parent 5f9cacd commit 416813a
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
- name: Install test dependencies.
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.txt --upgrade
- name: Run Pylint
run: |
pylint app/ endorser/ shared/ trustregistry/ webhooks/ --rcfile=.pylintrc -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" --exit-zero > pylintreport.txt
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
- name: Install test dependencies.
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.txt --upgrade
- uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down
6 changes: 3 additions & 3 deletions app/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
aiohttp~=3.9.0
aries-cloudcontroller==0.11.0.post0
aries-cloudcontroller==0.11.0.post3
base58~=2.1.1
fastapi~=0.110.0
fastapi_websocket_pubsub~=0.3.8
httpx~=0.27.0
loguru~=0.7.2
orjson~=3.9.15
pydantic~=2.5.1
pydantic~=2.6.4
pyjwt~=2.8.0
PyYAML~=6.0
typing-extensions~=4.9.0
typing-extensions~=4.10.0
uvicorn[standard]~=0.29.0
2 changes: 1 addition & 1 deletion dockerfiles/endorser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY shared /shared

WORKDIR /endorser

RUN pip install --no-cache-dir -r requirements.txt -r requirements.dev.txt
RUN pip install --no-cache-dir -r requirements.txt -r requirements.dev.txt --upgrade

EXPOSE 3009

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/fastapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY shared /shared

WORKDIR /app

RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt --upgrade

EXPOSE 8000

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY endorser/requirements.txt endorser/
COPY trustregistry/requirements.txt trustregistry/
COPY webhooks/requirements.txt webhooks/

RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt --upgrade

COPY . .

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/trustregistry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY shared /shared

WORKDIR /trustregistry

RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt --upgrade

EXPOSE 8001

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/webhooks/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY shared /shared

WORKDIR /webhooks

RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt --upgrade

EXPOSE 3010

Expand Down
4 changes: 2 additions & 2 deletions endorser/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
aries-cloudcontroller==0.11.0.post0
aries-cloudcontroller==0.11.0.post3
dependency-injector~=4.41.0
httpx~=0.27.0
fastapi~=0.110.0
loguru~=0.7.2
orjson~=3.9.15
pydantic~=2.5.1
pydantic~=2.6.4
redis~=5.1.0b4
uvicorn[standard]~=0.29.0
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
anyio>=3.7.1
anyio~=4.3.0
assertpy==1.1
black~=24.3.0
isort~=5.13.2
Expand Down
3 changes: 1 addition & 2 deletions trustregistry/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ httpx~=0.27.0
loguru~=0.7.2
orjson~=3.9.15
psycopg2-binary~=2.9.6
pydantic~=2.5.1
pydantic~=2.6.4
sqlalchemy~=2.0.19
starlette>=0.27.0
uvicorn[standard]~=0.29.0
7 changes: 3 additions & 4 deletions webhooks/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
aries-cloudcontroller==0.11.0.post0
aries-cloudcontroller==0.11.0.post3
dependency-injector~=4.41.0
fastapi~=0.110.0
fastapi_websocket_pubsub~=0.3.8
httpx~=0.27.0
loguru~=0.7.2
orjson~=3.9.15
pydantic~=2.5.1
pydantic~=2.6.4
redis~=5.1.0b4
sse-starlette~=2.0.0
starlette>=0.27.0
typing-extensions~=4.9.0
typing-extensions~=4.10.0
uvicorn[standard]~=0.29.0

0 comments on commit 416813a

Please sign in to comment.