Skip to content

Commit

Permalink
Merge pull request #2 from EasyScience/v0.6.0
Browse files Browse the repository at this point in the history
update version from 0.0.0 to 0.6.0
  • Loading branch information
rozyczko authored May 3, 2024
2 parents da4cfed + e236d86 commit 6e07179
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions src/easyscience/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@

__author__ = 'github.com/wardsimon'

from importlib import metadata

import numpy as np # noqa: F401 This is used in the other codebases that uses easyscience
import pint

from easyscience.__version__ import __version__ as __version__
from easyscience.Objects.Borg import Borg

try:
__version__ = metadata.version(__package__ or __name__)
except metadata.PackageNotFoundError:
__version__ = '0.0.0'

default_fitting_engine = 'lmfit'

ureg = pint.UnitRegistry()
Expand Down
2 changes: 1 addition & 1 deletion src/easyscience/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.0"
__version__ = "0.6.0"
2 changes: 1 addition & 1 deletion tests/unit_tests/utils/io_tests/test_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def __init__(self, a, b):
self.b = b
# Same as in __init__.py for easyscience
try:
version = metadata.version(__package__ or __name__)
version = metadata.version('easyscience') # 'easyscience' is the name of the package in 'setup.py
except metadata.PackageNotFoundError:
version = '0.0.0'

Expand Down

0 comments on commit 6e07179

Please sign in to comment.