Skip to content

Commit

Permalink
I dont know anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kleingeo committed Jun 22, 2024
1 parent c0938f3 commit 8a9a8a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
requires = [
"setuptools>=61.0",
"wheel",
"setuptools_scm[toml]>=6",
"setuptools_scm[toml]>=7",
]
build-backend = "setuptools.build_meta"

Expand Down
2 changes: 2 additions & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ python:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- docs

0 comments on commit 8a9a8a0

Please sign in to comment.