docs: strip .editable suffix from version.

This shows up in CI builds as well, since those use `pip install -e`.
This commit is contained in:
Catherine 2024-01-04 11:17:50 +00:00
parent c00e770f01
commit e356ee2cac

View file

@ -4,7 +4,7 @@ sys.path.insert(0, os.path.abspath("."))
import amaranth
project = "Amaranth HDL toolchain"
version = amaranth.__version__
version = amaranth.__version__.replace(".editable", "")
release = version.split("+")[0]
copyright = "2020—2023, Amaranth HDL developers"