Commit ca35668 Lion Krischer
committed
1 parent 8c14982 commit ca35668 Copy full SHA for ca35668
File tree 3 files changed +20
-6
lines changed
3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ Landing page for all things **ASDF**: https://seismic-data.org
24
24
25
25
### Changelog
26
26
27
+ #### Version 0.8.1 (August 3, 2023)
28
+ * Fix a bug with the conda package.
29
+
27
30
#### Version 0.8.0 (August 3, 2023)
28
31
* Drop support for Python <= 3.8.
29
32
* Support for the latest versions of all dependencies including Python 3.11.
Original file line number Diff line number Diff line change 5
5
:license:
6
6
BSD 3-Clause ("BSD New" or "BSD Simplified")
7
7
"""
8
- from importlib . metadata import version , PackageNotFoundError
8
+ import sys
9
9
10
10
11
11
from .exceptions import ASDFException , ASDFWarning , WaveformNotInFileException
22
22
"get_sys_info" ,
23
23
]
24
24
25
- try :
26
- __version__ = version ("pyasdf" )
27
- except PackageNotFoundError :
28
- pass
25
+
26
+ if sys .version_info .minor >= 9 :
27
+ from importlib .metadata import version , PackageNotFoundError
28
+
29
+ try :
30
+ __version__ = version ("pyasdf" )
31
+ except PackageNotFoundError :
32
+ pass
33
+ else :
34
+ import pkg_resources
35
+
36
+ try :
37
+ __version__ = pkg_resources .get_distribution ("pyasdf" ).version
38
+ except pkg_resources .DistributionNotFound :
39
+ pass
29
40
30
41
31
42
def print_sys_info ():
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ authors = [
9
9
]
10
10
description = " Python module for the Adaptable Seismic Data Format (ASDF)."
11
11
readme = " README.md"
12
- requires-python = " >=3.9 "
12
+ requires-python = " >=3.7 "
13
13
license = {text = " BSD-3-Clause" }
14
14
classifiers = [
15
15
" Development Status :: 5 - Production/Stable" ,
You can’t perform that action at this time.
0 commit comments