Skip to content

Commit

Permalink
remove verion file
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsteve committed Mar 14, 2024
1 parent 1d1b692 commit cf1ece0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ hermes_core = ["roentgen/data/*"]
packages = ["roentgen"]

[tool.setuptools_scm]
write_to = "roentgen/_version.py"

[tool.pytest]
minversion = 3.0
Expand Down
8 changes: 5 additions & 3 deletions roentgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
photons with matter (x-rays and gamma-rays).
"""
import os
from importlib.metadata import version, PackageNotFoundError

import astropy.units as u
from astropy.io import ascii
from astropy.table import QTable, Table

try:
from roentgen._version import __version__
except ImportError:
__version__ = "unknown"
__version__ = version(__name__)
except PackageNotFoundError:
# package is not installed
pass

__all__ = []

Expand Down

0 comments on commit cf1ece0

Please sign in to comment.