476aefeeb0
* refactor(backend): ♻️ cleanup duplicate code in http services * refactor(backend): ♻️ refactor database away from singleton design removed the database single and instead injected the session into a new Database class that is created during each request life-cycle. Now sessions no longer need to be passed into each method on the database All tests pass, but there are likely some hidden breaking changes that were not discovered. * fix venv * disable venv cache * fix install script * bump poetry version * postgres fixes * revert install * fix db initialization for postgres * add postgres to docker * refactor(backend): ♻️ cleanup unused and duplicate code in http services * refactor(backend): remove sessions from arguments * refactor(backend): ♻️ convert units and ingredients to use http service class * test(backend): ✅ add unit and food tests * lint * update tags * re-enable cache * fix missing fraction in db * fix lint Co-authored-by: hay-kot <hay-kot@pm.me>
78 lines
No EOL
1.5 KiB
TOML
78 lines
No EOL
1.5 KiB
TOML
[tool.poetry]
|
|
name = "mealie"
|
|
version = "0.5.2"
|
|
description = "A Recipe Manager"
|
|
authors = ["Hayden <hay-kot@pm.me>"]
|
|
license = "MIT"
|
|
|
|
[tool.poetry.scripts]
|
|
start = "mealie.app:main"
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.9"
|
|
aiofiles = "0.5.0"
|
|
aniso8601 = "7.0.0"
|
|
appdirs = "1.4.4"
|
|
fastapi = "^0.63.0"
|
|
uvicorn = {extras = ["standard"], version = "^0.13.0"}
|
|
APScheduler = "^3.6.3"
|
|
SQLAlchemy = "^1.3.22"
|
|
Jinja2 = "^2.11.2"
|
|
python-dotenv = "^0.15.0"
|
|
python-slugify = "^4.0.1"
|
|
requests = "^2.25.1"
|
|
PyYAML = "^5.3.1"
|
|
extruct = "^0.12.0"
|
|
scrape-schema-recipe = "^0.1.3"
|
|
python-multipart = "^0.0.5"
|
|
fastapi-camelcase = "^1.0.2"
|
|
bcrypt = "^3.2.0"
|
|
python-jose = "^3.3.0"
|
|
passlib = "^1.7.4"
|
|
lxml = "4.6.2"
|
|
Pillow = "^8.2.0"
|
|
pathvalidate = "^2.4.1"
|
|
apprise = "0.9.3"
|
|
recipe-scrapers = "^13.2.7"
|
|
psycopg2-binary = {version = "^2.9.1", optional = true}
|
|
gunicorn = "^20.1.0"
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
pylint = "^2.6.0"
|
|
black = "^20.8b1"
|
|
pytest = "^6.2.1"
|
|
pytest-cov = "^2.11.0"
|
|
mkdocs-material = "^7.0.2"
|
|
flake8 = "^3.9.0"
|
|
coverage = "^5.5"
|
|
pydantic-to-typescript = "^1.0.7"
|
|
rich = "^10.7.0"
|
|
isort = "^5.9.3"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.black]
|
|
line-length = 120
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
line_length = 120
|
|
multi_line_output = 3
|
|
|
|
[tool.pytest.ini_options]
|
|
minversion = "6.0"
|
|
addopts = "-ra -q --cov=mealie"
|
|
python_files = 'test_*'
|
|
python_classes = '*Tests'
|
|
python_functions = 'test_*'
|
|
testpaths = [
|
|
"tests",
|
|
]
|
|
|
|
[tool.coverage.report]
|
|
skip_empty = true
|
|
|
|
[tool.poetry.extras]
|
|
pgsql = ["psycopg2-binary"] |