[project] name = "jwebmail" requires-python = "~= 3.9" authors = [ {name = "Jannis M. Hoffmann", email = "jannis@fehcom.de"} ] description = "" dynamic = ["version"] dependencies = [ "Flask", "Flask-Babel", "Flask-Login", "Flask-WTF", "flask-paginate", "email-validator", "redis", "protobuf", ] [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' 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/" pb-generate = "protoc -I src/jwebmail/model --python_out=src/jwebmail/model/ jwebmail.proto" [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