Switch dependency management over to Poetry so I can use sensible lockfiles.

This commit is contained in:
Ben Rog-Wilhelm 2022-10-15 12:39:06 -05:00 committed by Ben Rog-Wilhelm
parent 4e2047624b
commit 2dd31a86a9
4 changed files with 1162 additions and 36 deletions

View file

@ -1,14 +1,17 @@
FROM ubuntu:20.04
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt -y upgrade && apt install -y supervisor python3-pip ffmpeg
# python3-cachecontrol is currently required due to a dependency error in ubuntu 22.04's python3-poetry package
RUN apt update && apt -y upgrade && apt install -y supervisor python3-poetry ffmpeg python3-cachecontrol
COPY supervisord.conf /etc/supervisord.conf
COPY requirements.txt /etc/requirements.txt
RUN pip3 install -r /etc/requirements.txt
# we'll end up blowing away this directory via docker-compose
WORKDIR /service
COPY pyproject.toml .
COPY poetry.lock .
RUN poetry config virtualenvs.create false && poetry install
RUN mkdir /images && mkdir /songs

1108
poetry.lock generated Normal file

File diff suppressed because it is too large Load diff

46
pyproject.toml Normal file
View file

@ -0,0 +1,46 @@
[tool.poetry]
name = "rdrama"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
license = "AGPL"
[tool.poetry.dependencies]
python = "^3.10"
beautifulsoup4 = "*"
bleach = "4.1.0"
Flask = "*"
Flask-Caching = "*"
Flask-Compress = "*"
Flask-Limiter = "*"
Flask-Mail = "*"
Flask-Migrate = "*"
Flask-Socketio = "*"
flask_profiler = "*"
gevent = "*"
gevent-websocket = "*"
greenlet = "*"
gunicorn = "*"
lxml = "*"
mistletoe = "*"
matplotlib = "*"
Pillow = "*"
psutil = "*"
pyotp = "*"
qrcode = "*"
redis = "*"
requests = "*"
SQLAlchemy = "*"
user-agents = "*"
psycopg2-binary = "*"
pusher_push_notifications = "*"
youtube-dl = "*"
yattag = "*"
webptools = "*"
pytest = "*"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

View file

@ -1,31 +0,0 @@
beautifulsoup4
bleach==4.1.0
Flask
Flask-Caching
Flask-Compress
Flask-Limiter
Flask-Mail
Flask-Migrate
Flask-Socketio
flask_profiler
gevent
gevent-websocket
greenlet
gunicorn
lxml
mistletoe
matplotlib
Pillow
psutil
pyotp
qrcode
redis
requests
SQLAlchemy
user-agents
psycopg2-binary
pusher_push_notifications
youtube-dl
yattag
webptools
pytest