diff --git a/libs/ktem/pyproject.toml b/libs/ktem/pyproject.toml index 948c0a86..b85233c0 100644 --- a/libs/ktem/pyproject.toml +++ b/libs/ktem/pyproject.toml @@ -7,6 +7,12 @@ include-package-data = true packages.find.exclude = ["ktem_tests*", "env*"] packages.find.include = ["ktem*"] +[tool.setuptools-git-versioning] +enabled = true +dev_template = "{tag}" +dirty_template = "{tag}" +tag_filter = "v?\\d+(\\.\\d+)*.*" + [project] name = "ktem" dynamic = ["version"] diff --git a/scripts/update_windows.bat b/scripts/update_windows.bat index 558df413..f41545ce 100644 --- a/scripts/update_windows.bat +++ b/scripts/update_windows.bat @@ -61,8 +61,8 @@ IF EXIST "pyproject.toml" ( ) ELSE ( ECHO Installing version: %app_version% @REM Work around for versioning control - python -m pip install -U git+https://github.com/Cinnamon/kotaemon.git@"%app_version%"#subdirectory=libs/kotaemon - python -m pip install -U git+https://github.com/Cinnamon/kotaemon.git@"%app_version%"#subdirectory=libs/ktem + python -m pip install git+https://github.com/Cinnamon/kotaemon.git@"%app_version%"#subdirectory=libs/kotaemon + python -m pip install git+https://github.com/Cinnamon/kotaemon.git@"%app_version%"#subdirectory=libs/ktem python -m pip install --no-deps git+https://github.com/Cinnamon/kotaemon.git@"%app_version%" ) || ( ECHO. && ECHO Update failed. You may need to run the update again.