Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

211 lines · 6.4 KiB · TOML

Last changed by

🐛 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

History of this file

Take it

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

📝 Update release notesgithub-actionsbefore adoptione1915ae

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"

📝 Update release notesgithub-actionsbefore adoptione1915ae

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"

📝 Update release notesgithub-actionsbefore adoptione1915ae

lines 13–28why, 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",

✨ Add support for Python 3.11, tests in CI and official marker (#487)Sebastián Ramírezbefore adoptiona6f28a7

lines 29–31why, one step back
29 "Programming Language :: Python :: 3.9",
30 "Programming Language :: Python :: 3.10",31 "Programming Language :: Python :: 3.11",

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

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

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

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

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

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

📝 Update release notesgithub-actionsbefore adoptione1915ae

line 37why, one step back
37]

🐛 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 38why, one step back
38readme = "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 39why, one step back
39[project.urls]

📝 Update release notesgithub-actionsbefore adoptione1915ae

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

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

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

📝 Update release notesgithub-actionsbefore adoptione1915ae

line 42why, one step back
42

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

line 43why, one step back
43[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 44–46why, one step back
44standard = [
45 "shellingham >=1.3.0",46 "rich >=10.11.0",

📝 Update release notesgithub-actionsbefore adoptione1915ae

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

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

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

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

line 51why, one step back
51distribution = true

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

line 52why, one step back
52

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

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

🐛 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 60–103why, one step back
60
61[tool.tiangolo._internal-slim-build]62sync-dependencies = [63 "typer-slim[standard]",64 "typer-cli",65 "typer"66]6768[tool.tiangolo._internal-slim-build.packages.typer-slim.project]69name = "typer-slim"7071[tool.tiangolo._internal-slim-build.packages.typer]72include-optional-dependencies = ["standard"]7374[tool.tiangolo._internal-slim-build.packages.typer.project]75optional-dependencies = {}7677[tool.tiangolo._internal-slim-build.packages.typer.project.scripts]78typer = "typer.cli:main"7980[tool.tiangolo._internal-slim-build.packages.typer-cli.project]81name = "typer-cli"82readme = "typer-cli/README.md"83dependencies = [84 "typer",85]86optional-dependencies = {}8788[tool.tiangolo._internal-slim-build.packages.typer-cli.tool.pdm.build]89# excludes needs to explicitly exclude the top level python packages,90# otherwise PDM includes them by default91# A "*" glob pattern can't be used here because in PDM internals, the patterns are put92# in a set (unordered, order varies) and each excluded file is assigned one of the93# glob patterns that matches, as the set is unordered, the matched pattern could be "*"94# independent of the order here. And then the internal code would give it a lower score95# than the one for a default included file.96# By not using "*" and explicitly excluding the top level packages, they get a higher97# score than the default inclusion98excludes = ["typer", "tests", "pdm_build.py"]99# source-includes needs to explicitly define some value because PDM will check the100# truthy value of the list, and if empty, will include some defaults, including "tests",101# an empty string doesn't match anything, but makes the list truthy, so that PDM102# doesn't override it during the build.103source-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 104why, one step back
104

📝 Update release notesgithub-actionsbefore adoptione1915ae

lines 105–112why, one step back
105[tool.isort]
106profile = "black"107known_third_party = ["typer", "click"]108skip_glob = [109 "docs_src/subcommands/tutorial001/main.py",110 "docs_src/subcommands/tutorial003/lands.py",111 "docs_src/subcommands/tutorial003/main.py",112 ]

✨ Make `typer.run()` not add completion scripts by default, it only makes sense in installed apps (#488)Sebastián Ramírezbefore adoption36e4080

lines 113–127why, one step back
113
114[tool.pytest.ini_options]115addopts = [116 "--strict-config",117 "--strict-markers",118]119xfail_strict = true120junit_family = "xunit2"121filterwarnings = [122 "error",123 # TODO: until I refactor completion to use the new shell_complete124 "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",125 # For pytest-xdist126 'ignore::DeprecationWarning:xdist',127]

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

line 128why, one step back
128

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

lines 129–149why, one step back
129[tool.coverage.run]
130parallel = true131data_file = "coverage/.coverage"132source = [133 "docs_src",134 "tests",135 "typer"136]137omit = [138 "typer/_typing.py"139]140context = '${CONTEXT}'141142[tool.coverage.report]143exclude_lines = [144 "pragma: no cover",145 "@overload",146 'if __name__ == "__main__":',147 "if TYPE_CHECKING:",148]149

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

lines 150–161why, one step back
150[tool.mypy]
151strict = true152153[[tool.mypy.overrides]]154module = "docs_src.*"155disallow_incomplete_defs = false156disallow_untyped_defs = false157disallow_untyped_calls = false158159[[tool.mypy.overrides]]160module = "shellingham"161ignore_missing_imports = true

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

lines 162–211why, one step back
162
163[tool.ruff.lint]164select = [165 "E", # pycodestyle errors166 "W", # pycodestyle warnings167 "F", # pyflakes168 "I", # isort169 "B", # flake8-bugbear170 "C4", # flake8-comprehensions171 "UP", # pyupgrade172]173ignore = [174 "E501", # line too long, handled by black175 "B008", # do not perform function calls in argument defaults176 "C901", # too complex177 "W191", # indentation contains tabs178]179180[tool.ruff.lint.per-file-ignores]181# "__init__.py" = ["F401"]182# This file is more readable without yield from183"docs_src/progressbar/tutorial004.py" = ["UP028", "B007"]184# Default mutable data structure185"docs_src/options_autocompletion/tutorial006_an.py" = ["B006"]186"docs_src/multiple_values/multiple_options/tutorial002_an.py" = ["B006"]187"docs_src/options_autocompletion/tutorial007_an.py" = ["B006"]188"docs_src/options_autocompletion/tutorial008_an.py" = ["B006"]189"docs_src/options_autocompletion/tutorial009_an.py" = ["B006"]190"docs_src/parameter_types/enum/tutorial003_an.py" = ["B006"]191# Loop control variable `value` not used within loop body192"docs_src/progressbar/tutorial001.py" = ["B007"]193"docs_src/progressbar/tutorial003.py" = ["B007"]194"docs_src/progressbar/tutorial005.py" = ["B007"]195"docs_src/progressbar/tutorial006.py" = ["B007"]196# Local variable `delete` is assigned to but never used197"docs_src/prompt/tutorial003.py" = ["F841"]198# Loop control variable `x` not used within loop body199"docs_src/using_click/tutorial001.py" = ["B007"]200201# TODO: refactor _typing.py, remove unnecessary code202"typer/_typing.py" = ["UP036", "F822"]203204[tool.ruff.lint.isort]205known-third-party = ["typer", "click"]206# For docs_src/subcommands/tutorial003/207known-first-party = ["reigns", "towns", "lands", "items", "users"]208209[tool.ruff.lint.pyupgrade]210# Preserve types, even if a file imports `from __future__ import annotations`.211keep-runtime-typing = true