Skip to content

Commit

Permalink
change to importlib from pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed Oct 24, 2023
1 parent 00f8f61 commit c128bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions starfile/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
from datetime import datetime
from pathlib import Path
from typing import TYPE_CHECKING, Union, Dict, List
from importlib.metadata import version

import pandas as pd
from pkg_resources import get_distribution

from .utils import TextBuffer
from .typing import DataBlock

if TYPE_CHECKING:
from os import PathLike

__version__ = get_distribution("starfile").version
__version__ = version("starfile")


class StarWriter:
Expand Down

0 comments on commit c128bb8

Please sign in to comment.