Skip to content

Commit

Permalink
Fixed sphinx version in requirements.txt (#52)
Browse files Browse the repository at this point in the history
* Updated supported sphinx version to 2.2

* Fixed CLICK_VERSION to semantic versioning

semantic versioning can hae additional labels
after <patch>. e.g. prerelease. the previous way
of splitting CLICK_VERSION would not work when
testing against newer development versions of
click. This patch takes care of that.
  • Loading branch information
ahmed-masud authored and stephenfin committed Oct 5, 2019
1 parent 7cdab18 commit 55633c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pbr>=2.0
sphinx>=1.5,<2.2
sphinx>=1.5,<2.3
2 changes: 1 addition & 1 deletion sphinx_click/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from sphinx.util import logging

LOG = logging.getLogger(__name__)
CLICK_VERSION = tuple(int(x) for x in click.__version__.split('.'))
CLICK_VERSION = tuple(int(x) for x in click.__version__.split('.')[0:2])


def _indent(text, level=1):
Expand Down

0 comments on commit 55633c1

Please sign in to comment.