Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

272 lines · 6.3 KiB · TOML

Last changed by

drop support for Python 3.10 (#6168)David Lordbefore adoption728c5e4

History of this file

Take it

The walk stopped after 200 commits: lines older than 73739a2 point at it.

Merge branch '2.2.x'David Lordbefore adoption73739a2

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

start version 3.2.0David Lordbefore adoption4fec712

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

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 4why, one step back
4description = "A simple framework for building complex web applications."

Merge branch '3.0.x'David Lordbefore adoption6ab71ed

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

Merge branch 'stable'David Lordbefore adoptionbc14349

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

Merge branch '2.2.x'David Lordbefore adoption73739a2

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

Merge branch '3.0.x'David Lordbefore adoption6ab71ed

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

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 21why, one step back
21]

drop support for Python 3.10 (#6168)David Lordbefore adoption728c5e4

line 22why, one step back
22requires-python = ">=3.11"

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 23why, one step back
23dependencies = [

Merge branch 'stable'David Lordbefore adoptionbc14349

line 24why, one step back
24 "blinker>=1.9.0",

Merge pull request #5082 from pallets/minimum-requirementsDavid Lordbefore adoptioneb33b8c

line 25why, one step back
25 "click>=8.1.3",

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 26–29why, one step back
26 "itsdangerous>=2.2.0",
27 "jinja2>=3.1.2",28 "markupsafe>=2.1.1",29 "werkzeug>=3.1.0",

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 30–31why, one step back
30]
31

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 32–43why, one step back
32[project.optional-dependencies]
33async = ["asgiref>=3.2"]34dotenv = ["python-dotenv"]3536[dependency-groups]37dev = [38 "ruff",39 "tox",40 "tox-uv",41]42docs = [43 "pallets-sphinx-themes",

Merge branch 'stable'David Lordbefore adoptioneb58d86

line 44why, one step back
44 "sphinx<9",

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 45–73why, one step back
45 "sphinx-tabs",
46 "sphinxcontrib-log-cabinet",47]48docs-auto = [49 "sphinx-autobuild",50]51gha-update = [52 "gha-update ; python_full_version >= '3.12'",53]54pre-commit = [55 "pre-commit",56 "pre-commit-uv",57]58tests = [59 "asgiref",60 "pytest",61 "python-dotenv",62]63typing = [64 "asgiref",65 "cryptography",66 "mypy",67 "pyright",68 "pytest",69 "python-dotenv",70 "types-contextvars",71 "types-dataclasses",72]73

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 74–76why, one step back
74[project.urls]
75Donate = "https://palletsprojects.com/donate"76Documentation = "https://flask.palletsprojects.com/"

Merge branch 'stable'David Lordbefore adoptionbc14349

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

Merge branch '3.0.x'David Lordbefore adoption6ab71ed

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

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 79–84why, one step back
79Chat = "https://discord.gg/pallets"
8081[project.scripts]82flask = "flask.cli:main"8384[build-system]

Merge branch 'stable'David Lordbefore adoption23df07d

line 85why, one step back
85requires = ["flit_core>=3.11,<4"]

Merge branch '2.3.x'David Lordbefore adoption15a0d4a

line 86why, one step back
86build-backend = "flit_core.buildapi"

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 87why, one step back
87

Merge branch '2.3.x'David Lordbefore adoption15a0d4a

lines 88–96why, one step back
88[tool.flit.module]
89name = "flask"9091[tool.flit.sdist]92include = [93 "docs/",94 "examples/",95 "tests/",96 "CHANGES.rst",

Merge branch 'stable'David Lordbefore adoptionbc14349

line 97why, one step back
97 "uv.lock"

Merge branch '2.3.x'David Lordbefore adoption15a0d4a

lines 98–101why, one step back
98]
99exclude = [100 "docs/_build/",101]

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 102why, one step back
102

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 103–105why, one step back
103[tool.uv]
104default-groups = ["dev", "pre-commit", "tests", "typing"]105

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 106–118why, one step back
106[tool.pytest.ini_options]
107testpaths = ["tests"]108filterwarnings = [109 "error",110]111112[tool.coverage.run]113branch = true114source = ["flask", "tests"]115116[tool.coverage.paths]117source = ["src", "*/site-packages"]118

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 119–125why, one step back
119[tool.coverage.report]
120exclude_also = [121 "if t.TYPE_CHECKING",122 "raise NotImplementedError",123 ": \\.{3}",124]125

Merge branch '2.2.x'David Lordbefore adoption73739a2

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

drop support for Python 3.10 (#6168)David Lordbefore adoption728c5e4

line 127why, one step back
127python_version = "3.11"

Merge branch 'stable'David Lordbefore adoptionbc14349

line 128why, one step back
128files = ["src", "tests/type_check"]

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 129–130why, one step back
129show_error_codes = true
130pretty = true

Merge branch '3.0.x'David Lordbefore adoption4df377c

line 131why, one step back
131strict = true

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 132–140why, one step back
132
133[[tool.mypy.overrides]]134module = [135 "asgiref.*",136 "dotenv.*",137 "cryptography.*",138 "importlib_metadata",139]140ignore_missing_imports = true

use ruff linter and formatter (#5331)David Lordbefore adoption9a12f34

lines 141–145why, one step back
141
142[tool.ruff]143src = ["src"]144fix = true145show-fixes = true

Merge branch '3.0.x'David Lordbefore adoption6ab71ed

line 146why, one step back
146output-format = "full"

use ruff linter and formatter (#5331)David Lordbefore adoption9a12f34

lines 147–160why, one step back
147
148[tool.ruff.lint]149select = [150 "B", # flake8-bugbear151 "E", # pycodestyle error152 "F", # pyflakes153 "I", # isort154 "UP", # pyupgrade155 "W", # pycodestyle warning156]157158[tool.ruff.lint.isort]159force-single-line = true160order-by-type = false

Merge branch '3.0.x'David Lordbefore adoption4e6384d

line 161why, one step back
161

Merge branch 'stable'David Lordbefore adoption5880bef

lines 162–164why, one step back
162[tool.codespell]
163ignore-words-list = "te"164

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 165–166why, one step back
165[tool.tox]
166env_list = [

Merge branch 'stable'David Lordbefore adoption6a2f545

line 167why, one step back
167 "py3.15",

Merge branch 'stable'David Lordbefore adoptioneb58d86

line 168why, one step back
168 "py3.14", "py3.14t",

drop support for Python 3.10 (#6168)David Lordbefore adoption728c5e4

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

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 170–192why, one step back
170 "pypy3.11",
171 "tests-min", "tests-dev",172 "style",173 "typing",174 "docs",175]176177[tool.tox.env_run_base]178description = "pytest on latest dependency versions"179runner = "uv-venv-lock-runner"180package = "wheel"181wheel_build_env = ".pkg"182constrain_package_deps = true183use_frozen_constraints = true184dependency_groups = ["tests"]185env_tmp_dir = "{toxworkdir}/tmp/{envname}"186commands = [[187 "pytest", "-v", "--tb=short", "--basetemp={env_tmp_dir}",188 {replace = "posargs", default = [], extend = true},189]]190191[tool.tox.env.tests-min]192description = "pytest on minimum dependency versions"

Merge branch 'stable'David Lordbefore adoption218880c

line 193why, one step back
193base_python = ["3.14"]

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 194–211why, one step back
194commands = [
195 [196 "uv", "pip", "install",197 "blinker==1.9.0",198 "click==8.1.3",199 "itsdangerous==2.2.0",200 "jinja2==3.1.2",201 "markupsafe==2.1.1",202 "werkzeug==3.1.0",203 ],204 [205 "pytest", "-v", "--tb=short", "--basetemp={env_tmp_dir}",206 {replace = "posargs", default = [], extend = true},207 ],208]209210[tool.tox.env.tests-dev]211description = "pytest on development dependency versions (git main branch)"

drop support for Python 3.10 (#6168)David Lordbefore adoption728c5e4

line 212why, one step back
212base_python = ["3.11"]

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 213–272why, one step back
213commands = [
214 [215 "uv", "pip", "install",216 "https://github.com/pallets-eco/blinker/archive/refs/heads/main.tar.gz",217 "https://github.com/pallets/click/archive/refs/heads/main.tar.gz",218 "https://github.com/pallets/itsdangerous/archive/refs/heads/main.tar.gz",219 "https://github.com/pallets/jinja/archive/refs/heads/main.tar.gz",220 "https://github.com/pallets/markupsafe/archive/refs/heads/main.tar.gz",221 "https://github.com/pallets/werkzeug/archive/refs/heads/main.tar.gz",222 ],223 [224 "pytest", "-v", "--tb=short", "--basetemp={env_tmp_dir}",225 {replace = "posargs", default = [], extend = true},226 ],227]228229[tool.tox.env.style]230description = "run all pre-commit hooks on all files"231dependency_groups = ["pre-commit"]232skip_install = true233commands = [["pre-commit", "run", "--all-files"]]234235[tool.tox.env.typing]236description = "run static type checkers"237dependency_groups = ["typing"]238commands = [239 ["mypy"],240]241242[tool.tox.env.docs]243description = "build docs"244dependency_groups = ["docs"]245commands = [["sphinx-build", "-E", "-W", "-b", "dirhtml", "docs", "docs/_build/dirhtml"]]246247[tool.tox.env.docs-auto]248description = "continuously rebuild docs and start a local server"249dependency_groups = ["docs", "docs-auto"]250commands = [["sphinx-autobuild", "-W", "-b", "dirhtml", "--watch", "src", "docs", "docs/_build/dirhtml"]]251252[tool.tox.env.update-actions]253description = "update GitHub Actions pins"254labels = ["update"]255dependency_groups = ["gha-update"]256skip_install = true257commands = [["gha-update"]]258259[tool.tox.env.update-pre_commit]260description = "update pre-commit pins"261labels = ["update"]262dependency_groups = ["pre-commit"]263skip_install = true264commands = [["pre-commit", "autoupdate", "--freeze", "-j4"]]265266[tool.tox.env.update-requirements]267description = "update uv lock"268labels = ["update"]269dependency_groups = []270no_default_groups = true271skip_install = true272commands = [["uv", "lock", {replace = "posargs", default = ["-U"], extend = true}]]