File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2323 'Programming Language :: Python :: 3.7' ,
2424 'Programming Language :: Python :: 3.8' ,
2525 'Programming Language :: Python :: 3.9' ,
26+ 'Programming Language :: Python :: 3.10' ,
27+ 'Programming Language :: Python :: 3.11' ,
28+ 'Programming Language :: Python :: 3.12' ,
2629 'Topic :: Scientific/Engineering' ,
2730]
2831
Original file line number Diff line number Diff line change 1- from pkg_resources import DistributionNotFound , get_distribution
1+ try :
2+ from importlib .metadata import version , PackageNotFoundError
3+ except ImportError :
4+ # Python < 3.8
5+ from importlib_metadata import version , PackageNotFoundError
26
37from .accessor import XoakAccessor
48from .index import IndexAdapter , IndexRegistry
59
610try :
7- __version__ = get_distribution (__name__ ). version
8- except DistributionNotFound : # pragma: no cover
11+ __version__ = version (__name__ )
12+ except PackageNotFoundError : # pragma: no cover
913 # package is not installed
1014 pass
You can’t perform that action at this time.
0 commit comments