diff --git a/docs/source/conf.py b/docs/source/conf.py index 54392b0f2..de489d0bc 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -6,6 +6,8 @@ # -- Path setup -------------------------------------------------------------- +# -- Project information ----------------------------------------------------- +import importlib.metadata as metadata import logging # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -15,18 +17,12 @@ import sys import benchbuild.utils -# -- Project information ----------------------------------------------------- -from pkg_resources import DistributionNotFound, get_distribution + +__version__ = metadata.version('varats') sys.path.insert(0, os.path.abspath('../../')) # pylint: skip-file - -try: - __version__ = get_distribution("varats").version -except DistributionNotFound: - pass - project = 'VaRA' copyright = '2023, Florian Sattler' author = 'Florian Sattler' diff --git a/docs/source/vara-ts/development.rst b/docs/source/vara-ts/development.rst index 7d23d2823..1aea8c280 100644 --- a/docs/source/vara-ts/development.rst +++ b/docs/source/vara-ts/development.rst @@ -131,8 +131,7 @@ Ensure that all branches are in the correct state. .. code-block:: console git checkout vara-dev - # Update varats/setup.py and varats-core/setup.py to the next version - # Update varats/setup.py to depend on the new core version + # Update pyproject.toml to the new version git commit -m "Bump version to $NEW_VERSION" git push origin vara-dev