pyproject.toml
This file
Path
pyproject.toml
211 lines · 4.5 KiB · TOML
Last changed by
deprecate `__version__` (#2098)David Lordbefore adoption9e49736
History of this fileTake it
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212[project]name = "Jinja2"version = "3.2.0.dev"description = "A very fast and expressive template engine."readme = "README.md"license = "BSD-3-Clause"license-files = ["LICENSE.txt"]maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Text Processing :: Markup :: HTML", "Typing :: Typed",]requires-python = ">=3.10"dependencies = ["MarkupSafe>=3.0"]
[project.urls]Donate = "https://palletsprojects.com/donate"Documentation = "https://jinja.palletsprojects.com/"Changes = "https://jinja.palletsprojects.com/page/changes/"Source = "https://github.com/pallets/jinja/"Chat = "https://discord.gg/pallets"
[project.optional-dependencies]i18n = ["Babel>=2.17"]
[dependency-groups]dev = [ "ruff", "tox", "tox-uv",]docs = [ "pallets-sphinx-themes", "sphinx", "sphinxcontrib-log-cabinet",]docs-auto = [ "sphinx-autobuild",]gha-update = [ "gha-update ; python_full_version >= '3.12'",]pre-commit = [ "pre-commit", "pre-commit-uv",]tests = [ "pytest", "pytest-timeout", "trio"]typing = [ "mypy", "pyright", "pytest",]
[build-system]requires = ["flit_core<4"]build-backend = "flit_core.buildapi"
[tool.flit.module]name = "jinja2"
[tool.flit.sdist]include = [ "docs/", "examples/", "tests/", "CHANGES.rst", "uv.lock"]exclude = [ "docs/_build/",]
[tool.uv]default-groups = ["dev", "pre-commit", "tests", "typing"]
[tool.pytest.ini_options]testpaths = ["tests"]filterwarnings = [ "error",]
[tool.coverage.run]branch = truesource = ["jinja2", "tests"]
[tool.coverage.paths]source = ["src", "*/site-packages"]
[tool.coverage.report]exclude_also = [ "if t.TYPE_CHECKING", "raise NotImplementedError", ": \\.{3}",]
[tool.mypy]python_version = "3.10"files = ["src"]show_error_codes = truepretty = truestrict = true
[tool.pyright]pythonVersion = "3.10"include = ["src"]typeCheckingMode = "standard"
[tool.ruff]src = ["src"]fix = trueshow-fixes = trueoutput-format = "full"
[tool.ruff.lint]select = [ "B", # flake8-bugbear "E", # pycodestyle error "F", # pyflakes "I", # isort "UP", # pyupgrade "W", # pycodestyle warning]ignore = [ "UP038", # keep isinstance tuple]
[tool.ruff.lint.isort]force-single-line = trueorder-by-type = false
[tool.gha-update]tag-only = [ "slsa-framework/slsa-github-generator",]
[tool.tox]env_list = [ "py3.13", "py3.12", "py3.11", "py3.10", "pypy3.11", "style", "typing", "docs",]
[tool.tox.env_run_base]description = "pytest on latest dependency versions"runner = "uv-venv-lock-runner"package = "wheel"wheel_build_env = ".pkg"constrain_package_deps = trueuse_frozen_constraints = truedependency_groups = ["tests"]commands = [[ "pytest", "-v", "--tb=short", "--basetemp={env_tmp_dir}", {replace = "posargs", default = [], extend = true},]]
[tool.tox.env.style]description = "run all pre-commit hooks on all files"dependency_groups = ["pre-commit"]skip_install = truecommands = [["pre-commit", "run", "--all-files"]]
[tool.tox.env.typing]description = "run static type checkers"dependency_groups = ["typing"]commands = [ ["mypy"],]
[tool.tox.env.docs]description = "build docs"dependency_groups = ["docs"]commands = [["sphinx-build", "-E", "-W", "-b", "dirhtml", "docs", "docs/_build/dirhtml"]]
[tool.tox.env.docs-auto]description = "continuously rebuild docs and start a local server"dependency_groups = ["docs", "docs-auto"]commands = [["sphinx-autobuild", "-W", "-b", "dirhtml", "--watch", "src", "docs", "docs/_build/dirhtml"]]
[tool.tox.env.update-actions]description = "update GitHub Actions pins"labels = ["update"]dependency_groups = ["gha-update"]skip_install = truecommands = [["gha-update"]]
[tool.tox.env.update-pre_commit]description = "update pre-commit pins"labels = ["update"]dependency_groups = ["pre-commit"]skip_install = truecommands = [["pre-commit", "autoupdate", "--freeze", "-j4"]]
[tool.tox.env.update-requirements]description = "update uv lock"labels = ["update"]dependency_groups = []no_default_groups = trueskip_install = truecommands = [["uv", "lock", {replace = "posargs", default = ["-U"], extend = true}]]