Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 314029dc authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

use version from spot package

parent aa1a86eb
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -6,7 +6,7 @@ import os
import shlex
import shlex
import subprocess
import subprocess
import logging
import logging
import importlib
from importlib.metadata import version


# fallback values
# fallback values
# if there is searx.version_frozen module, and it is not possible to get the git tag
# if there is searx.version_frozen module, and it is not possible to get the git tag
@@ -74,8 +74,8 @@ def get_git_version():




try:
try:
    vf = importlib.import_module('searx.version_frozen')
    vf = version('spot')
    VERSION_STRING, VERSION_TAG, GIT_URL, GIT_BRANCH = vf.VERSION_STRING, vf.VERSION_TAG, vf.GIT_URL, vf.GIT_BRANCH
    VERSION_STRING = VERSION_TAG = vf
except ImportError:
except ImportError:
    try:
    try:
        try:
        try: