Skip to content
Snippets Groups Projects
Commit aa61d987 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Revert "Update how the package gets the version to avoid problem with pkg_resources"

This reverts commit fa563a9f.
parent fa563a9f
No related branches found
No related tags found
Loading
Pipeline #16822 passed
# To have the Version number in a single place, there's a VERSION file in the package root directory.
# Here we read that file.
from pathlib import Path
version_file = Path(__file__).resolve().parent.parent.parent / "VERSION"
__version__ = version_file.read_text().strip()
# to convert enstools into a namespace package, the version is now listed here and not in the level above
import pkg_resources # part of setuptools
version = pkg_resources.require("enstools-encoding")[0].version
__version__ = version
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment