Skip to content

Commit

Permalink
Unpin requests (#803)
Browse files Browse the repository at this point in the history
* unpin requests and upgrade other packages accordingly

* Recompiled reqs via docker and added bash script for it
  • Loading branch information
nevoodoo authored Jun 3, 2024
1 parent 3073a28 commit 01bf58c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 31 deletions.
12 changes: 12 additions & 0 deletions compile_requirements.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# To avoid pip-compile deciding requirements on your specific machine,
# we use a docker container to compile the requirements, which should match
# the architecture of the dev environment.

docker run --platform linux/amd64 -v $(pwd):/opt/metamist python:3.11 /bin/bash -c '
cd /opt/metamist;
pip install pip-tools;
pip-compile requirements.in > requirements.txt;
pip-compile --output-file=requirements-dev.txt requirements-dev.in requirements.in
'
2 changes: 1 addition & 1 deletion requirements-dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ flake8-bugbear
nest-asyncio
pre-commit
pylint
testcontainers[mysql]>=4.4.1
testcontainers[mysql]>=4.5.0
types-PyMySQL
# some strawberry dependency
strawberry-graphql[debug-server]==0.229.0
Expand Down
18 changes: 5 additions & 13 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ cryptography==42.0.7
# azure-storage-blob
# pymysql
databases[mysql]==0.9.0
# via
# -r requirements.in
# databases
# via -r requirements.in
deprecated==1.2.14
# via cpg-utils
deprecation==2.1.0
Expand All @@ -96,14 +94,13 @@ distlib==0.3.8
# via virtualenv
dnspython==2.6.1
# via email-validator
docker==7.0.0
docker==7.1.0
# via testcontainers
email-validator==2.1.1
# via fastapi
fastapi[all]==0.110.2
# via
# -r requirements.in
# fastapi
# strawberry-graphql
filelock==3.14.0
# via virtualenv
Expand All @@ -125,7 +122,6 @@ functions-framework==3.5.0
# via -r requirements-dev.in
google-api-core[grpc]==2.19.0
# via
# google-api-core
# google-cloud-appengine-logging
# google-cloud-bigquery
# google-cloud-core
Expand Down Expand Up @@ -267,7 +263,6 @@ packaging==24.0
# via
# black
# deprecation
# docker
# google-cloud-bigquery
# gunicorn
pathspec==0.12.1
Expand Down Expand Up @@ -355,7 +350,7 @@ pyyaml==6.0.1
# libcst
# pre-commit
# uvicorn
requests==2.31.0
requests==2.32.2
# via
# -r requirements.in
# azure-core
Expand Down Expand Up @@ -398,13 +393,10 @@ strawberry-graphql[debug-server,fastapi]==0.229.0
# via
# -r requirements-dev.in
# -r requirements.in
# strawberry-graphql
tabulate==0.9.0
# via cpg-utils
testcontainers[mysql]==4.4.1
# via
# -r requirements-dev.in
# testcontainers
testcontainers[mysql]==4.5.0
# via -r requirements-dev.in
toml==0.10.2
# via cpg-utils
tomlkit==0.12.5
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cpg-utils>=5.0.5
aiohttp
async_lru
cloudpathlib
requests==2.31.0
requests
google-auth>=2.19.0
google-cloud-bigquery==3.11.4
google-cloud-logging==2.7.0
Expand Down
26 changes: 10 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ aiosignal==1.3.1
# via aiohttp
annotated-types==0.7.0
# via pydantic
anyio==4.3.0
anyio==4.4.0
# via
# httpx
# starlette
Expand All @@ -27,12 +27,12 @@ azure-storage-blob==12.20.0
# via cloudpathlib
backoff==2.2.1
# via -r requirements.in
boto3==1.34.111
boto3==1.34.115
# via
# -r requirements.in
# cloudpathlib
# cpg-utils
botocore==1.34.111
botocore==1.34.115
# via
# -r requirements.in
# boto3
Expand Down Expand Up @@ -62,9 +62,7 @@ cryptography==42.0.7
# -r requirements.in
# azure-storage-blob
databases[mysql]==0.9.0
# via
# -r requirements.in
# databases
# via -r requirements.in
deprecated==1.2.14
# via cpg-utils
dnspython==2.6.1
Expand All @@ -74,7 +72,6 @@ email-validator==2.1.1
fastapi[all]==0.110.2
# via
# -r requirements.in
# fastapi
# strawberry-graphql
frozendict==2.4.4
# via cpg-utils
Expand All @@ -84,7 +81,6 @@ frozenlist==1.4.1
# aiosignal
google-api-core[grpc]==2.19.0
# via
# google-api-core
# google-cloud-appengine-logging
# google-cloud-bigquery
# google-cloud-core
Expand Down Expand Up @@ -221,12 +217,12 @@ pyasn1-modules==0.4.0
# via google-auth
pycparser==2.22
# via cffi
pydantic==2.7.1
pydantic==2.7.2
# via
# fastapi
# pydantic-extra-types
# pydantic-settings
pydantic-core==2.18.2
pydantic-core==2.18.3
# via pydantic
pydantic-extra-types==2.7.0
# via fastapi
Expand All @@ -252,7 +248,7 @@ pyyaml==6.0.1
# via
# fastapi
# uvicorn
requests==2.31.0
requests==2.32.3
# via
# -r requirements.in
# azure-core
Expand Down Expand Up @@ -281,14 +277,12 @@ sqlalchemy==2.0.30
starlette==0.37.2
# via fastapi
strawberry-graphql[fastapi]==0.229.0
# via
# -r requirements.in
# strawberry-graphql
# via -r requirements.in
tabulate==0.9.0
# via cpg-utils
toml==0.10.2
# via cpg-utils
typing-extensions==4.11.0
typing-extensions==4.12.0
# via
# azure-core
# azure-storage-blob
Expand All @@ -309,7 +303,7 @@ uvicorn[standard]==0.29.0
# fastapi
uvloop==0.19.0
# via uvicorn
watchfiles==0.21.0
watchfiles==0.22.0
# via uvicorn
websockets==12.0
# via uvicorn
Expand Down

0 comments on commit 01bf58c

Please sign in to comment.