From 5a9c641c04c2418db50b13e48ea003cb935a0e9f Mon Sep 17 00:00:00 2001 From: Gabriel Han Date: Wed, 28 Jan 2026 17:30:34 -0800 Subject: [PATCH 1/3] fix heroku 24 stack requires only requirements.txt OR poetry.lock --- .github/workflows/cypress.yml | 2 +- .pre-commit-config.yaml | 2 +- requirements.txt | 65 ----------------------------------- 3 files changed, 2 insertions(+), 67 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 812ded60..6520517b 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -36,7 +36,7 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r ci/requirements.txt - name: Install npm dependencies run: | npm ci diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d8ded9d..d654e215 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: hooks: - id: poetry-check - id: poetry-export - args: ["-f", "requirements.txt", "-o", "requirements.txt", "--without-hashes", "--with", "prod"] + args: ["-f", "requirements.txt", "-o", "ci/requirements.txt", "--without-hashes", "--with", "prod"] # js - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.1.0 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 4db04cd2..00000000 --- a/requirements.txt +++ /dev/null @@ -1,65 +0,0 @@ -asgiref==3.8.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -asttokens==3.0.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -boto3==1.37.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -botocore==1.37.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -certifi==2025.1.31 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -cffi==1.17.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and platform_python_implementation != "PyPy" -charset-normalizer==3.4.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -colorama==0.4.6 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and sys_platform == "win32" -cryptography==44.0.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -decorator==5.2.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -defusedxml==0.7.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -dj-database-url==2.3.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -django-csp==3.8 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -django-extensions==3.2.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -django-heroku==0.3.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -django-postgres-extra==2.0.9rc11 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -django-storages==1.14.5 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -django==5.1.6 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -djangorestframework-camel-case==1.4.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -djangorestframework==3.15.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -drf-nested-forms==1.1.8 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -executing==2.2.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -factory-boy==3.3.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -faker==36.1.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -freezegun==1.5.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -gunicorn==22.0.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -idna==3.10 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -iniconfig==2.0.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -ipython==8.32.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -jedi==0.19.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -jmespath==1.0.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -matplotlib-inline==0.1.7 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -networkx==3.4.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -oauthlib==3.2.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -packaging==24.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -parso==0.8.4 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -pexpect==4.9.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and (sys_platform != "win32" and sys_platform != "emscripten") -pluggy==1.5.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -prompt-toolkit==3.0.50 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -psycopg2-binary==2.9.10 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -psycopg2==2.9.10 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -ptyprocess==0.7.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and (sys_platform != "win32" and sys_platform != "emscripten") -pure-eval==0.2.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -pycparser==2.22 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and platform_python_implementation != "PyPy" -pygments==2.19.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -pyjwt==2.10.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -pytest-django==4.10.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -pytest==8.3.4 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -python-dateutil==2.9.0.post0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -python3-openid==3.2.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -requests-oauthlib==2.0.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -requests==2.32.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -s3transfer==0.11.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -sentry-sdk==2.22.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -six==1.17.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -social-auth-app-django==5.4.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -social-auth-core==4.5.6 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -sqlparse==0.5.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -stack-data==0.6.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -traitlets==5.14.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -typing-extensions==4.12.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -tzdata==2025.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -urllib3==2.3.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -wcwidth==0.2.13 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" -whitenoise==6.9.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" From cb3dbb282c52e724836f780fc129592a70af3ffe Mon Sep 17 00:00:00 2001 From: Gabriel Han Date: Wed, 28 Jan 2026 17:33:58 -0800 Subject: [PATCH 2/3] add requirements to separate folder --- ci/requirements.txt | 65 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 ci/requirements.txt diff --git a/ci/requirements.txt b/ci/requirements.txt new file mode 100644 index 00000000..4db04cd2 --- /dev/null +++ b/ci/requirements.txt @@ -0,0 +1,65 @@ +asgiref==3.8.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +asttokens==3.0.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +boto3==1.37.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +botocore==1.37.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +certifi==2025.1.31 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +cffi==1.17.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and platform_python_implementation != "PyPy" +charset-normalizer==3.4.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +colorama==0.4.6 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and sys_platform == "win32" +cryptography==44.0.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +decorator==5.2.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +defusedxml==0.7.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +dj-database-url==2.3.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +django-csp==3.8 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +django-extensions==3.2.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +django-heroku==0.3.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +django-postgres-extra==2.0.9rc11 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +django-storages==1.14.5 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +django==5.1.6 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +djangorestframework-camel-case==1.4.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +djangorestframework==3.15.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +drf-nested-forms==1.1.8 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +executing==2.2.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +factory-boy==3.3.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +faker==36.1.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +freezegun==1.5.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +gunicorn==22.0.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +idna==3.10 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +iniconfig==2.0.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +ipython==8.32.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +jedi==0.19.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +jmespath==1.0.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +matplotlib-inline==0.1.7 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +networkx==3.4.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +oauthlib==3.2.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +packaging==24.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +parso==0.8.4 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +pexpect==4.9.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and (sys_platform != "win32" and sys_platform != "emscripten") +pluggy==1.5.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +prompt-toolkit==3.0.50 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +psycopg2-binary==2.9.10 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +psycopg2==2.9.10 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +ptyprocess==0.7.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and (sys_platform != "win32" and sys_platform != "emscripten") +pure-eval==0.2.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +pycparser==2.22 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" and platform_python_implementation != "PyPy" +pygments==2.19.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +pyjwt==2.10.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +pytest-django==4.10.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +pytest==8.3.4 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +python-dateutil==2.9.0.post0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +python3-openid==3.2.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +requests-oauthlib==2.0.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +requests==2.32.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +s3transfer==0.11.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +sentry-sdk==2.22.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +six==1.17.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +social-auth-app-django==5.4.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +social-auth-core==4.5.6 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +sqlparse==0.5.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +stack-data==0.6.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +traitlets==5.14.3 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +typing-extensions==4.12.2 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +tzdata==2025.1 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +urllib3==2.3.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +wcwidth==0.2.13 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" +whitenoise==6.9.0 ; python_full_version >= "3.12.4" and python_full_version < "3.13.0" From a5f0953568147e9d09bd88cfecf289ec924c8f3d Mon Sep 17 00:00:00 2001 From: Gabriel Han Date: Wed, 28 Jan 2026 17:41:56 -0800 Subject: [PATCH 3/3] fix cypress file to include ci/requirements --- .github/workflows/cypress.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 6520517b..7f2ce6ef 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -86,7 +86,7 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r ci/requirements.txt - name: Install npm dependencies run: | npm ci