diff --git a/CHANGELOG.md b/CHANGELOG.md index 2618be6..8632897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2024-01-02] 1.0.4 +- shpinx: fix conf.py, was still using old `get_version` function + ## [2024-01-02] 1.0.3 - docs: added docs own `requirements.txt` with sphinx rtd theme (#19) - build: now build automatically reads the current git tag, instead of relying diff --git a/drypy/docs/conf.py b/drypy/docs/conf.py index b015f7c..804026c 100644 --- a/drypy/docs/conf.py +++ b/drypy/docs/conf.py @@ -19,9 +19,17 @@ # import os import sys + +from datetime import datetime +from subprocess import check_output + + sys.path.insert(0, os.path.abspath('../..')) -import drypy + +def get_version(): + return check_output(['git', 'describe',]).decode('ascii').strip() + # -- General configuration ------------------------------------------------ @@ -53,24 +61,22 @@ # General information about the project. project = 'drypy' -copyright = '2017-2020, Daniele Zanotelli' +copyright = f'2017-{datetime.now().year}, Daniele Zanotelli' author = 'Daniele Zanotelli' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = drypy.get_version(short=True) -# The full version, including alpha/beta/rc tags. -release = drypy.get_version() +version = get_version() +release = get_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = 'en' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.