Skip to content

Commit

Permalink
docs: don't show interrim versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Aug 15, 2023
1 parent a1d48eb commit 93e64e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = metadata.version("argon2-cffi")
# The short X.Y version.
version = release.rsplit(".", 1)[0]
if "dev" in (release := metadata.version("argon2-cffi")):
release = version = "UNRELEASED"
else:
# The short X.Y version.
version = release.rsplit(".", 1)[0]

# Move type hints into the description block, instead of the func definition.
autodoc_typehints = "description"
Expand Down

0 comments on commit 93e64e9

Please sign in to comment.