From 8a9a8a01544b72267c4960f8472bb049ba33de22 Mon Sep 17 00:00:00 2001 From: Geoff Klein Date: Fri, 21 Jun 2024 20:37:46 -0400 Subject: [PATCH] I dont know anymore --- docs/source/conf.py | 9 +++++---- pyproject.toml | 2 +- readthedocs.yml | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 3d74bc4..794b6ee 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,10 +16,11 @@ project = 'MedIPT' copyright = '2023, Geoff Klein' author = 'Geoff Klein' -from importlib.metadata import version as get_version -release: str = get_version("medipt") -# for example take major/minor -version: str = ".".join(release.split('.')[:2]) +# from importlib.metadata import version as get_version +# # release = get_version("medipt") +# release = get_version(root='..', relative_to=__file__) +# # for example take major/minor +version = medipt.__version__ # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/pyproject.toml b/pyproject.toml index 9cb0d22..7ab0f90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ requires = [ "setuptools>=61.0", "wheel", - "setuptools_scm[toml]>=6", + "setuptools_scm[toml]>=7", ] build-backend = "setuptools.build_meta" diff --git a/readthedocs.yml b/readthedocs.yml index 9f2e76d..390deb6 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -16,3 +16,5 @@ python: - requirements: docs/requirements.txt - method: pip path: . + extra_requirements: + - docs \ No newline at end of file