From 5b29d620e0cf59b314f3d47457b67b9a39e27d7d Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 6 Sep 2019 16:13:50 -0400 Subject: Initial commit --- weekly/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 weekly/__init__.py (limited to 'weekly/__init__.py') diff --git a/weekly/__init__.py b/weekly/__init__.py new file mode 100644 index 0000000..873e2c3 --- /dev/null +++ b/weekly/__init__.py @@ -0,0 +1,6 @@ +from pkg_resources import get_distribution, DistributionNotFound +try: + __version__ = get_distribution(__name__).version +except DistributionNotFound: + # package is not installed + __version__ = 'unknown' -- cgit