Skip to content

Commit

Permalink
Get version using modern api
Browse files Browse the repository at this point in the history
  • Loading branch information
endast committed May 21, 2024
1 parent 0a79db2 commit df92602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

from datetime import datetime
from importlib.metadata import version
from pathlib import Path

import pkg_resources
import yaml


Expand All @@ -29,7 +29,7 @@ def get_authors(cff_file):
project = "DeepRVAT"
copyright = f"{datetime.now().year}, {author_list}"
author = f"{author_list}"
version = pkg_resources.require("DeepRVAT")[0].version
version = version("deeprvat")
release = version

# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit df92602

Please sign in to comment.