binary generation ok

This commit is contained in:
2026-02-22 00:43:16 +01:00
parent 88bd2c2787
commit a05a77842f
2 changed files with 20 additions and 16 deletions

View File

@@ -31,8 +31,9 @@ dynamic = ["version"]
[project.scripts]
testium = "testium:main"
[tool.setuptools.package-data]
docpkg = ["*.pdf"]
[tool.setuptools.packages.find]
where=["."]
exclude=["lua_func", "py_func"]
[tool.setuptools.dynamic]
version = {file = ["VERSION"]}

View File

@@ -46,21 +46,24 @@ def get_testium_version():
return (ver + " (binary release)")
# Executed from sources
if prefs.settings.git_supported:
git = import_module("git")
path = tm.get_main_dir()
try:
return repo_rev(path)
except git.InvalidGitRepositoryError:
pkg_rec = import_module("pkg_resources")
try:
if prefs.settings.git_supported:
git = import_module("git")
path = tm.get_main_dir()
try:
ret = pkg_rec.get_distribution("testium").version
_cached_versions.update({path: ret})
return str(ret) + " (wheel release)"
except:
return "Warning : testium not versioned"
else:
return "Warning git not supported in your settings, version of testium is unknown."
return repo_rev(path)
except git.InvalidGitRepositoryError:
pkg_rec = import_module("pkg_resources")
try:
ret = pkg_rec.get_distribution("testium").version
_cached_versions.update({path: ret})
return str(ret) + " (wheel release)"
except:
return "Warning : testium not versioned"
else:
return "Warning git not supported in your settings, version of testium is unknown."
except:
return ("Unknown")
def get_modifications(path : str)-> str: