aboutsummaryrefslogtreecommitdiff
path: root/newspipe/web/__init__.py
blob: 16d84cc5746538844f1a87e82fab13424763d6ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
__author__ = "Cedric Bonhomme"
__version__ = "$Revision: 9.0 $"
__date__ = "$Date: 2016/11/14 $"
__revision__ = "$Date: 2020/02/27 $"
__copyright__ = "Copyright (c) Cedric Bonhomme"
__license__ = "GPLv3"

import os
import subprocess

BASE_DIR = os.path.abspath(os.path.dirname(__file__))

__version__ = (
    os.environ.get("PKGVER")
    or subprocess.run(["git",
                       "-C",
                       BASE_DIR,
                       "describe",
                       "--tags"], stdout=subprocess.PIPE)
    .stdout.decode()
    .strip()
)
bgstack15