Skip to content

Commit

Permalink
fix #18
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Apr 3, 2024
1 parent c109f92 commit 2495bc1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
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
==========

v0.2.0
======

* Fixed typer 0.12.0 package split breaks upgrades. <https://github.com/sphinx-contrib/typer/issues/18>`_

v0.1.12
=======

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 = "sphinxcontrib-typer"
version = "0.1.12"
version = "0.2.0"
description = "Auto generate docs for typer commands."
authors = ["Brian Kohan <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -37,7 +37,7 @@ selenium = "^4.0.0"
webdriver-manager = ">=3.0.0,<5.0.0"
cairosvg = "^2.4.0"
lxml = ">=4.2.0,<6.0.0"
typer = {extras = ["all"], version = ">=0.6.1,<1.0.0"}
typer-slim = {extras = ["all"], version = ">=0.12.0,<1.0.0"}
pillow = ">=8.0.0"

[tool.poetry.group.dev.dependencies]
Expand Down
3 changes: 2 additions & 1 deletion sphinxcontrib/typer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@
from rich.theme import Theme
from sphinx import application
from sphinx.util import logging

from typer import rich_utils as typer_rich_utils
from typer.main import Typer, TyperGroup
from typer.main import get_command as get_typer_command
from typer.models import Context as TyperContext

VERSION = (0, 1, 12)
VERSION = (0, 2, 0)

__title__ = 'SphinxContrib Typer'
__version__ = '.'.join(str(i) for i in VERSION)
Expand Down
1 change: 0 additions & 1 deletion tests/click/complex/complex/commands/cmd_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import click


@click.command("status", short_help="Shows file changes.")
@pass_environment
def cli(ctx):
Expand Down
4 changes: 4 additions & 0 deletions tests/tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
from sphinx.application import Sphinx
from typer import __version__ as typer_version
import typing as t
import os
from pathlib import Path
Expand All @@ -14,6 +15,8 @@
import numpy as np
import json

TYPER_VERISON = tuple(int(v) for v in typer_version.split("."))

test_callbacks = {}

DOC_DIR = Path(__file__).parent.parent / 'doc'
Expand Down Expand Up @@ -396,6 +399,7 @@ def test_click_ex_inout():
shutil.rmtree(bld_dir.parent)


@pytest.mark.skipif(TYPER_VERISON >= (0, 11, 0), reason='upstream typer bug?')
def test_click_ex_complex():
"""
tests :make-sections: and :show-nested: options for multi level hierarchies
Expand Down

0 comments on commit 2495bc1

Please sign in to comment.