Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/lz4-0.1.dev1+g022d538-py3.11-linux-x86_64.egg/lz4/__init__.py: 75%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

4 statements  

1# Although the canonical way to get the package version is using pkg_resources 

2# as below, this turns out to be very slow on systems with lots of packages. 

3# So, until that is remedied, we'll import the version from a local file 

4# created by setuptools_scm. 

5 

6# from pkg_resources import get_distribution, DistributionNotFound 

7# try: 

8# __version__ = get_distribution(__name__).version 

9# except DistributionNotFound: 

10# # package is not installed 

11# pass 

12 

13from .version import version as __version__ 

14from ._version import ( # noqa: F401 

15 library_version_number, 

16 library_version_string, 

17) 

18 

19VERSION = __version__