Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency typer to v0.14.0 #464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 23, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
typer (changelog) 0.9.0 -> 0.14.0 age adoption passing confidence

Release Notes

fastapi/typer (typer)

v0.14.0

Compare Source

Breaking Changes
  • 🔥 Remove auto naming of groups added via add_typer based on the group's callback function name. PR #​1052 by @​patrick91.

Before, it was supported to infer the name of a command group from the callback function name in the sub-app, so, in this code:

import typer

app = typer.Typer()
users_app = typer.Typer()

app.add_typer(users_app)

@​users_app.callback()
def users():  # <-- This was the inferred command group name
    """
    Manage users in the app.
    """

@&#8203;users_app.command()
def create(name: str):
    print(f"Creating user: {name}")

...the command group would be named users, based on the name of the function def users().

Now you need to set it explicitly:

import typer

app = typer.Typer()
users_app = typer.Typer()

app.add_typer(users_app, name="users")  # <-- Explicitly set the command group name

@&#8203;users_app.callback()
def users():
    """
    Manage users in the app.
    """

@&#8203;users_app.command()
def create(name: str):
    print(f"Creating user: {name}")

Updated docs SubCommand Name and Help.

Note: this change will enable important features in the next release. 🤩

Internal

v0.13.1

Compare Source

Features
Refactors
Docs
Internal

v0.13.0

Compare Source

Features
Fixes
Refactors
Internal

v0.12.5

Compare Source

Features
Fixes
Refactors
Docs
Internal

v0.12.4

Compare Source

Features
Fixes
Docs
Internal

v0.12.3

Compare Source

Fixes

v0.12.2

Compare Source

Features
  • ✨ Improve column help display, ensure commands column width is the same on all panels. PR #​567 by @​ssbarnea.
Fixes
Docs

v0.12.1

Compare Source

Now you don't need to install typer[all]. When you install typer it comes with the default optional dependencies and the typer command.

If you don't want the extra optional dependencies (rich and shellingham), you can install typer-slim instead.

You can also install typer-slim[standard], which includes the default optional dependencies, but not the typer command.

Now the package typer-cli doesn't add anything on top of what typer has, it only depends on typer, and is there only for backwards compatibility, so that projects that depend on typer-cli can get the latest features of the typer command while they upgrade their dependencies to require typer directly.

Features
Fixes
  • 🐛 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. PR #​791 by @​tiangolo.

This fixes a problem that would break the typer installation directory when upgrading from typer <0.12.0 to typer >=0.12.0, see issue #​790.

By installing the latest version (0.12.1) it fixes it, for any previous version, even if the installation directory was already broken by the previous upgrade.

Internal

v0.12.0

Compare Source

In version 0.12.0, the typer package depends on typer-slim[standard] which includes the default dependencies (instead of typer[all]) and typer-cli (that provides the typer command).

If you don't want the extra optional dependencies (rich and shellingham), you can install typer-slim instead.

You can also install typer-slim[standard], which includes the default optional dependencies, but not the typer command.

In version 0.12.0 the typer-cli package only provides the typer command, but the code is still in the main code, so even without installing typer-cli, it can be called with python -m typer.

This approach of having typer depend on typer-slim[standard] instead of including the whole code and dependencies itself caused an issue when upgrading from typer <0.12.0 to typer >=0.12.0, see issue #​790. This is fixed in version 0.12.1.

Features
  • ✨ Add typer-slim package without extras, make typer include typer-slim[default] and integrate Typer CLI (typer command) into Typer. PR #​780 by @​tiangolo.
Internal

v0.11.1

Compare Source

Fixes
  • 🔧 Explicitly include testing files in sdist for redistributors (e.g. OpenSUSE) and add CI to test redistribution. PR #​773 by @​tiangolo.
Internal
  • 👷 Do not use the cache for dependencies when publishing to PyPI. PR #​774 by @​tiangolo.

v0.11.0

Compare Source

Breaking Changes
Refactors
  • 🔧 Migrate from Black, isort, flake8, autoflake, pyupgrade to Ruff. PR #​763 by @​tiangolo.
Internal

v0.10.0

Compare Source

Fixes
  • 🐛 Fix default value of None for CLI Parameters when the type is list | None and the default value is None. PR #​664 by @​theowisear.

