Skip to content

Commit

Permalink
Merge pull request #356 from WilliamJamieson/bugfix/pkg_resources
Browse files Browse the repository at this point in the history
Remove usage of `pkg_resources`
  • Loading branch information
mfixstsci authored Nov 25, 2024
2 parents bce46e3 + 80a2ec6 commit ccba629
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pysiaf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@
# Configure logging
logger = logging.getLogger(__name__)

from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
__version__ = 'unknown'
from .version import __version__

from .aperture import Aperture, HstAperture, JwstAperture, RomanAperture
from .constants import JWST_PRD_VERSION, JWST_PRD_DATA_ROOT, JWST_PRD_DATA_ROOT_EXCEL, HST_PRD_VERSION, \
Expand Down

0 comments on commit ccba629

Please sign in to comment.