From 34bce7aa01234807b94c065443957d51a92ab20d Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:12:43 +0200 Subject: [PATCH] Update versioning --- docs/conf.py | 2 +- plasticparcels/__init__.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 82a8fb5..303cc01 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -91,7 +91,7 @@ def is_non_standard_version(version): Determine if the given version string has more than 3 components (e.g., from a developer version). """ - return len(version.split(".")) > 3 + return len(version.split(".")) != 3 # based on pandas doc/source/conf.py def linkcode_resolve(domain, info): diff --git a/plasticparcels/__init__.py b/plasticparcels/__init__.py index 33ee3f8..f2caa7e 100644 --- a/plasticparcels/__init__.py +++ b/plasticparcels/__init__.py @@ -2,4 +2,7 @@ from plasticparcels.particlefile import * # noqa from plasticparcels.utils import * # noqa -from plasticparcels._version_setup import __version__, __version_tuple__ # noqa +try: + from plasticparcels._version_setup import __version__ # noqa +except ModuleNotFoundError: + __version__ = "unknown"