2023-05-04 16:17:35 +02:00
|
|
|
[tool.poetry]
|
|
|
|
name = "worblehat"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = "Worblehat is a simple library management system written specifically for Programvareverkstedet"
|
|
|
|
authors = []
|
|
|
|
license = "MIT"
|
|
|
|
readme = "README.md"
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-05-04 16:40:30 +02:00
|
|
|
alembic = "^1.9.4"
|
2023-05-04 16:17:35 +02:00
|
|
|
click = "^8.1.3"
|
2023-05-04 16:40:30 +02:00
|
|
|
flask = "^2.2.2"
|
2023-05-04 16:17:35 +02:00
|
|
|
flask-admin = "^1.6.1"
|
|
|
|
flask-sqlalchemy = "^3.0.3"
|
|
|
|
isbnlib = "^3.10.14"
|
2023-05-06 17:18:35 +02:00
|
|
|
python = "^3.11"
|
2023-05-04 16:40:30 +02:00
|
|
|
sqlalchemy = "^2.0.8"
|
2023-05-06 17:48:27 +02:00
|
|
|
psycopg2-binary = "^2.9.6"
|
2023-05-04 16:17:35 +02:00
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
werkzeug = "^2.3.3"
|
2023-05-06 17:48:27 +02:00
|
|
|
poethepoet = "^0.20.0"
|
2023-05-04 16:17:35 +02:00
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
2023-05-12 02:27:26 +02:00
|
|
|
worblehat = "worblehat.main:main"
|
2023-05-04 16:17:35 +02:00
|
|
|
|
2023-05-06 17:48:27 +02:00
|
|
|
[tool.poe.tasks]
|
|
|
|
clean = """
|
|
|
|
rm -rf
|
|
|
|
./**/__pycache__
|
|
|
|
./**/worblehat.sqlite
|
|
|
|
"""
|
|
|
|
|
|
|
|
# Migration related
|
|
|
|
genmigration = "alembic revision --autogenerate -m"
|
|
|
|
migrate = "alembic upgrade head"
|
|
|
|
downmigrate = "alembic downgrade -1"
|
|
|
|
# Be careful with cleanmigrations. If you run migrate a database and then
|
|
|
|
# delete the migration file with this, there will be no easy way of downgrading
|
|
|
|
cleanmigrations = "git clean -f worblehat/models/migrations/versions"
|
|
|
|
|
|
|
|
|
2023-05-04 16:17:35 +02:00
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|