diff --git a/poetry.lock b/poetry.lock index cdedee7..2af43b1 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1424,4 +1424,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "4c2e67076d1a74377a5e0b294a8a87e29339f55b332ea6c9603e5522a6f34aa9" +content-hash = "ad36067213ca9c9f21f29ce1cb1a1fb4f1f2b79cd5bcf76a187669c1081b501f" diff --git a/pyproject.toml b/pyproject.toml index 0f1824d..bc1adf1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "inductance" # version set in git tag -version = "0.1.0a1.post4.dev0+6b6695f.dev.1688154083" +version = "0.0.0" description = "Code for 2D inductance calculations" authors = ["Darren Garnier "] license = "MIT" @@ -14,8 +14,8 @@ numpy = "^1.24" numba = "^0.57" [tool.poetry.dev-dependencies] -poetry = "^1.4.0" -# nox = "^2023.4.22" +poetry = "^1.5.1" +nox = "^2023.4.22" nox-poetry = "^1.0.0" dunamai = "^1.17.0" @@ -29,7 +29,7 @@ folders = [ ] [build-system] -requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] +requires = ["poetry-core>=1.6.0", "poetry-dynamic-versioning"] build-backend = "poetry_dynamic_versioning.backend" [tool.black] diff --git a/src/inductance/__init__.py b/src/inductance/__init__.py index c1c561f..2fcc0fd 100644 --- a/src/inductance/__init__.py +++ b/src/inductance/__init__.py @@ -1,6 +1,9 @@ """Inductance.""" # this gets replaced with the package version during the build process -__version__ = "0.0.0" +try: + from ._version import __version__ # type: ignore +except ImportError: + __version__ = "0.0.0+unknown" # from . import elliptics, filaments, inductance