Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

204 lines · 6.3 KiB · TOML

Last changed by

📝 Update docs links, from tiangolo to new fastapi org (#919)Sebastián Ramírezbefore adoptione3be56b

History of this file

Take it

The walk stopped after 200 commits: lines older than 5c729e8 point at it.

⬆ Bump dawidd6/action-download-artifact from 2.24.2 to 2.26.0 (#558)dependabot[bot]before adoption5c729e8

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

🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868

lines 2–3why, one step back
2requires = ["pdm-backend"]
3build-backend = "pdm.backend"

⬆ Bump dawidd6/action-download-artifact from 2.24.2 to 2.26.0 (#558)dependabot[bot]before adoption5c729e8

line 4why, one step back
4

🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868

line 5why, one step back
5[project]

🐛 Fix broken installation when upgrading from `typer <0.12.0` to `typer >=0.12.0`, make `typer` independent of `typer-slim`, include `typer` command in `typer` package (#791)Sebastián Ramírezbefore adoption05ffb24

line 6why, one step back
6name = "typer"

🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868

lines 7–12why, one step back
7dynamic = ["version"]
8description = "Typer, build great CLIs. Easy to code. Based on Python type hints."9authors = [10 {name = "Sebastián Ramírez", email = "tiangolo@gmail.com"},11]12requires-python = ">=3.7"

⬆ Bump dawidd6/action-download-artifact from 2.24.2 to 2.26.0 (#558)dependabot[bot]before adoption5c729e8

lines 13–31why, one step back
13classifiers = [
14 "Intended Audience :: Information Technology",15 "Intended Audience :: System Administrators",16 "Operating System :: OS Independent",17 "Programming Language :: Python :: 3",18 "Programming Language :: Python",19 "Topic :: Software Development :: Libraries :: Application Frameworks",20 "Topic :: Software Development :: Libraries :: Python Modules",21 "Topic :: Software Development :: Libraries",22 "Topic :: Software Development",23 "Typing :: Typed",24 "Development Status :: 4 - Beta",25 "Intended Audience :: Developers",26 "Programming Language :: Python :: 3 :: Only",27 "Programming Language :: Python :: 3.7",28 "Programming Language :: Python :: 3.8",29 "Programming Language :: Python :: 3.9",30 "Programming Language :: Python :: 3.10",31 "Programming Language :: Python :: 3.11",

✨ Add support for Python 3.12, tests in CI and official marker (#807)Iván Todorovichbefore adoption54e540b

line 32why, one step back
32 "Programming Language :: Python :: 3.12",

🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868

lines 33–35why, one step back
33 "License :: OSI Approved :: MIT License",
34]35dependencies = [

🔥 Remove support for Click 7, require Click 8+ (#760)Sebastián Ramírezbefore adoption5bea9cf

line 36why, one step back
36 "click >= 8.0.0",

✨ Add support for PEP-593 `Annotated` for specifying options and arguments (#584)Ryan Miller Galambbefore adoption458a492

line 37why, one step back
37 "typing-extensions >= 3.7.4.3",

⬆ Bump dawidd6/action-download-artifact from 2.24.2 to 2.26.0 (#558)dependabot[bot]before adoption5c729e8

line 38why, one step back
38]

🐛 Fix broken installation when upgrading from `typer <0.12.0` to `typer >=0.12.0`, make `typer` independent of `typer-slim`, include `typer` command in `typer` package (#791)Sebastián Ramírezbefore adoption05ffb24

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

🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868

line 40why, one step back
40[project.urls]

⬆ Bump dawidd6/action-download-artifact from 2.24.2 to 2.26.0 (#558)dependabot[bot]before adoption5c729e8

line 41why, one step back
41Documentation = "https://typer.tiangolo.com/"

📝 Update docs links, from tiangolo to new fastapi org (#919)Sebastián Ramírezbefore adoptione3be56b

line 42why, one step back
42homepage = "https://github.com/fastapi/typer"

⬆ Bump dawidd6/action-download-artifact from 2.24.2 to 2.26.0 (#558)dependabot[bot]before adoption5c729e8

line 43why, one step back
43

🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868

line 44why, one step back
44[project.optional-dependencies]

✨ Add `typer-slim` package without extras, make `typer` include `typer-slim[default]` and integrate Typer CLI (`typer` command) into Typer (#780)Sebastián Ramírezbefore adoption7d5d6bb

lines 45–47why, one step back
45standard = [
46 "shellingham >=1.3.0",47 "rich >=10.11.0",

⬆ Bump dawidd6/action-download-artifact from 2.24.2 to 2.26.0 (#558)dependabot[bot]before adoption5c729e8

lines 48–49why, one step back
48]
49

🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868

lines 50–51why, one step back
50[tool.pdm]
51version = { source = "file", path = "typer/__init__.py" }

🔧 Upgrade mypy and config (#768)Sebastián Ramírezbefore adoptionc1dd661

line 52why, one step back
52distribution = true

🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868

line 53why, one step back
53

🔧 Explicitly include testing files in sdist for redistributors (e.g. OpenSUSE) and add CI to test redistribution (#773)Sebastián Ramírezbefore adoption0cdc31e

lines 54–60why, one step back
54[tool.pdm.build]
55source-includes = [56 "tests/",57 "docs_src/",58 "requirements*.txt",59 "scripts/",60 ]

🐛 Fix broken installation when upgrading from `typer <0.12.0` to `typer >=0.12.0`, make `typer` independent of `typer-slim`, include `typer` command in `typer` package (#791)Sebastián Ramírezbefore adoption05ffb24

lines 61–104why, one step back
61
62[tool.tiangolo._internal-slim-build]63sync-dependencies = [64 "typer-slim[standard]",65 "typer-cli",66 "typer"67]6869[tool.tiangolo._internal-slim-build.packages.typer-slim.project]70name = "typer-slim"7172[tool.tiangolo._internal-slim-build.packages.typer]73include-optional-dependencies = ["standard"]7475[tool.tiangolo._internal-slim-build.packages.typer.project]76optional-dependencies = {}7778[tool.tiangolo._internal-slim-build.packages.typer.project.scripts]79typer = "typer.cli:main"8081[tool.tiangolo._internal-slim-build.packages.typer-cli.project]82name = "typer-cli"83readme = "typer-cli/README.md"84dependencies = [85 "typer",86]87optional-dependencies = {}8889[tool.tiangolo._internal-slim-build.packages.typer-cli.tool.pdm.build]90# excludes needs to explicitly exclude the top level python packages,91# otherwise PDM includes them by default92# A "*" glob pattern can't be used here because in PDM internals, the patterns are put93# in a set (unordered, order varies) and each excluded file is assigned one of the94# glob patterns that matches, as the set is unordered, the matched pattern could be "*"95# independent of the order here. And then the internal code would give it a lower score96# than the one for a default included file.97# By not using "*" and explicitly excluding the top level packages, they get a higher98# score than the default inclusion99excludes = ["typer", "tests", "pdm_build.py"]100# source-includes needs to explicitly define some value because PDM will check the101# truthy value of the list, and if empty, will include some defaults, including "tests",102# an empty string doesn't match anything, but makes the list truthy, so that PDM103# doesn't override it during the build.104source-includes = [""]

🔧 Explicitly include testing files in sdist for redistributors (e.g. OpenSUSE) and add CI to test redistribution (#773)Sebastián Ramírezbefore adoption0cdc31e

line 105why, one step back
105

⬆ Bump dawidd6/action-download-artifact from 2.24.2 to 2.26.0 (#558)dependabot[bot]before adoption5c729e8

lines 106–119why, one step back
106[tool.pytest.ini_options]
107addopts = [108 "--strict-config",109 "--strict-markers",110]111xfail_strict = true112junit_family = "xunit2"113filterwarnings = [114 "error",115 # TODO: until I refactor completion to use the new shell_complete116 "ignore:'autocompletion' is renamed to 'shell_complete'. The old name is deprecated and will be removed in Click 8.1. See the docs about 'Parameter' for information about new behavior.:DeprecationWarning:typer",117 # For pytest-xdist118 'ignore::DeprecationWarning:xdist',119]

🔧 Upgrade mypy and config (#768)Sebastián Ramírezbefore adoptionc1dd661

line 120why, one step back
120

⬆️ Upgrade coverage and configs (#769)Sebastián Ramírezbefore adoption71bdae1

lines 121–132why, one step back
121[tool.coverage.run]
122parallel = true123data_file = "coverage/.coverage"124source = [125 "docs_src",126 "tests",127 "typer"128]129omit = [130 "typer/_typing.py"131]132context = '${CONTEXT}'

✅ Add CI configs to run tests on Windows and MacOS (#824)Sofie Van Landeghembefore adoptionb751a13

line 133why, one step back
133relative_files = true

⬆️ Upgrade coverage and configs (#769)Sebastián Ramírezbefore adoption71bdae1

lines 134–142why, one step back
134
135[tool.coverage.report]136exclude_lines = [137 "pragma: no cover",138 "@overload",139 'if __name__ == "__main__":',140 "if TYPE_CHECKING:",141]142

🔧 Upgrade mypy and config (#768)Sebastián Ramírezbefore adoptionc1dd661

lines 143–154why, one step back
143[tool.mypy]
144strict = true145146[[tool.mypy.overrides]]147module = "docs_src.*"148disallow_incomplete_defs = false149disallow_untyped_defs = false150disallow_untyped_calls = false151152[[tool.mypy.overrides]]153module = "shellingham"154ignore_missing_imports = true

🔧 Migrate from Black, isort, flake8, autoflake, pyupgrade to Ruff (#763)Sebastián Ramírezbefore adoption38b8e4a

lines 155–204why, one step back
155
156[tool.ruff.lint]157select = [158 "E", # pycodestyle errors159 "W", # pycodestyle warnings160 "F", # pyflakes161 "I", # isort162 "B", # flake8-bugbear163 "C4", # flake8-comprehensions164 "UP", # pyupgrade165]166ignore = [167 "E501", # line too long, handled by black168 "B008", # do not perform function calls in argument defaults169 "C901", # too complex170 "W191", # indentation contains tabs171]172173[tool.ruff.lint.per-file-ignores]174# "__init__.py" = ["F401"]175# This file is more readable without yield from176"docs_src/progressbar/tutorial004.py" = ["UP028", "B007"]177# Default mutable data structure178"docs_src/options_autocompletion/tutorial006_an.py" = ["B006"]179"docs_src/multiple_values/multiple_options/tutorial002_an.py" = ["B006"]180"docs_src/options_autocompletion/tutorial007_an.py" = ["B006"]181"docs_src/options_autocompletion/tutorial008_an.py" = ["B006"]182"docs_src/options_autocompletion/tutorial009_an.py" = ["B006"]183"docs_src/parameter_types/enum/tutorial003_an.py" = ["B006"]184# Loop control variable `value` not used within loop body185"docs_src/progressbar/tutorial001.py" = ["B007"]186"docs_src/progressbar/tutorial003.py" = ["B007"]187"docs_src/progressbar/tutorial005.py" = ["B007"]188"docs_src/progressbar/tutorial006.py" = ["B007"]189# Local variable `delete` is assigned to but never used190"docs_src/prompt/tutorial003.py" = ["F841"]191# Loop control variable `x` not used within loop body192"docs_src/using_click/tutorial001.py" = ["B007"]193194# TODO: refactor _typing.py, remove unnecessary code195"typer/_typing.py" = ["UP036", "F822"]196197[tool.ruff.lint.isort]198known-third-party = ["typer", "click"]199# For docs_src/subcommands/tutorial003/200known-first-party = ["reigns", "towns", "lands", "items", "users"]201202[tool.ruff.lint.pyupgrade]203# Preserve types, even if a file imports `from __future__ import annotations`.204keep-runtime-typing = true