[tool.poetry] name = "django_ynh" version = "0.1.5" description = "Glue code to package django projects as yunohost apps." authors = ["JensDiemer "] license = "GPL" readme = "README.md" homepage = "https://github.com/YunoHost-Apps/django_ynh" packages = [ { include = "django_ynh" }, ] [tool.poetry.dependencies] python = ">=3.7,<4.0.0" django = "*" # The follogin extra packages are used for install "django_ynh" as YunoHost app: gunicorn = { version = "*", optional = true } psycopg2-binary = { version = "*", optional = true } django-redis = { version = "*", optional = true } django-axes = { version = "*", optional = true } # https://github.com/jazzband/django-axes [tool.poetry.dev-dependencies] django-axes = "*" # https://github.com/jazzband/django-axes poetry-publish = "*" # https://github.com/jedie/poetry-publish bx_py_utils = "*" tox = "*" pytest = "*" pytest-cov = "*" pytest-django = "*" coveralls = "*" isort = "*" flake8 = "*" flynt = "*" black = "*" pyupgrade = "*" [tool.poetry.extras] ynh = ["gunicorn", "psycopg2-binary", "django-redis", "django-axes"] # install as YunoHost app [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.isort] # https://pycqa.github.io/isort/docs/configuration/config_files/#pyprojecttoml-preferred-format atomic=true line_length=120 case_sensitive=false skip_glob=["*/htmlcov/*","*/migrations/*","*/volumes/*"] multi_line_output=3 include_trailing_comma=true known_first_party=["django_ynh","django_ynh_project","django_ynh_tests"] no_lines_before="LOCALFOLDER" default_section="THIRDPARTY" sections=["FUTURE","STDLIB","THIRDPARTY","FIRSTPARTY","LOCALFOLDER"] lines_after_imports=2 [tool.pytest.ini_options] # https://docs.pytest.org/en/latest/customize.html#pyproject-toml minversion = "6.0" norecursedirs = ".* .git __pycache__ conf coverage* dist htmlcov volumes" # sometimes helpfull "addopts" arguments: # -vv # --verbose # --capture=no # --trace-config # --full-trace # -p no:warnings addopts = """ --import-mode=importlib --reuse-db --nomigrations --cov=. --cov-report term-missing --cov-report html --cov-report xml --no-cov-on-fail --showlocals --doctest-modules --failed-first --last-failed-no-failures all --new-first """ [tool.tox] # https://tox.readthedocs.io/en/latest/example/basic.html#pyproject-toml-tox-legacy-ini legacy_tox_ini = """ [tox] isolated_build = True envlist = py39,py38,py37 skip_missing_interpreters = True [testenv] passenv = * whitelist_externals = pytest commands = pytest --workers auto --tests-per-worker 1 --pyargs django_ynh django_ynh_project """