Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "QLever-UI"
version = "0.1.0"
version = "0.5.46"
description = "A user-friendly interface for the QLever SPARQL engine"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
18 changes: 8 additions & 10 deletions qlever/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"""

import os
import subprocess
import re
import environ

try:
Expand Down Expand Up @@ -201,18 +199,18 @@
STATIC_VERSION = "Git commit {} on {}".format(
GIT_HASH, GIT_HEAD.split("/")[-1]
)
except Exception as e:
print(e)
except OSError:
# Git Info not available
pass
except Exception:
# Should not happen
print("Error determining git version.")

if not STATIC_VERSION:
# get svn version info if git was not successful
from importlib.metadata import version, PackageNotFoundError
try:
versionInfo = (
subprocess.check_output("svn info -r HEAD;", shell=True)
).decode("utf-8")
STATIC_VERSION = re.search(r"(Revision: \d+)", versionInfo).group(1)
except:
STATIC_VERSION = "Version: {}".format(version("QLever-UI"))
except PackageNotFoundError:
pass

IMPORT_EXPORT_USE_TRANSACTIONS = True
Expand Down