From 645b3023e824e345c623a273b4874490744a0e89 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sun, 9 Jul 2023 14:25:19 +0200 Subject: [PATCH] Be clear in docs about in-dev --- docs/conf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 3bffcf8a..d93a70dc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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.