From 36f2c6873a68e2a0c49801ee00664209e938412c Mon Sep 17 00:00:00 2001 From: Subhash Bhushan Date: Tue, 23 Jul 2024 17:56:10 -0700 Subject: [PATCH] Upgrade Typer to 0.12.3 --- poetry.lock | 24 ++++++++---------------- pyproject.toml | 2 +- src/protean/cli/new.py | 2 +- 3 files changed, 10 insertions(+), 18 deletions(-) diff --git a/poetry.lock b/poetry.lock index 2c056341..ed89c896 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1966,7 +1966,6 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, - {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, @@ -2510,28 +2509,21 @@ urllib3 = ">=1.26.0" [[package]] name = "typer" -version = "0.9.0" +version = "0.12.3" description = "Typer, build great CLIs. Easy to code. Based on Python type hints." optional = false -python-versions = ">=3.6" +python-versions = ">=3.7" files = [ - {file = "typer-0.9.0-py3-none-any.whl", hash = "sha256:5d96d986a21493606a358cae4461bd8cdf83cbf33a5aa950ae629ca3b51467ee"}, - {file = "typer-0.9.0.tar.gz", hash = "sha256:50922fd79aea2f4751a8e0408ff10d2662bd0c8bbfa84755a699f3bada2978b2"}, + {file = "typer-0.12.3-py3-none-any.whl", hash = "sha256:070d7ca53f785acbccba8e7d28b08dcd88f79f1fbda035ade0aecec71ca5c914"}, + {file = "typer-0.12.3.tar.gz", hash = "sha256:49e73131481d804288ef62598d97a1ceef3058905aa536a1134f90891ba35482"}, ] [package.dependencies] -click = ">=7.1.1,<9.0.0" -colorama = {version = ">=0.4.3,<0.5.0", optional = true, markers = "extra == \"all\""} -rich = {version = ">=10.11.0,<14.0.0", optional = true, markers = "extra == \"all\""} -shellingham = {version = ">=1.3.0,<2.0.0", optional = true, markers = "extra == \"all\""} +click = ">=8.0.0" +rich = ">=10.11.0" +shellingham = ">=1.3.0" typing-extensions = ">=3.7.4.3" -[package.extras] -all = ["colorama (>=0.4.3,<0.5.0)", "rich (>=10.11.0,<14.0.0)", "shellingham (>=1.3.0,<2.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)"] -doc = ["cairosvg (>=2.5.2,<3.0.0)", "mdx-include (>=1.4.1,<2.0.0)", "mkdocs (>=1.1.2,<2.0.0)", "mkdocs-material (>=8.1.4,<9.0.0)", "pillow (>=9.3.0,<10.0.0)"] -test = ["black (>=22.3.0,<23.0.0)", "coverage (>=6.2,<7.0)", "isort (>=5.0.6,<6.0.0)", "mypy (==0.910)", "pytest (>=4.4.0,<8.0.0)", "pytest-cov (>=2.10.0,<5.0.0)", "pytest-sugar (>=0.9.4,<0.10.0)", "pytest-xdist (>=1.32.0,<4.0.0)", "rich (>=10.11.0,<14.0.0)", "shellingham (>=1.3.0,<2.0.0)"] - [[package]] name = "types-mock" version = "5.1.0.20240311" @@ -2760,4 +2752,4 @@ sqlite = ["sqlalchemy"] [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "d97670f12db5c2a4887419cf5fb886dd4b2d51f83ca86536a79fde23ddc0fe76" +content-hash = "d531707a69e0b77c9ce2c0eff9cfb948bd852038c2aa655a940ecdc9392d5d6b" diff --git a/pyproject.toml b/pyproject.toml index 9cb2380e..c647133f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ inflection = ">=0.5.1" ipython = "^8.23.0" marshmallow = ">=3.15.0" # FIXME Remove core dependency python-dateutil = ">=2.8.2" -typer = {extras = ["all"], version = "^0.9.0"} +typer = ">=0.12.3" werkzeug = ">=2.0.0" ########## diff --git a/src/protean/cli/new.py b/src/protean/cli/new.py index 14fd7937..b8e5a577 100644 --- a/src/protean/cli/new.py +++ b/src/protean/cli/new.py @@ -15,7 +15,7 @@ def new( output_folder: Annotated[ str, typer.Option("--output-dir", "-o", show_default=False) ] = ".", - data: Annotated[List[str], typer.Option("--data", "-d", show_default=False)] = None, + data: Annotated[List[str], typer.Option("--data", "-d", show_default=False)] = [], pretend: Annotated[Optional[bool], typer.Option("--pretend", "-p")] = False, force: Annotated[Optional[bool], typer.Option("--force", "-f")] = False, defaults: Annotated[Optional[bool], typer.Option("--defaults")] = False,