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] [project.scripts]
testium = "testium:main" testium = "testium:main"
[tool.setuptools.package-data] [tool.setuptools.packages.find]
docpkg = ["*.pdf"] where=["."]
exclude=["lua_func", "py_func"]
[tool.setuptools.dynamic] [tool.setuptools.dynamic]
version = {file = ["VERSION"]} version = {file = ["VERSION"]}

View File

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