v0.9.4

Compare Source

Features

v0.9.3

Compare Source

Fixes
  • 🐛 Fix evaluating stringified annotations in Python 3.10 (also from __future__ import annotations). PR #​721 by @​heckad.

v0.9.2

Compare Source

Fixes
  • 🐛 Fix display of default value for Enum parameters inside of a list, include docs and tests. PR #​473 by @​asieira.
  • 🐛 Update type annotations for show_default parameter and update docs for setting a "Custom default string". PR #​501 by @​plannigan.
Docs

v0.9.1

Compare Source

Fixes
Docs
Internal

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (rebase) March 23, 2024 19:42
@codecov-commenter
Copy link

codecov-commenter commented Mar 23, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.48%. Comparing base (8651274) to head (c9ba32b).
Report is 7 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #464      +/-   ##
==========================================
+ Coverage   96.33%   96.48%   +0.15%     
==========================================
  Files          19       19              
  Lines        1310     1310              
==========================================
+ Hits         1262     1264       +2     
+ Misses         48       46       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

auto-merge was automatically disabled March 23, 2024 19:43

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from cd6eedc to 3bba131 Compare March 27, 2024 00:40
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.10.0 fix(deps): update dependency typer to v0.11.0 Mar 27, 2024
@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from 3bba131 to e87c873 Compare March 29, 2024 02:17
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.11.0 fix(deps): update dependency typer to v0.11.1 Mar 29, 2024
@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from e87c873 to ea307a2 Compare March 30, 2024 03:12
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.11.1 fix(deps): update dependency typer to v0.12.0 Mar 30, 2024
@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from ea307a2 to f7b678e Compare April 5, 2024 01:43
@renovate renovate bot enabled auto-merge (rebase) April 5, 2024 01:43
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.12.0 fix(deps): update dependency typer to v0.12.1 Apr 5, 2024
auto-merge was automatically disabled April 5, 2024 01:45

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from f7b678e to f2d00c2 Compare April 8, 2024 23:23
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.12.1 fix(deps): update dependency typer to v0.12.2 Apr 8, 2024
@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from f2d00c2 to 1770b23 Compare April 9, 2024 18:18
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.12.2 fix(deps): update dependency typer to v0.12.3 Apr 9, 2024
@renovate renovate bot enabled auto-merge (rebase) July 17, 2024 08:20
@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch 3 times, most recently from 01e4e30 to 8d7a85b Compare July 17, 2024 10:21
auto-merge was automatically disabled July 17, 2024 10:23

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from 8d7a85b to b99699d Compare July 17, 2024 10:32
@renovate renovate bot enabled auto-merge (rebase) July 17, 2024 10:32
auto-merge was automatically disabled July 17, 2024 10:34

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from b99699d to 42ee0af Compare August 7, 2024 01:38
@renovate renovate bot enabled auto-merge (rebase) August 7, 2024 01:38
auto-merge was automatically disabled August 7, 2024 01:40

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from 42ee0af to c9ba32b Compare August 17, 2024 04:51
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.12.3 fix(deps): update dependency typer to v0.12.4 Aug 17, 2024
@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from c9ba32b to b7c52b6 Compare August 25, 2024 01:54
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.12.4 fix(deps): update dependency typer to v0.12.5 Aug 25, 2024
@renovate renovate bot enabled auto-merge (rebase) August 27, 2024 18:12
@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from b7c52b6 to 2ef6d87 Compare August 27, 2024 18:12
auto-merge was automatically disabled August 27, 2024 18:14

Base branch requires signed commits

@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from 2ef6d87 to 830c661 Compare November 7, 2024 21:29
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.12.5 fix(deps): update dependency typer to v0.13.0 Nov 7, 2024
@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from 830c661 to 1138e8e Compare November 19, 2024 01:29
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.13.0 fix(deps): update dependency typer to v0.13.1 Nov 19, 2024
@renovate renovate bot force-pushed the renovate/typer-0.x-lockfile branch from 1138e8e to df791c1 Compare November 29, 2024 01:01
@renovate renovate bot changed the title fix(deps): update dependency typer to v0.13.1 fix(deps): update dependency typer to v0.14.0 Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant