Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding prod and dev requirements for the backend #476

Merged
merged 6 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr_ci_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
pip install -r backend/requirements-dev.txt

- name: Run Black - Formatting check
uses: psf/black@stable
Expand Down
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ FROM python:3.11-alpine3.16
WORKDIR /app

# Install dependencies
COPY ./requirements.txt .
COPY ./requirements-dev.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN pip install -r requirements-dev.txt

# Copy code from context to image
COPY . .
16 changes: 16 additions & 0 deletions backend/requirements-dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# In order to add, delete or modify a dependency, please update
# the reference here and then run:
#
# - `pip-compile --rebuild requirements.in`
# - `pip-compile --rebuild requirements-dev.in`
#
# Make sure we use production deps for constraining installed dev packages. This
# is important as otherwise we could be running tests with different versions
# than production.
#
-r requirements.txt

pre-commit==3.4.0
ruff==0.0.292
black==23.3.0
pip-tools==7.3.0
189 changes: 189 additions & 0 deletions backend/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements-dev.in
#
asgiref==3.7.2
# via
# -r requirements.txt
# django
attrs==23.1.0
# via
# -r requirements.txt
# jsonschema
# referencing
black==23.3.0
# via -r requirements-dev.in
build==1.0.3
# via pip-tools
certifi==2023.7.22
# via
# -r requirements.txt
# requests
cfgv==3.4.0
# via pre-commit
charset-normalizer==3.3.1
# via
# -r requirements.txt
# requests
click==8.1.7
# via
# black
# pip-tools
colorama==0.4.6
# via
# build
# click
distlib==0.3.7
# via virtualenv
django==4.2.6
# via
# -r requirements.txt
# django-cors-headers
# django-stubs
# django-stubs-ext
# djangorestframework
# drf-spectacular
django-cors-headers==4.2.0
# via -r requirements.txt
django-stubs==4.2.3
# via
# -r requirements.txt
# djangorestframework-stubs
django-stubs-ext==4.2.2
# via
# -r requirements.txt
# django-stubs
djangorestframework==3.14.0
# via
# -r requirements.txt
# drf-spectacular
djangorestframework-stubs==3.14.2
# via -r requirements.txt
drf-spectacular==0.26.4
# via -r requirements.txt
filelock==3.12.4
# via virtualenv
gunicorn==20.1.0
# via -r requirements.txt
identify==2.5.30
# via pre-commit
idna==3.4
# via
# -r requirements.txt
# requests
inflection==0.5.1
# via
# -r requirements.txt
# drf-spectacular
jsonschema==4.19.1
# via
# -r requirements.txt
# drf-spectacular
jsonschema-specifications==2023.7.1
# via
# -r requirements.txt
# jsonschema
mypy==1.6.1
# via
# -r requirements.txt
# django-stubs
# djangorestframework-stubs
mypy-extensions==1.0.0
# via
# -r requirements.txt
# black
# mypy
nodeenv==1.8.0
# via pre-commit
packaging==23.2
# via
# black
# build
pathspec==0.11.2
# via black
pip-tools==7.3.0
# via -r requirements-dev.in
platformdirs==3.11.0
# via
# black
# virtualenv
pre-commit==3.4.0
# via -r requirements-dev.in
psycopg2-binary==2.9.5
# via -r requirements.txt
pyproject-hooks==1.0.0
# via build
python-dotenv==1.0.0
# via -r requirements.txt
pytz==2023.3.post1
# via
# -r requirements.txt
# djangorestframework
pyyaml==6.0.1
# via
# -r requirements.txt
# drf-spectacular
# pre-commit
referencing==0.30.2
# via
# -r requirements.txt
# jsonschema
# jsonschema-specifications
requests==2.31.0
# via
# -r requirements.txt
# djangorestframework-stubs
rpds-py==0.10.6
# via
# -r requirements.txt
# jsonschema
# referencing
ruff==0.0.292
# via -r requirements-dev.in
sqlparse==0.4.4
# via
# -r requirements.txt
# django
types-pytz==2023.3.1.1
# via
# -r requirements.txt
# django-stubs
types-pyyaml==6.0.12.12
# via
# -r requirements.txt
# django-stubs
# djangorestframework-stubs
types-requests==2.31.0.10
# via
# -r requirements.txt
# djangorestframework-stubs
typing-extensions==4.8.0
# via
# -r requirements.txt
# django-stubs
# django-stubs-ext
# djangorestframework-stubs
# mypy
tzdata==2023.3
# via
# -r requirements.txt
# django
uritemplate==4.1.1
# via
# -r requirements.txt
# drf-spectacular
urllib3==2.0.7
# via
# -r requirements.txt
# requests
# types-requests
virtualenv==20.24.5
# via pre-commit
wheel==0.41.2
# via pip-tools

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
17 changes: 17 additions & 0 deletions backend/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# In order to add, delete or modify a dependency, please update
# the reference here and then run:
#
# - `pip-compile --rebuild requirements.in`
# - `pip-compile --rebuild requirements-dev.in`
#

Django==4.2.6
django-stubs==4.2.3
django-stubs-ext==4.2.2
djangorestframework==3.14.0
djangorestframework-stubs==3.14.2
drf-spectacular==0.26.4
python-dotenv==1.0.0
psycopg2-binary==2.9.5
gunicorn==20.1.0
django-cors-headers==4.2.0
Loading
Loading