diff --git a/development.rst b/development.rst index 79be4445415e034c51d7a9dbf6d1ec802651deeb..96d9cca883662ee3946fd308fccd1a2f022d7d72 100644 --- a/development.rst +++ b/development.rst @@ -74,10 +74,6 @@ Versioning We use `CalendarVersioning <https://calver.org/>`__ with the YYYY.MM.DD format, i.e. for example ``2023.4.17`` or ``2023.12.31``. If multiple releases per day are necessary, the second overrides the first. -There is a global version of the Python package (in `src/mpsd_hpc_tools/__init__.py <src/mpsd_hpc_tools/__init__.py>`__) and a local version for each tool (i.e. for ``mpsd-quota`` in `src/mpsd_hpc_tools/quota.py <src/mpsd_hpc_tools/quota.py>`__ When a tool (such as ``mpsd-quota``) is asked for its version (``mpsd-quota --version``), it displays the local version. - -Version numbers need to be updated manual: update the local version when committing changes. Commit the global version to the same new date. (Could be automated.)es - diff --git a/src/mpsd_hpc_tools/__init__.py b/src/mpsd_hpc_tools/__init__.py index 2d009aa78d0c849fdc823804e3cd053e5b4945f4..a19e8b4107f526a485a869628a34acad45a6b2e4 100644 --- a/src/mpsd_hpc_tools/__init__.py +++ b/src/mpsd_hpc_tools/__init__.py @@ -1,5 +1,4 @@ """Collection of command line tools for MPSD HPC system.""" -# global version for the package (containing applications, such as -# `mpsd-quota`) -__version__ = "2023.4.25" +# version for the package +__version__ = "2023.4.27" diff --git a/src/mpsd_hpc_tools/quota.py b/src/mpsd_hpc_tools/quota.py index 402aa7fb53bcaa20f6235b6de639d7d8030bd996..6357a20f1516ccfc5c7ac7470627a13b188401ca 100644 --- a/src/mpsd_hpc_tools/quota.py +++ b/src/mpsd_hpc_tools/quota.py @@ -6,7 +6,7 @@ Options are available to - display this for another user - display in units of bytes (for debugging) -- show the version of this tool +- show the version of the mpsd_hpc_tools package - show some additional output """ @@ -20,9 +20,7 @@ import sys import textwrap from typing import Tuple from mpsd_hpc_tools.lib import humanise_size - -# version of the "mpsd-quota" tool -__version__ = "2023.4.25" +from mpsd_hpc_tools import __version__ def get_ceph_attribute(path: str, attribute: str) -> int: