Skip to content

Commit

Permalink
switch to poetry dependency management
Browse files Browse the repository at this point in the history
  • Loading branch information
ddutkiewicz-stx committed Sep 11, 2019
1 parent e22984f commit c32786b
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM python:3.7
WORKDIR /code
COPY --from=build-stage /code/build /code/src/frontend/build
COPY ./ /code
RUN pip install -r requirements.txt
RUN pip install poetry && poetry config settings.virtualenvs.create false && poetry install
WORKDIR /code/src
RUN python manage.py makemigrations api
RUN python manage.py migrate
Expand Down
113 changes: 113 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[tool.poetry]
name = "dsa-feed-generator"
version = "1.0.0"
description = ""
authors = ["Dawid Dutkiewicz <[email protected]>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.7"
Django = "=2.1.11"
djangorestframework = "=3.9.1"
requests = "^2.22"
whitenoise = "^4.1"
lxml = "^4.4"
gunicorn = "^19.9"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
12 changes: 0 additions & 12 deletions requirements.txt

This file was deleted.

0 comments on commit c32786b

Please sign in to comment.