Skip to content

Commit

Permalink
feat: add package __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Jan 21, 2024
1 parent b00036a commit fa583dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ build-backend = "poetry.core.masonry.api"
# https://python-semantic-release.readthedocs.io/en/latest/configuration.html
[tool.semantic_release]
version_variables = [
"setup.py:__version__"
"setup.py:__version__",
"nbiatoolkit/__init__.py:__version__",
]
version_toml = [
"pyproject.toml:tool.poetry.version",
Expand Down
6 changes: 5 additions & 1 deletion src/nbiatoolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# this file is used to import all the modules in the package
# this file is used to define the __all__ variable

# set __version__ variable
__version__ = "0.7.0"

# import the modules
from .nbia import NBIAClient
from .auth import OAuth2
Expand All @@ -17,5 +20,6 @@
'NBIAClient',
'OAuth2',
'setup_logger',
'NBIA_ENDPOINTS'
'NBIA_ENDPOINTS',
'__version__'
]

0 comments on commit fa583dd

Please sign in to comment.