Skip to content

Commit

Permalink
Refactor/version (#7)
Browse files Browse the repository at this point in the history
* Feat: adding a dynamic version system

* Refactor: adding affiliation
  • Loading branch information
jdiasn authored Apr 15, 2022
1 parent b11e4ba commit a46bf76
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lidarSuit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,22 @@

__author__ = "José Dias Neto"
__email__ = "[email protected]"
__version__ = "0.0.1"
__affiliation__="Delft University of Technology"


from pkg_resources import get_distribution, DistributionNotFound

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
try:
from .version import version as __version__
except ImportError:
raise ImportError(
"Failed to find (autogenerated) version.py. "
"This might be because you are installing from GitHub's tarballs, "
"use the PyPI ones."
)


from .lstConfig import *
Expand Down

0 comments on commit a46bf76

Please sign in to comment.