Skip to content

Commit

Permalink
Infer version via importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-E-Rose committed Aug 29, 2024
1 parent 55a796c commit 879bdac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pubmed_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
Author: Titipat Achakulvisut, Daniel E. Acuna
"""
__version__ = "0.4.0"
import sys

if sys.version_info >= (3, 8):
from importlib.metadata import version
else:
from importlib_metadata import version

__version__ = version("pubmed_parser")

from .pubmed_oa_parser import (
list_xml_path,
parse_pubmed_xml,
Expand Down

0 comments on commit 879bdac

Please sign in to comment.