Skip to content

Commit

Permalink
Fix version lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
vulder committed Oct 20, 2024
1 parent 6787f70 commit 5ef4d1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 4 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down
3 changes: 1 addition & 2 deletions docs/source/vara-ts/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ef4d1a

Please sign in to comment.