Skip to content

Commit

Permalink
Merge pull request #31 from brightway-lca/version-information-fix
Browse files Browse the repository at this point in the history
Fix Dash/Underscore Issue in Package Name
  • Loading branch information
cmutel authored Aug 23, 2023
2 parents d72de26 + 6babefa commit eaad673
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bw_processing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def as_integer(version_str: str) -> Union[int, str]:

return tuple(
as_integer(v)
for v in importlib.metadata.version("bw_processing")
for v in importlib.metadata.version("bw-processing")
.strip()
.split(".")
)
Expand Down
5 changes: 5 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@

from bw_processing.errors import InvalidName
from bw_processing.utils import (
get_version_tuple,
check_name,
check_suffix,
dictionary_formatter,
load_bytes,
)


def test_get_version_tuple():
assert isinstance(get_version_tuple(), tuple)


def test_load_bytes():
obj = BytesIO()
np.save(obj, np.arange(10), allow_pickle=False)
Expand Down

0 comments on commit eaad673

Please sign in to comment.