File: __init__.py

package info (click to toggle)
python-workalendar 17.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,568 kB
  • sloc: python: 16,500; makefile: 34; sh: 5
file content (12 lines) | stat: -rw-r--r-- 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
import sys

if sys.version_info[:2] < (3, 8):  # coverage: exclude
    import importlib_metadata
else:  # coverage: exclude
    import importlib.metadata as importlib_metadata

try:
    #: Module version, as defined in PEP-0396.
    __version__ = importlib_metadata.version(__name__)
except importlib_metadata.PackageNotFoundError:  # pragma: no cover
    __version__ = "unknown"