Skip to content

Commit

Permalink
Fix: wrong version in virtual environment (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSasser authored Jun 24, 2021
1 parent 5064802 commit 93e3ea8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 31 deletions.
7 changes: 5 additions & 2 deletions matrixctl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@

from __future__ import annotations

from importlib.metadata import version
from pathlib import Path

from single_source import get_version


__author__: str = "Michael Sasser"
__email__: str = "[email protected]"
__version__: str = version("matrixctl")
__version__: str = (
get_version(__name__, Path(__file__).parent.parent) or "Unknown"
)

HOME: str = str(Path.home())

Expand Down
1 change: 1 addition & 0 deletions news/141.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed: Wrong version while developing in virtual environment.
51 changes: 22 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ paramiko = "^2.7.2"
toml = "^0.10.2"
ansible-runner = "^1.4.7"
attrs = "^21.2.0"
single-source = "^0.2.0"
sphinx = { version = ">=3.5.1,<5.0.0", optional = true }
sphinx-autodoc-typehints = { version = "^1.12.0", optional = true }
sphinxcontrib-programoutput = { version = ">=0.16,<0.18", optional = true }
Expand Down

0 comments on commit 93e3ea8

Please sign in to comment.