Skip to content
Myr

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 file

Take it

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

lines 1–2why, one step back
1[project]
2name = "Jinja2"

deprecate `__version__` (#2098)David Lordbefore adoption9e49736

line 3why, one step back
3version = "3.2.0.dev"

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

line 4why, one step back
4description = "A very fast and expressive template engine."

Merge branch '3.1.x'David Lordbefore adoptionde61312

line 5why, one step back
5readme = "README.md"

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 6–7why, one step back
6license = "BSD-3-Clause"
7license-files = ["LICENSE.txt"]

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

lines 8–16why, one step back
8maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
9classifiers = [10 "Development Status :: 5 - Production/Stable",11 "Environment :: Web Environment",12 "Intended Audience :: Developers",13 "Operating System :: OS Independent",14 "Programming Language :: Python",15 "Topic :: Internet :: WWW/HTTP :: Dynamic Content",16 "Topic :: Text Processing :: Markup :: HTML",

Merge branch '3.1.x'David Lordbefore adoptionde61312

line 17why, one step back
17 "Typing :: Typed",

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

line 18why, one step back
18]

drop end of life python versions (#2096)David Lordbefore adoption49c48a0

line 19why, one step back
19requires-python = ">=3.10"

bump minimum versions of dependencies (#2097)David Lordbefore adoptiondfe82ad

line 20why, one step back
20dependencies = ["MarkupSafe>=3.0"]

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

lines 21–24why, one step back
21
22[project.urls]23Donate = "https://palletsprojects.com/donate"24Documentation = "https://jinja.palletsprojects.com/"

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

line 25why, one step back
25Changes = "https://jinja.palletsprojects.com/page/changes/"

Merge branch '3.1.x'David Lordbefore adoptionde61312

line 26why, one step back
26Source = "https://github.com/pallets/jinja/"

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

lines 27–29why, one step back
27Chat = "https://discord.gg/pallets"
2829[project.optional-dependencies]

bump minimum versions of dependencies (#2097)David Lordbefore adoptiondfe82ad

line 30why, one step back
30i18n = ["Babel>=2.17"]

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

line 31why, one step back
31

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 32–62why, one step back
32[dependency-groups]
33dev = [34 "ruff",35 "tox",36 "tox-uv",37]38docs = [39 "pallets-sphinx-themes",40 "sphinx",41 "sphinxcontrib-log-cabinet",42]43docs-auto = [44 "sphinx-autobuild",45]46gha-update = [47 "gha-update ; python_full_version >= '3.12'",48]49pre-commit = [50 "pre-commit",51 "pre-commit-uv",52]53tests = [54 "pytest",55 "pytest-timeout",56 "trio"57]58typing = [59 "mypy",60 "pyright",61 "pytest",62]

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

lines 63–64why, one step back
63
64[build-system]

switch to flit build backend (#1863)David Lordbefore adoption534c9e1

lines 65–66why, one step back
65requires = ["flit_core<4"]
66build-backend = "flit_core.buildapi"

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

line 67why, one step back
67

switch to flit build backend (#1863)David Lordbefore adoption534c9e1

lines 68–75why, one step back
68[tool.flit.module]
69name = "jinja2"7071[tool.flit.sdist]72include = [73 "docs/",74 "examples/",75 "tests/",

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 76–77why, one step back
76 "CHANGES.rst",
77 "uv.lock"

switch to flit build backend (#1863)David Lordbefore adoption534c9e1

lines 78–81why, one step back
78]
79exclude = [80 "docs/_build/",81]

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

line 82why, one step back
82

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 83–85why, one step back
83[tool.uv]
84default-groups = ["dev", "pre-commit", "tests", "typing"]85

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

lines 86–87why, one step back
86[tool.pytest.ini_options]
87testpaths = ["tests"]

Merge branch '3.1.x'David Lordbefore adoption81a2384

lines 88–90why, one step back
88filterwarnings = [
89 "error",90]

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

lines 91–98why, one step back
91
92[tool.coverage.run]93branch = true94source = ["jinja2", "tests"]9596[tool.coverage.paths]97source = ["src", "*/site-packages"]98

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 99–105why, one step back
99[tool.coverage.report]
100exclude_also = [101 "if t.TYPE_CHECKING",102 "raise NotImplementedError",103 ": \\.{3}",104]105

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

line 106why, one step back
106[tool.mypy]

drop end of life python versions (#2096)David Lordbefore adoption49c48a0

line 107why, one step back
107python_version = "3.10"

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

line 108why, one step back
108files = ["src"]

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

lines 109–112why, one step back
109show_error_codes = true
110pretty = true111strict = true112

Merge branch '3.1.x'David Lordbefore adoptionde61312

line 113why, one step back
113[tool.pyright]

drop end of life python versions (#2096)David Lordbefore adoption49c48a0

line 114why, one step back
114pythonVersion = "3.10"

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 115–116why, one step back
115include = ["src"]
116typeCheckingMode = "standard"

Merge branch '3.1.x'David Lordbefore adoptionde61312

lines 117–131why, one step back
117
118[tool.ruff]119src = ["src"]120fix = true121show-fixes = true122output-format = "full"123124[tool.ruff.lint]125select = [126 "B", # flake8-bugbear127 "E", # pycodestyle error128 "F", # pyflakes129 "I", # isort130 "UP", # pyupgrade131 "W", # pycodestyle warning

switch to pyproject.toml (#1793)David Lordbefore adoption05a5f81

line 132why, one step back
132]

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 133–135why, one step back
133ignore = [
134 "UP038", # keep isinstance tuple135]

Merge branch '3.1.x'David Lordbefore adoptionde61312

lines 136–139why, one step back
136
137[tool.ruff.lint.isort]138force-single-line = true139order-by-type = false

Merge branch '3.1.x'David Lordbefore adoption7f0fc0a

lines 140–144why, one step back
140
141[tool.gha-update]142tag-only = [143 "slsa-framework/slsa-github-generator",144]

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 145–147why, one step back
145
146[tool.tox]147env_list = [

drop end of life python versions (#2096)David Lordbefore adoption49c48a0

line 148why, one step back
148 "py3.13", "py3.12", "py3.11", "py3.10",

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 149–211why, one step back
149 "pypy3.11",
150 "style",151 "typing",152 "docs",153]154155[tool.tox.env_run_base]156description = "pytest on latest dependency versions"157runner = "uv-venv-lock-runner"158package = "wheel"159wheel_build_env = ".pkg"160constrain_package_deps = true161use_frozen_constraints = true162dependency_groups = ["tests"]163commands = [[164 "pytest", "-v", "--tb=short", "--basetemp={env_tmp_dir}",165 {replace = "posargs", default = [], extend = true},166]]167168[tool.tox.env.style]169description = "run all pre-commit hooks on all files"170dependency_groups = ["pre-commit"]171skip_install = true172commands = [["pre-commit", "run", "--all-files"]]173174[tool.tox.env.typing]175description = "run static type checkers"176dependency_groups = ["typing"]177commands = [178 ["mypy"],179]180181[tool.tox.env.docs]182description = "build docs"183dependency_groups = ["docs"]184commands = [["sphinx-build", "-E", "-W", "-b", "dirhtml", "docs", "docs/_build/dirhtml"]]185186[tool.tox.env.docs-auto]187description = "continuously rebuild docs and start a local server"188dependency_groups = ["docs", "docs-auto"]189commands = [["sphinx-autobuild", "-W", "-b", "dirhtml", "--watch", "src", "docs", "docs/_build/dirhtml"]]190191[tool.tox.env.update-actions]192description = "update GitHub Actions pins"193labels = ["update"]194dependency_groups = ["gha-update"]195skip_install = true196commands = [["gha-update"]]197198[tool.tox.env.update-pre_commit]199description = "update pre-commit pins"200labels = ["update"]201dependency_groups = ["pre-commit"]202skip_install = true203commands = [["pre-commit", "autoupdate", "--freeze", "-j4"]]204205[tool.tox.env.update-requirements]206description = "update uv lock"207labels = ["update"]208dependency_groups = []209no_default_groups = true210skip_install = true211commands = [["uv", "lock", {replace = "posargs", default = ["-U"], extend = true}]]