Skip to content

Commit

Permalink
Chore/bump deps (#853)
Browse files Browse the repository at this point in the history
* add LDAP dep

* bump extruct and scraper

* allow for disabling auto backup

* v0.5.4 changelog
  • Loading branch information
hay-kot committed Dec 2, 2021
1 parent 591bf9d commit 8154ee5
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 10 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ RUN apt-get update \
build-essential \
libpq-dev \
libwebp-dev \
# LDAP Dependencies
libsasl2-dev libldap2-dev libssl-dev \
gnupg gnupg2 gnupg1 \
debian-keyring \
debian-archive-keyring \
Expand Down
28 changes: 28 additions & 0 deletions docs/docs/changelog/v0.5.4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# v0.5.4 - Bug Fixes

**App Version: v0.5.4**

**Database Version: v0.5.0**

## Breaking Changes

!!! error "Breaking Changes"

None

## What's Changed
* Add support for new languages by @sephrat in https://github.com/hay-kot/mealie/pull/781
* Allow arrow keys to function when SearchDialog is not open by @asymworks in https://github.com/hay-kot/mealie/pull/777
* Use firefox user agent when making requests by @cadamswaite in https://github.com/hay-kot/mealie/pull/780
* Improve the SWAG Community Guide by @BryceStevenWilley in https://github.com/hay-kot/mealie/pull/793
* New Crowdin updates by @hay-kot in https://github.com/hay-kot/mealie/pull/818
* Add LDAP authentication support (v2, onto dev) by @dvdkon in https://github.com/hay-kot/mealie/pull/803
* Auto backup is now disabled by default. Enable it by setting the AUTO_BACKUP_ENABLED env variable to true.


## New Contributors
* @asymworks made their first contribution in https://github.com/hay-kot/mealie/pull/777
* @dvdkon made their first contribution in https://github.com/hay-kot/mealie/pull/803

**Full Changelog**: https://github.com/hay-kot/mealie/compare/v0.5.3...v0.5.4

1 change: 1 addition & 0 deletions docs/docs/documentation/getting-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ services:
| RECIPE_LANDSCAPE_VIEW | True | Default Recipe Settings - Set Landscape View |
| RECIPE_DISABLE_COMMENTS | False | Default Recipe Settings - Disable Comments |
| RECIPE_DISABLE_AMOUNT | False | Default Recipe Settings - Disable Amount |
| AUTO_BACKUP_ENABLED | False | Disable/Enable Mealie's Auto Backup Function |
| API_PORT | 9000 | The port exposed by backend API. **Do not change this if you're running in Docker** |
| API_DOCS | True | Turns on/off access to the API documentation locally. |
| TZ | UTC | Must be set to get correct date/time on the server |
Expand Down
2 changes: 2 additions & 0 deletions mealie/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ def public_db_url(cls, v: Optional[str], values: dict[str, Any]) -> str:
RECIPE_DISABLE_COMMENTS: bool = False
RECIPE_DISABLE_AMOUNT: bool = False

AUTO_BACKUP_ENABLED: bool = False

class Config:
env_file = BASE_DIR.joinpath(".env")
env_file_encoding = "utf-8"
Expand Down
5 changes: 4 additions & 1 deletion mealie/services/backups/exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from jinja2 import Template
from mealie.core import root_logger
from mealie.core.config import app_dirs
from mealie.core.config import app_dirs, settings
from mealie.db.database import db
from mealie.db.db_setup import create_session
from mealie.services.events import create_backup_event
Expand Down Expand Up @@ -153,6 +153,9 @@ def backup_all(


def auto_backup_job():
if not settings.AUTO_BACKUP_ENABLED:
return

for backup in app_dirs.BACKUP_DIR.glob("Auto*.zip"):
backup.unlink()

Expand Down
14 changes: 7 additions & 7 deletions poetry.lock

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

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ python-dotenv = "^0.15.0"
python-slugify = "^4.0.1"
requests = "^2.25.1"
PyYAML = "^5.3.1"
extruct = "^0.12.0"
extruct = "^0.13.0"
python-multipart = "^0.0.5"
fastapi-camelcase = "^1.0.2"
bcrypt = "^3.2.0"
Expand All @@ -32,7 +32,7 @@ lxml = "4.6.2"
Pillow = "^8.2.0"
pathvalidate = "^2.4.1"
apprise = "0.9.3"
recipe-scrapers = "^13.2.7"
recipe-scrapers = "^13.7.0"
psycopg2-binary = {version = "^2.9.1", optional = true}
python-ldap = "^3.3.0"
gunicorn = "^20.1.0"
Expand Down

0 comments on commit 8154ee5

Please sign in to comment.