Compare commits

...

2 commits

Author SHA1 Message Date
88575765b8 Fix build issues in Dockerfile 2022-07-27 23:09:27 -04:00
dfe8f78038 Remove aiosqlite dependency 2022-07-27 23:02:57 -04:00
3 changed files with 7 additions and 20 deletions

View file

@ -9,12 +9,15 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_NO_CACHE_DIR=1 \
POETRY_VERSION=1.1.4
RUN apk add --no-cache gcc libffi-dev musl-dev openssl-dev rust cargo
RUN apk add --no-cache build-base libffi-dev musl-dev openssl-dev rust cargo yajl-dev
RUN pip install "poetry==$POETRY_VERSION"
RUN python -m venv /venv
COPY pyproject.toml poetry.lock ./
RUN poetry export -f requirements.txt | /venv/bin/pip install -r /dev/stdin
RUN poetry export \
--format requirements.txt \
--without-hashes \
| /venv/bin/pip install -r /dev/stdin
COPY . .
RUN poetry build && /venv/bin/pip install dist/*.whl

19
poetry.lock generated
View file

@ -1,14 +1,3 @@
[[package]]
name = "aiosqlite"
version = "0.17.0"
description = "asyncio bridge to the standard sqlite3 module"
category = "main"
optional = false
python-versions = ">=3.6"
[package.dependencies]
typing_extensions = ">=3.7.2"
[[package]]
name = "anyio"
version = "3.6.1"
@ -369,7 +358,7 @@ telegram = ["requests"]
name = "typing-extensions"
version = "4.3.0"
description = "Backported and Experimental Type Hints for Python 3.7+"
category = "main"
category = "dev"
optional = false
python-versions = ">=3.7"
@ -384,13 +373,9 @@ python-versions = ">=2"
[metadata]
lock-version = "1.1"
python-versions = "^3.9"
content-hash = "b9d44033776233d12ed64832238a897975a9f08cbd4df3ca445f1f7dac3003f8"
content-hash = "18ad6c898128ac8185c73e9471a3b665f51b72048c225ca7f4325402f4f80b17"
[metadata.files]
aiosqlite = [
{file = "aiosqlite-0.17.0-py3-none-any.whl", hash = "sha256:6c49dc6d3405929b1d08eeccc72306d3677503cc5e5e43771efc1e00232e8231"},
{file = "aiosqlite-0.17.0.tar.gz", hash = "sha256:f0e6acc24bc4864149267ac82fb46dfb3be4455f99fe21df82609cc6e6baee51"},
]
anyio = []
atomicwrites = []
attrs = [

View file

@ -7,7 +7,6 @@ authors = ["Correl Roush <correl@gmail.com>"]
[tool.poetry.dependencies]
python = "^3.9"
tornado = "^6.1"
aiosqlite = "^0.17.0"
click = "^8.0.1"
humanize = "^3.10.0"
httpx = "^0.18.2"