Skip to content

Commit 34bce7a

Browse files
committed
Update versioning
1 parent 3aeeabc commit 34bce7a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def is_non_standard_version(version):
9191
Determine if the given version string has more than 3 components (e.g., from a developer version).
9292
"""
9393

94-
return len(version.split(".")) > 3
94+
return len(version.split(".")) != 3
9595

9696
# based on pandas doc/source/conf.py
9797
def linkcode_resolve(domain, info):

plasticparcels/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
from plasticparcels.particlefile import * # noqa
33
from plasticparcels.utils import * # noqa
44

5-
from plasticparcels._version_setup import __version__, __version_tuple__ # noqa
5+
try:
6+
from plasticparcels._version_setup import __version__ # noqa
7+
except ModuleNotFoundError:
8+
__version__ = "unknown"

0 commit comments

Comments
 (0)