6664f1ec31
Allow rich 13.x Based on the changelog, the only relevant breaking change is that support for Python 3.6 is removed: https://github.com/Textualize/rich/blob/v13.0.0/CHANGELOG.md#1300---2022-12-30 This is OK even though we support Python 3.6 in typer, because we do still allow older versions of rich that are compatible with Python 3.6.
95 lines
2.9 KiB
TOML
95 lines
2.9 KiB
TOML
[build-system]
|
|
requires = ["flit_core >=2,<3"]
|
|
build-backend = "flit_core.buildapi"
|
|
|
|
[tool.flit.metadata]
|
|
module = "typer"
|
|
author = "Sebastián Ramírez"
|
|
author-email = "tiangolo@gmail.com"
|
|
home-page = "https://github.com/tiangolo/typer"
|
|
classifiers = [
|
|
"Intended Audience :: Information Technology",
|
|
"Intended Audience :: System Administrators",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python",
|
|
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: Software Development :: Libraries",
|
|
"Topic :: Software Development",
|
|
"Typing :: Typed",
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Python :: 3.6",
|
|
"Programming Language :: Python :: 3.7",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"License :: OSI Approved :: MIT License"
|
|
]
|
|
requires = [
|
|
"click >= 7.1.1, <9.0.0"
|
|
]
|
|
description-file = "README.md"
|
|
requires-python = ">=3.6"
|
|
|
|
[tool.flit.metadata.urls]
|
|
Documentation = "https://typer.tiangolo.com/"
|
|
|
|
[tool.flit.metadata.requires-extra]
|
|
test = [
|
|
"shellingham >=1.3.0,<2.0.0",
|
|
"pytest >=4.4.0,<8.0.0",
|
|
"pytest-cov >=2.10.0,<5.0.0",
|
|
"coverage >=6.2,<7.0",
|
|
"pytest-xdist >=1.32.0,<4.0.0",
|
|
"pytest-sugar >=0.9.4,<0.10.0",
|
|
"mypy ==0.910",
|
|
"black >=22.3.0,<23.0.0",
|
|
"isort >=5.0.6,<6.0.0",
|
|
"rich >=10.11.0,<14.0.0",
|
|
]
|
|
doc = [
|
|
"mkdocs >=1.1.2,<2.0.0",
|
|
"mkdocs-material >=8.1.4,<9.0.0",
|
|
"mdx-include >=1.4.1,<2.0.0",
|
|
"pillow >=9.3.0,<10.0.0",
|
|
"cairosvg >=2.5.2,<3.0.0",
|
|
]
|
|
dev = [
|
|
"autoflake >=1.3.1,<2.0.0",
|
|
"flake8 >=3.8.3,<4.0.0",
|
|
"pre-commit >=2.17.0,<3.0.0",
|
|
]
|
|
all = [
|
|
"colorama >=0.4.3,<0.5.0",
|
|
"shellingham >=1.3.0,<2.0.0",
|
|
"rich >=10.11.0,<14.0.0",
|
|
]
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
known_third_party = ["typer", "click"]
|
|
skip_glob = [
|
|
"docs_src/subcommands/tutorial001/main.py",
|
|
"docs_src/subcommands/tutorial003/lands.py",
|
|
"docs_src/subcommands/tutorial003/main.py",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = [
|
|
"--strict-config",
|
|
"--strict-markers",
|
|
]
|
|
xfail_strict = true
|
|
junit_family = "xunit2"
|
|
filterwarnings = [
|
|
"error",
|
|
# TODO: until I refactor completion to use the new shell_complete
|
|
"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",
|
|
'ignore:starlette.middleware.wsgi is deprecated and will be removed in a future release\..*:DeprecationWarning:starlette',
|
|
# For pytest-xdist
|
|
'ignore::DeprecationWarning:xdist',
|
|
]
|