Be clear in docs about in-dev

This commit is contained in:
Hynek Schlawack 2023-07-09 14:25:19 +02:00
parent e048e1b9e3
commit 645b3023e8
No known key found for this signature in database
GPG Key ID: AE2536227F69F181
1 changed files with 5 additions and 2 deletions

View File

@ -70,8 +70,11 @@ copyright = f"2015, {author}"
# The full version, including alpha/beta/rc tags.
release = metadata.version("attrs")
# The short X.Y version.
version = release.rsplit(".", 1)[0]
if "dev" in release:
release = version = "UNRELEASED"
else:
# The short X.Y version.
version = release.rsplit(".", 1)[0]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.