[project] name = "jwebmail" requires-python = "~= 3.11" authors = [ {name = "Jannis M. Hoffmann", email = "jannis@fehcom.de"} ] description = "JWebmail is a Webmail client using maildir format and qmail-authuser as model in MVC terminology" dynamic = ["version"] dependencies = [ "Flask", "Flask-Babel", "Flask-Login", "Flask-WTF", "email-validator", "varlink", ] [project.optional-dependencies] redis = ["redis"] mysql = ["mysql-connector-python"] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch] [tool.hatch.version] path = "src/jwebmail/__init__.py" [tool.hatch.envs.dev] dependencies = [ "isort", "black", "pip-tools", "click", ] [tool.hatch.envs.dev.scripts] serve = 'env PATH="$PATH:$PWD/script/" flask --app src/jwebmail --debug run --extra-files src/jwebmail/translations/de/LC_MESSAGES/messages.mo' server = "env JWEBMAIL_CONFIG=../../jwebmail.toml flask --app src/jwebmail run" tr-compile = "pybabel compile -d src/jwebmail/translations/" tr-extract = "pybabel extract -F babel.cfg -o messages.pot -k lazy_gettext src/ && pybabel update -i messages.pot -d src/jwebmail/translations/" [tool.hatch.build.targets.wheel] ignore-vcs = true sources = ["src"] include = [ "src/jwebmail/*.py", "src/jwebmail/model/*.py", "src/jwebmail/templates/*.html", "src/jwebmail/static/src/*.js", "src/jwebmail/static/css/*.css", "src/jwebmail/translations/*/LC_MESSAGES/messages.mo", ] [tool.isort] profile = "black" [tool.pip-tools] generate-hashes = true strip-extras = true