Skip to content

Commit

Permalink
Temporarily reenable Python 3.7 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lion Krischer committed Aug 3, 2023
1 parent 8c14982 commit ca35668
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Landing page for all things **ASDF**: https://seismic-data.org

### Changelog

#### Version 0.8.1 (August 3, 2023)
* Fix a bug with the conda package.

#### Version 0.8.0 (August 3, 2023)
* Drop support for Python <= 3.8.
* Support for the latest versions of all dependencies including Python 3.11.
Expand Down
21 changes: 16 additions & 5 deletions pyasdf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:license:
BSD 3-Clause ("BSD New" or "BSD Simplified")
"""
from importlib.metadata import version, PackageNotFoundError
import sys


from .exceptions import ASDFException, ASDFWarning, WaveformNotInFileException
Expand All @@ -22,10 +22,21 @@
"get_sys_info",
]

try:
__version__ = version("pyasdf")
except PackageNotFoundError:
pass

if sys.version_info.minor >= 9:
from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("pyasdf")
except PackageNotFoundError:
pass
else:
import pkg_resources

try:
__version__ = pkg_resources.get_distribution("pyasdf").version
except pkg_resources.DistributionNotFound:
pass


def print_sys_info():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
]
description = "Python module for the Adaptable Seismic Data Format (ASDF)."
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.7"
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit ca35668

Please sign in to comment.