Skip to content

Commit

Permalink
Added __version__ attribute to root package (#155)
Browse files Browse the repository at this point in the history
* Fixed segy version issue

* Added a newline

---------

Co-authored-by: Amit.Pendharkar <Amit.Pendharkar@tgs.com>
  • Loading branch information
amitpendharkar and Amit.Pendharkar authored Jul 29, 2024
1 parent 47679ce commit 9b1ba8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/segy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
"""'The' SEG-Y implementation."""
from importlib import metadata

from segy.factory import SegyFactory
from segy.file import SegyFile

__all__ = ["SegyFile", "SegyFactory"]

try:
__version__ = metadata.version("segy")
except metadata.PackageNotFoundError:
__version__ = "unknown"

0 comments on commit 9b1ba8f

Please sign in to comment.