Skip to content

Commit

Permalink
fix #46
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Mar 31, 2024
1 parent 73186dd commit edcc847
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion django_typer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
from typing import ParamSpec


VERSION = (1, 0, 8)
VERSION = (1, 0, 9)

__title__ = "Django Typer"
__version__ = ".".join(str(i) for i in VERSION)
Expand Down
2 changes: 1 addition & 1 deletion django_typer/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_console(stderr: bool = False) -> Console:

from typer import __version__ as typer_version

if (0, 4, 0) <= tuple(int(v) for v in typer_version.split(".")) < (0, 12, 0):
if (0, 4, 0) <= tuple(int(v) for v in typer_version.split(".")) < (0, 13, 0):
from typer import main as typer_main
from typer.models import ParamMeta

Expand Down
5 changes: 5 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Change Log
==========

v1.0.9
======

* Fixed `Support typer 0.12.0 <https://github.com/bckohan/django-typer/issues/46>`_

v1.0.8
======

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-typer"
version = "1.0.8"
version = "1.0.9"
description = "Use Typer to define the CLI for your Django management commands."
authors = ["Brian Kohan <bckohan@gmail.com>"]
license = "MIT"
Expand Down Expand Up @@ -47,7 +47,7 @@ click = "^8.1.0"
# typer's release history is full of breaking changes for minor versions
# given the reliance on some of its private internals we peg the typer
# version very strictly to bug fix releases for specific minor lines.
typer = ">=0.9.0,<=0.11.0"
typer = ">=0.9.0,<0.13.0"

# this should track typer's rich dependency, so long as our console
# patches still work - so be sure to test on the low end of the range
Expand Down

0 comments on commit edcc847

Please sign in to comment.