Skip to content

Commit 256cf03

Browse files
authored
poetry update (#40)
1 parent 748a5b2 commit 256cf03

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

Dockerfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
1+
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
22

3-
# Install Poetry
4-
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python && \
5-
cd /usr/local/bin && \
6-
ln -s /opt/poetry/bin/poetry && \
7-
poetry config virtualenvs.create false
3+
ENV PYTHONUNBUFFERED=1 \
4+
POETRY_HOME="/opt/poetry" \
5+
POETRY_NO_INTERACTION=1 \
6+
POETRY_VIRTUALENVS_CREATE=false \
7+
BUILD_PATH="/opt/build" \
8+
PYSETUP_PATH="/opt/project" \
9+
VENV_PATH="/opt/project/.venv"
810

9-
COPY ./pyproject.toml /app/
11+
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"
12+
13+
RUN curl -sSL https://install.python-poetry.org | python3 -
1014

11-
RUN poetry install --no-dev
15+
COPY ./pyproject.toml /app/
1216

13-
COPY ./app /app
17+
RUN poetry install --without dev
1418

15-
# Send print & log statements directly to stdout
16-
ENV PYTHONUNBUFFERED 1
19+
COPY ./app /app

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ name = "setae-api"
33
version = "0.3.0"
44
description = "API middleware for FOLIO"
55
authors = ["Nick Cappadona <[email protected]>"]
6+
package-mode = false
67

78
[tool.poetry.dependencies]
8-
python = "^3.8"
9+
python = "^3.9"
910
fastapi = "^0.88.0"
1011
json2xml = "^3.5.0"
1112
requests = "^2.24.0"
@@ -14,11 +15,11 @@ python-dotenv = "^0.14.0"
1415
lxml = "^4.6.2"
1516
httpcore = "0.15.0"
1617

17-
[tool.poetry.dev-dependencies]
18+
[tool.poetry.group.dev.dependencies]
1819
mypy = "^0.812"
1920
flake8 = "^3.9.2"
2021
black = "^21.5b1"
2122

2223
[build-system]
2324
requires = ["poetry-core>=1.0.0"]
24-
build-backend = "poetry.core.masonry.api"
25+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)