Add Versioning Support from version.txt (#3140)

Co-authored-by: Jonathan Shimwell <mail@jshimwell.com>
Co-authored-by: Paul Wilson <paul.wilson@wisc.edu>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Ahnaf Tahmid Chowdhury 2025-02-22 05:48:11 +06:00 committed by GitHub
parent fefe825e65
commit a2a5c2af19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 153 additions and 44 deletions

View file

@ -68,10 +68,14 @@ copyright = '2011-2024, Massachusetts Institute of Technology, UChicago Argonne
# |version| and |release|, also used in various other places throughout the
# built documents.
#
import openmc
# The short X.Y version.
version = "0.15"
version = ".".join(openmc.__version__.split('.')[:2])
# The full version, including alpha/beta/rc tags.
release = "0.15.1-dev"
release = openmc.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.