Skip to content

Commit

Permalink
Merge pull request #4 from sacundim/python-3.9
Browse files Browse the repository at this point in the history
Upgrade to Python 3.9
  • Loading branch information
sacundim authored Jul 15, 2022
2 parents 275ce95 + 028b93a commit 2145f5e
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 103 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM python:3.7-slim AS base
FROM python:3.9-slim AS base

FROM base AS poetry
RUN pip install poetry==1.0.10
RUN pip install poetry==1.1.14


FROM poetry AS requirements
ENV POETRY_VIRTUALENVS_CREATE=false
WORKDIR /covid-19-puerto-rico
COPY pyproject.toml poetry.lock ./
RUN poetry export -f requirements.txt >requirements.txt
RUN poetry export \
--without-hashes \
-f requirements.txt >requirements.txt


FROM requirements AS build
Expand Down
4 changes: 2 additions & 2 deletions build-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#
set -e -o pipefail

PLATFORMS="linux/amd64"
#PLATFORMS="linux/amd64"

# Some day:
#PLATFORMS="linux/amd64,linux/arm64"
PLATFORMS="linux/amd64,linux/arm64"

IMAGE_NAME="${IMAGE_NAME-covid-19-puerto-rico-downloader}"
cd "$(dirname $0)"
Expand Down
138 changes: 41 additions & 97 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hhs-download = 'covid_19_puerto_rico_downloader:hhs_download'
covid19datos-download = 'covid_19_puerto_rico_downloader:covid19datos'

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.9"
requests = "^2.25.1"
boto3 = "^1.17.22"
csv2parquet = "^0.0.9"
Expand Down

0 comments on commit 2145f5e

Please sign in to comment.