Skip to content

Commit c0aeb4d

Browse files
committed
Replaced Poetry with Pipenv
1 parent 9152b4b commit c0aeb4d

File tree

6 files changed

+1023
-1465
lines changed

6 files changed

+1023
-1465
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Image for a Python 3 development environment
22
FROM python:3.11-slim
33

4-
# Add any tools that are needed beyond Python 3.9
4+
# Add any tools that are needed beyond Python 3.11
55
RUN apt-get update && \
66
apt-get install -y sudo vim make git zip tree curl wget jq procps net-tools && \
77
apt-get autoremove -y && \
@@ -20,18 +20,13 @@ RUN groupadd --gid $USER_GID $USERNAME \
2020
&& chmod 0440 /etc/sudoers.d/$USERNAME \
2121
&& chown -R $USERNAME:$USERNAME /home/$USERNAME
2222

23-
# Install poetry stand alone
24-
# RUN curl -sSL https://install.python-poetry.org | python3 - && \
25-
# poetry config virtualenvs.create false
26-
2723
# Set up the Python development environment
2824
WORKDIR /app
29-
COPY pyproject.toml poetry.lock ./
30-
RUN python -m pip install -U pip poetry && \
31-
poetry config virtualenvs.create false && \
32-
poetry install
25+
COPY Pipfile Pipfile.lock ./
26+
RUN python -m pip install -U pip pipenv && \
27+
pipenv install --system --dev
3328

34-
ENV PORT 8000
29+
ENV PORT=8000
3530
EXPOSE $PORT
3631

3732
# Enable color terminal for docker exec bash

Pipfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
flask = "==3.1.0"
8+
flask-sqlalchemy = "==3.1.1"
9+
psycopg = {extras = ["binary"], version = "~=3.2.4"}
10+
retry2 = "==0.9.5"
11+
python-dotenv = "==1.0.1"
12+
gunicorn = "==23.0.0"
13+
14+
[dev-packages]
15+
honcho = "~=2.0.0"
16+
pylint = "~=3.3.4"
17+
flake8 = "~=7.1.1"
18+
black = "~=25.1.0"
19+
pytest = "~=8.3.4"
20+
pytest-pspec = "~=0.0.4"
21+
pytest-cov = "~=6.0.0"
22+
factory-boy = "~=3.3.3"
23+
coverage = "~=7.6.12"
24+
httpie = "~=3.2.4"
25+
26+
[requires]
27+
python_version = "3.11"

0 commit comments

Comments
 (0)