From a6a1f12ae67202a1fac00702fe112a1524010c55 Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Mon, 15 Jul 2024 12:59:39 -0700 Subject: [PATCH] remove errant deepcopy --- doc/source/changelog.rst | 7 ++++++- pyproject.toml | 2 +- sphinxcontrib/typer/__init__.py | 6 ++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 3698780..91492bf 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -2,9 +2,14 @@ Change Log ========== -v0.3.2 (15-JUL-2024) +v0.3.3 (15-JUL-2024) ==================== +* Removed errant deepcopy introduced in last release. + +v0.3.2 (yanked) +=============== + * Implemented `Add blue waves theme. `_ * Implemented `Add red sands theme. `_ diff --git a/pyproject.toml b/pyproject.toml index 1e566f2..2423ac5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "sphinxcontrib-typer" -version = "0.3.2" +version = "0.3.3" description = "Auto generate docs for typer commands." authors = ["Brian Kohan "] license = "MIT" diff --git a/sphinxcontrib/typer/__init__.py b/sphinxcontrib/typer/__init__.py index 061ac44..214e39c 100644 --- a/sphinxcontrib/typer/__init__.py +++ b/sphinxcontrib/typer/__init__.py @@ -48,7 +48,7 @@ from typer.main import get_command as get_typer_command from typer.models import Context as TyperContext -VERSION = (0, 3, 2) +VERSION = (0, 3, 3) __title__ = "SphinxContrib Typer" __version__ = ".".join(str(i) for i in VERSION) @@ -563,9 +563,7 @@ def get_console(stderr: bool = False) -> Console: def run(self) -> t.Iterable[nodes.section]: self.env = self.state.document.settings.env - from copy import deepcopy - - command = deepcopy(self.load_root_command(self.arguments[0])) + command = self.load_root_command(self.arguments[0]) self.make_sections = "make-sections" in self.options self.nested = "show-nested" in self.options