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"