pyproject.toml
This file
Path
pyproject.toml
207 lines · 6.4 KiB · TOML
Last changed by
🔧 Add URLs to pyproject.toml, show up in PyPI (#931)Sebastián Ramírezbefore adoption6e8c611
History of this fileTake it
The walk stopped after 200 commits: lines older than d75faa6 point at it.
🔖 Release version 0.9.2Sebastián Ramírezbefore adoptiond75faa6
line 1why, one step back1[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 back2requires = ["pdm-backend"]3build-backend = "pdm.backend"🔖 Release version 0.9.2Sebastián Ramírezbefore adoptiond75faa6
line 4why, one step back4🔧 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 back5[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 back6name = "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 back7dynamic = ["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"🔖 Release version 0.9.2Sebastián Ramírezbefore adoptiond75faa6
lines 13–31why, one step back13classifiers = [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 back32 "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 back33 "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 back36 "click >= 8.0.0",🔖 Release version 0.9.2Sebastián Ramírezbefore adoptiond75faa6
lines 37–38why, one step back37 "typing-extensions >= 3.7.4.3",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 back39readme = "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 back40[project.urls]🔧 Add URLs to pyproject.toml, show up in PyPI (#931)Sebastián Ramírezbefore adoption6e8c611
lines 41–45why, one step back41Homepage = "https://github.com/fastapi/typer"42Documentation = "https://typer.tiangolo.com"43Repository = "https://github.com/fastapi/typer"44Issues = "https://github.com/fastapi/typer/issues"45Changelog = "https://typer.tiangolo.com/release-notes/"🔖 Release version 0.9.2Sebastián Ramírezbefore adoptiond75faa6
line 46why, one step back46🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
line 47why, one step back47[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 48–50why, one step back48standard = [49 "shellingham >=1.3.0",50 "rich >=10.11.0",🔖 Release version 0.9.2Sebastián Ramírezbefore adoptiond75faa6
lines 51–52why, one step back51]52🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
lines 53–54why, one step back53[tool.pdm]54version = { source = "file", path = "typer/__init__.py" }🔧 Upgrade mypy and config (#768)Sebastián Ramírezbefore adoptionc1dd661
line 55why, one step back55distribution = true🔧 Refactor package manager, move from Flit to PDM, remove private pip extras for `test`, `doc`, `dev` (#764)Sebastián Ramírezbefore adoption207e868
line 56why, one step back56🔧 Explicitly include testing files in sdist for redistributors (e.g. OpenSUSE) and add CI to test redistribution (#773)Sebastián Ramírezbefore adoption0cdc31e
lines 57–63why, one step back57[tool.pdm.build]58source-includes = [59 "tests/",60 "docs_src/",61 "requirements*.txt",62 "scripts/",63 ]🐛 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 64–107why, one step back6465[tool.tiangolo._internal-slim-build]66sync-dependencies = [67 "typer-slim[standard]",68 "typer-cli",69 "typer"70]7172[tool.tiangolo._internal-slim-build.packages.typer-slim.project]73name = "typer-slim"7475[tool.tiangolo._internal-slim-build.packages.typer]76include-optional-dependencies = ["standard"]7778[tool.tiangolo._internal-slim-build.packages.typer.project]79optional-dependencies = {}8081[tool.tiangolo._internal-slim-build.packages.typer.project.scripts]82typer = "typer.cli:main"8384[tool.tiangolo._internal-slim-build.packages.typer-cli.project]85name = "typer-cli"86readme = "typer-cli/README.md"87dependencies = [88 "typer",89]90optional-dependencies = {}9192[tool.tiangolo._internal-slim-build.packages.typer-cli.tool.pdm.build]93# excludes needs to explicitly exclude the top level python packages,94# otherwise PDM includes them by default95# A "*" glob pattern can't be used here because in PDM internals, the patterns are put96# in a set (unordered, order varies) and each excluded file is assigned one of the97# glob patterns that matches, as the set is unordered, the matched pattern could be "*"98# independent of the order here. And then the internal code would give it a lower score99# than the one for a default included file.100# By not using "*" and explicitly excluding the top level packages, they get a higher101# score than the default inclusion102excludes = ["typer", "tests", "pdm_build.py"]103# source-includes needs to explicitly define some value because PDM will check the104# truthy value of the list, and if empty, will include some defaults, including "tests",105# an empty string doesn't match anything, but makes the list truthy, so that PDM106# doesn't override it during the build.107source-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 108why, one step back108🔖 Release version 0.9.2Sebastián Ramírezbefore adoptiond75faa6
lines 109–122why, one step back109[tool.pytest.ini_options]110addopts = [111 "--strict-config",112 "--strict-markers",113]114xfail_strict = true115junit_family = "xunit2"116filterwarnings = [117 "error",118 # TODO: until I refactor completion to use the new shell_complete119 "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",120 # For pytest-xdist121 'ignore::DeprecationWarning:xdist',122]🔧 Upgrade mypy and config (#768)Sebastián Ramírezbefore adoptionc1dd661
line 123why, one step back123⬆️ Upgrade coverage and configs (#769)Sebastián Ramírezbefore adoption71bdae1
lines 124–135why, one step back124[tool.coverage.run]125parallel = true126data_file = "coverage/.coverage"127source = [128 "docs_src",129 "tests",130 "typer"131]132omit = [133 "typer/_typing.py"134]135context = '${CONTEXT}'✅ Add CI configs to run tests on Windows and MacOS (#824)Sofie Van Landeghembefore adoptionb751a13
line 136why, one step back136relative_files = true⬆️ Upgrade coverage and configs (#769)Sebastián Ramírezbefore adoption71bdae1
lines 137–145why, one step back137138[tool.coverage.report]139exclude_lines = [140 "pragma: no cover",141 "@overload",142 'if __name__ == "__main__":',143 "if TYPE_CHECKING:",144]145🔧 Upgrade mypy and config (#768)Sebastián Ramírezbefore adoptionc1dd661
lines 146–157why, one step back146[tool.mypy]147strict = true148149[[tool.mypy.overrides]]150module = "docs_src.*"151disallow_incomplete_defs = false152disallow_untyped_defs = false153disallow_untyped_calls = false154155[[tool.mypy.overrides]]156module = "shellingham"157ignore_missing_imports = true🔧 Migrate from Black, isort, flake8, autoflake, pyupgrade to Ruff (#763)Sebastián Ramírezbefore adoption38b8e4a
lines 158–207why, one step back158159[tool.ruff.lint]160select = [161 "E", # pycodestyle errors162 "W", # pycodestyle warnings163 "F", # pyflakes164 "I", # isort165 "B", # flake8-bugbear166 "C4", # flake8-comprehensions167 "UP", # pyupgrade168]169ignore = [170 "E501", # line too long, handled by black171 "B008", # do not perform function calls in argument defaults172 "C901", # too complex173 "W191", # indentation contains tabs174]175176[tool.ruff.lint.per-file-ignores]177# "__init__.py" = ["F401"]178# This file is more readable without yield from179"docs_src/progressbar/tutorial004.py" = ["UP028", "B007"]180# Default mutable data structure181"docs_src/options_autocompletion/tutorial006_an.py" = ["B006"]182"docs_src/multiple_values/multiple_options/tutorial002_an.py" = ["B006"]183"docs_src/options_autocompletion/tutorial007_an.py" = ["B006"]184"docs_src/options_autocompletion/tutorial008_an.py" = ["B006"]185"docs_src/options_autocompletion/tutorial009_an.py" = ["B006"]186"docs_src/parameter_types/enum/tutorial003_an.py" = ["B006"]187# Loop control variable `value` not used within loop body188"docs_src/progressbar/tutorial001.py" = ["B007"]189"docs_src/progressbar/tutorial003.py" = ["B007"]190"docs_src/progressbar/tutorial005.py" = ["B007"]191"docs_src/progressbar/tutorial006.py" = ["B007"]192# Local variable `delete` is assigned to but never used193"docs_src/prompt/tutorial003.py" = ["F841"]194# Loop control variable `x` not used within loop body195"docs_src/using_click/tutorial001.py" = ["B007"]196197# TODO: refactor _typing.py, remove unnecessary code198"typer/_typing.py" = ["UP036", "F822"]199200[tool.ruff.lint.isort]201known-third-party = ["typer", "click"]202# For docs_src/subcommands/tutorial003/203known-first-party = ["reigns", "towns", "lands", "items", "users"]204205[tool.ruff.lint.pyupgrade]206# Preserve types, even if a file imports `from __future__ import annotations`.207keep-runtime-typing = true