Skip to content

Commit

Permalink
asyncclick target
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored and stephenfin committed May 30, 2022
1 parent 75efe98 commit 4fa1f04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion sphinx_click/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import typing as ty
import warnings

import click
try:
import asyncclick as click
except ImportError:
import click
from docutils import nodes
from docutils.parsers import rst
from docutils.parsers.rst import directives
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[tox]
minversion = 2.0
envlist = py{37,38,39}-click{7,8},py{310}-click8,style,docs
envlist = py{37,38,39}-click{7,8,8-async},py{310}-click{8,8-async},style,docs

[testenv]
deps =
coverage
click7: click>=7.0,<8.0
click8: click>=8.0,<9.0
click8-async: asyncclick>=8.0,<9.0
commands =
coverage run --source={toxinidir}/sphinx_click -m unittest {posargs}
coverage report
Expand Down

0 comments on commit 4fa1f04

Please sign in to comment.