From c6f66b2d6e2f1c4bb6586b551fed96885e139376 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Mon, 25 Nov 2024 10:48:58 -0800 Subject: [PATCH] Changes to fix docs --- docs/source/conf.py | 9 +++++---- docs/source/references.rst | 2 +- pyproject.toml | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 083c8fe..f540b15 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,24 +12,25 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # +import importlib import os import sys sys.path.insert(0, os.path.abspath('../..')) sys.path.insert(0, os.path.abspath("../../..")) print(sys.path) -import wavinfo +import importlib # -- Project information ----------------------------------------------------- project = u'wavinfo' -copyright = u'2018-2023, Jamie Hardt' +copyright = u'2018-2024, Jamie Hardt' author = u'Jamie Hardt' # The short X.Y version -version = wavinfo.__short_version__ +version = "3.1" # The full version, including alpha/beta/rc tags -release = wavinfo.__version__ +release = importlib.metadata.version("wavinfo") # -- General configuration --------------------------------------------------- diff --git a/docs/source/references.rst b/docs/source/references.rst index 4006cb2..0825069 100644 --- a/docs/source/references.rst +++ b/docs/source/references.rst @@ -39,7 +39,7 @@ iXML Sampler Metadata ---------------- -* `RecordingBlogs.com — Sample chunk (of a Wave file)`_ +* `RecordingBlogs.com — Sample chunk (of a Wave file) `_ RIFF Metadata ------------- diff --git a/pyproject.toml b/pyproject.toml index a4a19f5..19e7eda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,8 +48,8 @@ wavinfo = 'wavinfo.__main__:main' [tool.poetry.dependencies] python = "^3.8" lxml = "~= 5.3.0" -sphinx_rtd_theme = {version= '>= 1.1.1', optional=true, extras=['doc']} -sphinx = {version= '>= 5.3.0', optional=true, extras=['doc']} +sphinx_rtd_theme = {version= '>= 1.1.1', optional=true} +sphinx = {version= '>= 5.3.0', optional=true} [tool.pyright] typeCheckingMode = "basic"