Skip to content

Commit

Permalink
remove __version__ import from conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyod committed Sep 2, 2024
1 parent 8f5415e commit 99c0ad8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
sudo apt-get install pandoc -y
pip install pip jupyter matplotlib pytest black wheel setuptools twine flake8 --quiet --upgrade
pip install . # Install the package
black . --check -l 120 --exclude="_version.py"
black . --check -l 120
flake8 streprogen --select=F811,F841,F401,E711,E712,E731
pytest streprogen --doctest-modules --color=yes # Run tests
pytest docs/examples --verbose --doctest-modules --color=yes # Run test_notebooks.py
Expand Down
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,18 @@

# General information about the project.
project = "streprogen"
copyright = "2017-2019, Tommy O."
copyright = "2017-2014, Tommy O."
author = "Tommy O."

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#

from streprogen import __version__

from importlib.metadata import version

__version__ = version("streprogen")

# The short X.Y version.
version = __version__
Expand Down

0 comments on commit 99c0ad8

Please sign in to comment.