diff --git a/django_typer/__init__.py b/django_typer/__init__.py index 4613565c..811d0c26 100644 --- a/django_typer/__init__.py +++ b/django_typer/__init__.py @@ -47,7 +47,7 @@ model_parser_completer, # noqa: F401 ) -VERSION = (2, 3, 0) +VERSION = (2, 4, 0) __title__ = "Django Typer" __version__ = ".".join(str(i) for i in VERSION) diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 2d1f64f4..a8a54de3 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -2,6 +2,11 @@ Change Log ========== +v2.4.0 (2024-11-07) +=================== + +* Implemented `Support Typer 0.13 `_ + v2.3.0 (2024-10-13) =================== diff --git a/pyproject.toml b/pyproject.toml index f5ed26c5..ab478171 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "django-typer" -version = "2.3.0" +version = "2.4.0" description = "Use Typer to define the CLI for your Django management commands." authors = [ "Brian Kohan ", @@ -63,7 +63,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-slim = ">=0.12.5,<0.13.0" +typer-slim = ">=0.13.0,<0.14.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 diff --git a/tests/test_parser_completers.py b/tests/test_parser_completers.py index f1561c31..36e2dee5 100644 --- a/tests/test_parser_completers.py +++ b/tests/test_parser_completers.py @@ -251,14 +251,14 @@ def test_ip_field(self): result = StringIO() with contextlib.redirect_stdout(result): call_command("shellcompletion", "complete", "model_fields test --ip ") - result = result.getvalue() + result = result.getvalue().replace("\\", "") for ip in self.field_values["ip_field"]: self.assertTrue(ip in result) result = StringIO() with contextlib.redirect_stdout(result): call_command("shellcompletion", "complete", "model_fields test --ip 2001:") - result = result.getvalue() + result = result.getvalue().replace("\\", "") for ip in ["2001::1"]: self.assertTrue(ip in result) @@ -274,7 +274,7 @@ def test_ip_field(self): call_command( "shellcompletion", "complete", "model_fields test --ip 2a02:42" ) - result = result.getvalue() + result = result.getvalue().replace("\\", "") for ip in ["2a02:42fe::4", "2a02:42ae::4"]: self.assertTrue(ip in result) @@ -283,28 +283,28 @@ def test_ip_field(self): call_command( "shellcompletion", "complete", "model_fields test --ip 2a02:42f" ) - result = result.getvalue() + result = result.getvalue().replace("\\", "") for ip in ["2a02:42fe::4"]: self.assertTrue(ip in result) result = StringIO() with contextlib.redirect_stdout(result): call_command("shellcompletion", "complete", "model_fields test --ip 192.") - result = result.getvalue() + result = result.getvalue().replace("\\", "") for ip in ["192.168.1.1", "192.0.2.30"]: self.assertTrue(ip in result) result = StringIO() with contextlib.redirect_stdout(result): call_command("shellcompletion", "complete", "model_fields test --ip 192.1") - result = result.getvalue() + result = result.getvalue().replace("\\", "") for ip in ["192.168.1.1"]: self.assertTrue(ip in result) result = StringIO() with contextlib.redirect_stdout(result): call_command("shellcompletion", "complete", "model_fields test --ip :") - result = result.getvalue() + result = result.getvalue().replace("\\", "") for ip in ["::ffff:10.10.10.10"]: self.assertTrue(ip in result)