From 68d687b13dbf60258225f4c5b99e9ed0cf5ca4ef Mon Sep 17 00:00:00 2001 From: Ajay Singh Date: Thu, 26 Dec 2024 09:06:43 -0800 Subject: [PATCH 1/2] pin stripe to 12/24 version --- requirements.in | 2 +- requirements.txt | 31 ++++++++++++++++++------------- services/stripe.py | 2 +- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/requirements.in b/requirements.in index c6bf0d730..742663e58 100644 --- a/requirements.in +++ b/requirements.in @@ -49,7 +49,7 @@ sentry-sdk[celery] SQLAlchemy SQLAlchemy-Utils statsd -stripe>=9.6.0 +stripe>=11.4.1 time-machine urllib3>=1.26.18 vcrpy diff --git a/requirements.txt b/requirements.txt index d11d45e10..1ee870c26 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,9 @@ -# This file was autogenerated by uv via the following command: -# uv pip compile requirements.in -o requirements.txt +# +# This file is autogenerated by pip-compile with Python 3.12 +# by the following command: +# +# pip-compile requirements.in +# amqp==5.2.0 # via kombu analytics-python==1.3.0b1 @@ -73,7 +77,7 @@ codecov-ribs==0.1.18 # shared colour==0.1.5 # via shared -coverage==7.5.0 +coverage[toml]==7.5.0 # via # -r requirements.in # pytest-cov @@ -107,7 +111,7 @@ filelock==3.12.4 # via virtualenv freezegun==1.5.0 # via pytest-freezegun -google-api-core==2.23.0 +google-api-core[grpc]==2.23.0 # via # google-cloud-core # google-cloud-pubsub @@ -134,7 +138,7 @@ google-crc32c==1.1.2 # google-resumable-media google-resumable-media==2.7.2 # via google-cloud-storage -googleapis-common-protos==1.59.1 +googleapis-common-protos[grpc]==1.59.1 # via # google-api-core # grpc-google-iam-v1 @@ -324,19 +328,17 @@ requests==2.32.3 # stripe respx==0.20.2 # via -r requirements.in -rfc3986==1.4.0 +rfc3986[idna2008]==1.4.0 # via httpx rsa==4.7.2 # via google-auth s3transfer==0.10.1 # via boto3 -sentry-sdk==2.13.0 +sentry-sdk[celery]==2.13.0 # via # -r requirements.in # shared -setuptools==75.6.0 - # via nodeenv -shared @ https://github.com/codecov/shared/archive/2674ae99811767e63151590906691aed4c5ce1f9.tar.gz#egg=shared +shared @ https://github.com/codecov/shared/archive/2674ae99811767e63151590906691aed4c5ce1f9.tar.gz # via -r requirements.in six==1.16.0 # via @@ -364,15 +366,15 @@ sqlparse==0.5.0 # via django statsd==3.3.0 # via -r requirements.in -stripe==9.6.0 +stripe==11.4.1 # via -r requirements.in -test-results-parser @ https://github.com/codecov/test-results-parser/archive/c840502d1b4dd7d05b2efc2c1328affaf2acd27c.tar.gz#egg=test-results-parser +test-results-parser @ https://github.com/codecov/test-results-parser/archive/c840502d1b4dd7d05b2efc2c1328affaf2acd27c.tar.gz # via -r requirements.in text-unidecode==1.3 # via faker time-machine==2.14.1 # via -r requirements.in -timestring @ https://github.com/codecov/timestring/archive/d37ceacc5954dff3b5bd2f887936a98a668dda42.tar.gz#egg=timestring +timestring @ https://github.com/codecov/timestring/archive/d37ceacc5954dff3b5bd2f887936a98a668dda42.tar.gz # via -r requirements.in tqdm==4.66.1 # via openai @@ -410,3 +412,6 @@ zstandard==0.23.0 # via # -r requirements.in # shared + +# The following packages are considered to be unsafe in a requirements file: +# setuptools diff --git a/services/stripe.py b/services/stripe.py index 2fccf35c9..2574b7cf8 100644 --- a/services/stripe.py +++ b/services/stripe.py @@ -2,7 +2,7 @@ from shared.config import get_config stripe.api_key = get_config("services", "stripe", "api_key") -stripe.api_version = "2024-04-10" +stripe.api_version = "2024-12-18.acacia" client = stripe.http_client.RequestsClient() stripe.default_http_client = client From d8b419a67b0f77458549f5692effa994a0d6fc10 Mon Sep 17 00:00:00 2001 From: Ajay Singh Date: Fri, 27 Dec 2024 10:42:38 -0800 Subject: [PATCH 2/2] run uv command instead --- requirements.txt | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/requirements.txt b/requirements.txt index 1ee870c26..d45fb95b7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,5 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile requirements.in -# +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.in -o requirements.txt amqp==5.2.0 # via kombu analytics-python==1.3.0b1 @@ -77,7 +73,7 @@ codecov-ribs==0.1.18 # shared colour==0.1.5 # via shared -coverage[toml]==7.5.0 +coverage==7.5.0 # via # -r requirements.in # pytest-cov @@ -111,7 +107,7 @@ filelock==3.12.4 # via virtualenv freezegun==1.5.0 # via pytest-freezegun -google-api-core[grpc]==2.23.0 +google-api-core==2.23.0 # via # google-cloud-core # google-cloud-pubsub @@ -138,7 +134,7 @@ google-crc32c==1.1.2 # google-resumable-media google-resumable-media==2.7.2 # via google-cloud-storage -googleapis-common-protos[grpc]==1.59.1 +googleapis-common-protos==1.59.1 # via # google-api-core # grpc-google-iam-v1 @@ -328,17 +324,19 @@ requests==2.32.3 # stripe respx==0.20.2 # via -r requirements.in -rfc3986[idna2008]==1.4.0 +rfc3986==1.4.0 # via httpx rsa==4.7.2 # via google-auth s3transfer==0.10.1 # via boto3 -sentry-sdk[celery]==2.13.0 +sentry-sdk==2.13.0 # via # -r requirements.in # shared -shared @ https://github.com/codecov/shared/archive/2674ae99811767e63151590906691aed4c5ce1f9.tar.gz +setuptools==75.6.0 + # via nodeenv +shared @ https://github.com/codecov/shared/archive/2674ae99811767e63151590906691aed4c5ce1f9.tar.gz#egg=shared # via -r requirements.in six==1.16.0 # via @@ -368,13 +366,13 @@ statsd==3.3.0 # via -r requirements.in stripe==11.4.1 # via -r requirements.in -test-results-parser @ https://github.com/codecov/test-results-parser/archive/c840502d1b4dd7d05b2efc2c1328affaf2acd27c.tar.gz +test-results-parser @ https://github.com/codecov/test-results-parser/archive/c840502d1b4dd7d05b2efc2c1328affaf2acd27c.tar.gz#egg=test-results-parser # via -r requirements.in text-unidecode==1.3 # via faker time-machine==2.14.1 # via -r requirements.in -timestring @ https://github.com/codecov/timestring/archive/d37ceacc5954dff3b5bd2f887936a98a668dda42.tar.gz +timestring @ https://github.com/codecov/timestring/archive/d37ceacc5954dff3b5bd2f887936a98a668dda42.tar.gz#egg=timestring # via -r requirements.in tqdm==4.66.1 # via openai @@ -412,6 +410,3 @@ zstandard==0.23.0 # via # -r requirements.in # shared - -# The following packages are considered to be unsafe in a requirements file: -# setuptools