Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

207 lines · 4.4 KiB · TOML

Last changed by

Bump version to 8.3.dev (#3146)Rowlando13before adoption934cba0

History of this file

Take it

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

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

Bump version to 8.3.dev (#3146)Rowlando13before adoption934cba0

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

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 4why, one step back
4description = "Composable command line interface toolkit"

Merge branch '8.1.x'David Lordbefore adoption73cfe12

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

Release version 8.2.0 (#2889)David Lordbefore adoption041aa81

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

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 8–13why, one step back
8maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
9classifiers = [10 "Development Status :: 5 - Production/Stable",11 "Intended Audience :: Developers",12 "Operating System :: OS Independent",13 "Programming Language :: Python",

Merge branch '8.1.x'David Lordbefore adoption73cfe12

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

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 15why, one step back
15]

drop end of life python versions (#2893)David Lordbefore adoption498f882

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

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 17–23why, one step back
17dependencies = [
18 "colorama; platform_system == 'Windows'",19]2021[project.urls]22Donate = "https://palletsprojects.com/donate"23Documentation = "https://click.palletsprojects.com/"

use uv (#2918)Rowlando13before adoption2e1c742

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

Merge branch '8.1.x'David Lordbefore adoption73cfe12

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

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 26–27why, one step back
26Chat = "https://discord.gg/pallets"
27

use uv (#2918)Rowlando13before adoption2e1c742

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

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 60why, one step back
60[build-system]

Require flit-core v3.11+ to ensure license metadata in the distribution (#3070)Rowlando13before adoption1827707

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

switch to flit build backend (#2543)David Lordbefore adoption3fcf338

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

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 63why, one step back
63

switch to flit build backend (#2543)David Lordbefore adoption3fcf338

lines 64–71why, one step back
64[tool.flit.module]
65name = "click"6667[tool.flit.sdist]68include = [69 "docs/",70 "tests/",71 "CHANGES.rst",

use uv (#2918)Rowlando13before adoption2e1c742

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

switch to flit build backend (#2543)David Lordbefore adoption3fcf338

lines 73–76why, one step back
73]
74exclude = [75 "docs/_build/",76]

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

line 77why, one step back
77

use uv (#2918)Rowlando13before adoption2e1c742

lines 78–80why, one step back
78[tool.uv]
79default-groups = ["dev", "pre-commit", "tests", "typing"]80

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

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

Merge branch '8.1.x'David Lordbefore adoption73cfe12

lines 83–85why, one step back
83filterwarnings = [
84 "error",85]

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 86–93why, one step back
86
87[tool.coverage.run]88branch = true89source = ["click", "tests"]9091[tool.coverage.paths]92source = ["src", "*/site-packages"]93

use uv (#2918)Rowlando13before adoption2e1c742

lines 94–100why, one step back
94[tool.coverage.report]
95exclude_also = [96 "if t.TYPE_CHECKING",97 "raise NotImplementedError",98 ": \\.{3}",99]100

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

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

drop end of life python versions (#2893)David Lordbefore adoption498f882

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

use uv (#2918)Rowlando13before adoption2e1c742

line 103why, one step back
103files = ["src", "tests/typing"]

switch to pyproject.toml (#2438)David Lordbefore adoption347529d

lines 104–112why, one step back
104show_error_codes = true
105pretty = true106strict = true107108[[tool.mypy.overrides]]109module = [110 "colorama.*",111]112ignore_missing_imports = true

use ruff lint and format (#2658)David Lordbefore adoption1a3baf7

line 113why, one step back
113

Merge branch '8.1.x'David Lordbefore adoption73cfe12

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

drop end of life python versions (#2893)David Lordbefore adoption498f882

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

use uv (#2918)Rowlando13before adoption2e1c742

line 116why, one step back
116include = ["src", "tests/typing"]

Merge branch '8.1.x'David Lordbefore adoption73cfe12

lines 117–118why, one step back
117typeCheckingMode = "basic"
118

use ruff lint and format (#2658)David Lordbefore adoption1a3baf7

lines 119–123why, one step back
119[tool.ruff]
120extend-exclude = ["examples/"]121src = ["src"]122fix = true123show-fixes = true

update dev dependenciesDavid Lordbefore adoption15959d9

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

use ruff lint and format (#2658)David Lordbefore adoption1a3baf7

lines 125–133why, one step back
125
126[tool.ruff.lint]127select = [128 "B", # flake8-bugbear129 "E", # pycodestyle error130 "F", # pyflakes131 "I", # isort132 "UP", # pyupgrade133 "W", # pycodestyle warning

drop end of life python versions (#2893)David Lordbefore adoption498f882

line 134why, one step back
134]

use ruff lint and format (#2658)David Lordbefore adoption1a3baf7

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

Merge branch '8.1.x'David Lordbefore adoption99015e1

line 139why, one step back
139

use uv (#2918)Rowlando13before adoption2e1c742

lines 140–141why, one step back
140[tool.tox]
141env_list = [

Add python 3.14 to test suite. (#3116)Rowlando13before adoption46c9b0b

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

Add latest free threaded python to tox and ci. (#3119)Rowlando13before adoption6707116

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

use uv (#2918)Rowlando13before adoption2e1c742

lines 144–173why, one step back
144 "pypy3.11",
145 "style",146 "typing",147 "docs",148]149150[tool.tox.env_run_base]151description = "pytest on latest dependency versions"152runner = "uv-venv-lock-runner"153package = "wheel"154wheel_build_env = ".pkg"155constrain_package_deps = true156use_frozen_constraints = true157dependency_groups = ["tests"]158commands = [[159 "pytest", "-v", "--tb=short", "--basetemp={env_tmp_dir}",160 {replace = "posargs", default = [], extend = true},161]]162163[tool.tox.env.style]164description = "run all pre-commit hooks on all files"165dependency_groups = ["pre-commit"]166skip_install = true167commands = [["pre-commit", "run", "--all-files"]]168169[tool.tox.env.typing]170description = "run static type checkers"171dependency_groups = ["typing"]172commands = [173 ["mypy"],

Make `uv run --all-extras pyright --verifytypes click` pass (#3072)Rowlando13before adoptione27b307

line 174why, one step back
174 ["pyright", "--ignoreexternal", "--verifytypes", "click"],

use uv (#2918)Rowlando13before adoption2e1c742

lines 175–207why, one step back
175]
176177[tool.tox.env.docs]178description = "build docs"179dependency_groups = ["docs"]180commands = [["sphinx-build", "-E", "-W", "-b", "dirhtml", "docs", "docs/_build/dirhtml"]]181182[tool.tox.env.docs-auto]183description = "continuously rebuild docs and start a local server"184dependency_groups = ["docs", "docs-auto"]185commands = [["sphinx-autobuild", "-W", "-b", "dirhtml", "--watch", "src", "docs", "docs/_build/dirhtml"]]186187[tool.tox.env.update-actions]188description = "update GitHub Actions pins"189labels = ["update"]190dependency_groups = ["gha-update"]191skip_install = true192commands = [["gha-update"]]193194[tool.tox.env.update-pre_commit]195description = "update pre-commit pins"196labels = ["update"]197dependency_groups = ["pre-commit"]198skip_install = true199commands = [["pre-commit", "autoupdate", "--freeze", "-j4"]]200201[tool.tox.env.update-requirements]202description = "update uv lock"203labels = ["update"]204dependency_groups = []205no_default_groups = true206skip_install = true207commands = [["uv", "lock", {replace = "posargs", default = ["-U"], extend = true}]]