Skip to content

Commit

Permalink
Moved to version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sami-m-g committed Mar 27, 2024
1 parent 492e4ca commit 3fa37bf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
5 changes: 1 addition & 4 deletions pyilcd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from .process_dataset import ProcessDataSet
from .source_dataset import SourceDataSet
from .unit_group_dataset import UnitGroupDataSet
from .utils import get_version_tuple
from .version import __version__

__all__ = (
"__version__",
Expand Down Expand Up @@ -94,6 +94,3 @@
"validate_zip_file_unit_group_dataset",
"UnitGroupDataSet",
)


__version__ = get_version_tuple()
18 changes: 0 additions & 18 deletions pyilcd/utils.py

This file was deleted.

15 changes: 15 additions & 0 deletions pyilcd/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""Version information for lxmlh package."""
import pathlib


def _get_version():
"""Return the version number."""
versionFile = pathlib.Path(__file__).parent / "VERSION"
# Read the version number from VERSION file
with open(versionFile, "r", encoding="UTF-8") as vf:
# The full version, including alpha/beta/rc tags
versionList = vf.read().strip().split(".")
return ".".join(versionList)


__version__ = _get_version()

0 comments on commit 3fa37bf

Please sign in to comment.