Skip to content

Commit

Permalink
SYS: Get version number from pyproject toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd OST committed May 31, 2024
1 parent 64ed790 commit c858dc2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion psychopy_visionscience/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
scientists.
"""

__version__ = '0.0.5'
import importlib.metadata

try:
__version__ = importlib.metadata.version("psychopy-visionscience")
except importlib.metadata.PackageNotFoundError:
__version__ = "0.dev"

# NOTE: Be sure to register entry points in the `pyproject.toml` file.

Expand Down

0 comments on commit c858dc2

Please sign in to comment.