From 71d15e2190396b2dfd012ce1c0fada44a3aced39 Mon Sep 17 00:00:00 2001 From: Anna Sirota Date: Mon, 5 Feb 2024 19:35:38 +0100 Subject: [PATCH] Separate production-only deps --- README.md | 1 - playbooks/tasks/deploy.yaml | 2 +- requirements.txt | 2 -- requirements_prod.txt | 3 +++ 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 requirements_prod.txt diff --git a/README.md b/README.md index b76dedc4..360bf78c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,6 @@ Blender Extensions platform, heavily inspired by Mozilla's https://github.com/mo # Requirements * Python 3.10 -* libpq-dev ## Development diff --git a/playbooks/tasks/deploy.yaml b/playbooks/tasks/deploy.yaml index 8ed11778..963db1f0 100644 --- a/playbooks/tasks/deploy.yaml +++ b/playbooks/tasks/deploy.yaml @@ -17,7 +17,7 @@ become: true become_user: "{{ user }}" ansible.builtin.pip: - requirements: "{{ dir.source }}/requirements.txt" + requirements: "{{ dir.source }}/requirements_prod.txt" virtualenv: "{{ dir.source }}/.venv" virtualenv_command: python{{ python_version }} -m venv chdir: "{{ dir.source }}" diff --git a/requirements.txt b/requirements.txt index 980c84f9..42aa8c48 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,7 +21,6 @@ django-pipeline==2.0.8 django-taggit==3.0.0 frozenlist==1.3.0 geoip2==4.6.0 -gunicorn==20.1.0 h11==0.13.0 idna==3.3 Jinja2==3.1.2 @@ -35,7 +34,6 @@ mistune==2.0.4 multidict==6.0.2 oauthlib==3.2.0 Pillow==9.2.0 -psycopg2==2.9.3 requests==2.28.1 requests-oauthlib==1.3.1 semantic-version==2.10.0 diff --git a/requirements_prod.txt b/requirements_prod.txt new file mode 100644 index 00000000..6b45b78b --- /dev/null +++ b/requirements_prod.txt @@ -0,0 +1,3 @@ +-r requirements.txt +psycopg2==2.9.3 +gunicorn==20.1.0 -- 2.30.2