Skip to content

Commit

Permalink
updates change log
Browse files Browse the repository at this point in the history
Signed-off-by: cribeul <christian.perwass@de.bosch.com>
  • Loading branch information
cribeul committed Dec 6, 2023
1 parent 199facc commit 3633c04
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
13 changes: 11 additions & 2 deletions docs/source/change-log.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
# Change Log

## 2023-12-01 Catharsys Release 3.2.33
## 2023-12-05 Catharsys Release 3.2.33

To update a develop installation to this version, you need to run `cathy install system --update`. This should clone new repositories and install all modified modules in the Anaconda environment.
To update a develop installation to this version, you need to run `cathy install system --update`. This should clone new repositories and install all modified modules in the Anaconda environment. You may also have to update the Catharsys installation in Blender using `cathy blender init -c [your config]`.

- **Blender 4.0 Support**
- Blender 4 has some breaking changes in its' Python code. The Catharsys code has been adapted to support Blender 3.x and 4.0.

- **Generative AI Action**
- A generative AI action repository is now added as `image-render-generative`.
- The module `image-render-workspace-examples` has an additional example configuration for using the generative rendering.

- **Miscellaneous**
- The JSON output of the product analysis is now better suited for further processing. The path to the missing artefacts is now given as tuple, where each part is an element of the path structure given in the production definition.
- You can now install a Blender modifier template module with the command `cathy install template std-modifier-blender`.

- **Web GUI**
- The module `nicegui` which is used by Catharsys has had a major version change with breaking changes. The Catharsys code has been adopted accordingly. The Catharsys installer of the web gui module now fixes the nicegui version to 1.4.5.

- **Bug Fixes**
- Import paths were not always set correctly in the ison parser.
- A relative configuration path was not processed correctly by the commands `cathy prod [...]`.


## 2023-11-20 Catharsys Release 3.2.32
Expand Down
17 changes: 9 additions & 8 deletions src/catharsys/setup/cmd/install_template_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

g_sCmdDesc = "Installs Catharsys workspaces"


####################################################################
class CTemplateModuleInfo(NamedTuple):
sId: str = None
Expand All @@ -55,6 +56,7 @@ class CTemplateModuleInfo(NamedTuple):

# endclass


####################################################################
def Run(
*,
Expand All @@ -67,7 +69,6 @@ def Run(
bYes: bool = False,
lVars: list = None,
):

pathTplTrg: Path
if not isinstance(sPathTrg, str):
pathTplTrg = Path.cwd()
Expand Down Expand Up @@ -101,6 +102,7 @@ def Run(

# enddef


####################################################################
def InstallTemplate(
*,
Expand All @@ -112,7 +114,6 @@ def InstallTemplate(
_sNewModuleName: str = None,
_lVars: list = None,
):

pathTrg = anypath.MakeNormPath(_pathTrg.absolute())

lTemplates = GetTemplateInfoList(_bForceDist=_bForceDist)
Expand Down Expand Up @@ -148,7 +149,6 @@ def InstallTemplate(
# Parse command line argument variables, if any
dicUserVarValues: dict[str, str] = {}
if isinstance(_lVars, list):

reVarDef = re.compile(r"^([a-zA-Z_][a-zA-Z0-9_]*)=([a-zA-Z_][a-zA-Z0-9_\-]*)")
for sVarDef in _lVars:
xMatch = reVarDef.match(sVarDef)
Expand Down Expand Up @@ -396,6 +396,9 @@ def InstallTemplate(
if isinstance(sValueKind, str):
if sValueKind == "python/class":
sVarValue = f"{sVarValue.upper()[0]}{sVarValue[1:]}"

elif sValueKind == "python/function":
sVarValue = f"{sVarValue.upper()[0]}{sVarValue[1:]}"
# endif
# endif
sNewReplace = sReReplace.replace("\\0", sVarValue)
Expand All @@ -419,7 +422,6 @@ def InstallTemplate(

####################################################################
def _DoRenameInFiles(_pathMain: Path, _lReFilesComp, _reSearch, _sReReplace: str):

for pathChild in _pathMain.iterdir():
if pathChild.is_dir():
_DoRenameInFiles(
Expand Down Expand Up @@ -459,9 +461,9 @@ def RenameInFiles(*, _pathMain: Path, _lReFiles: list[str], _sReSearch: str, _sR

# enddef


####################################################################
def _DoRenamePath(*, _pathAct: Path, _reSearch, _sReReplace: str, _lRenames: list, _bFile: bool, _bFolder: bool):

# Recurse first through child folders
for pathChild in _pathAct.iterdir():
if pathChild.is_dir():
Expand Down Expand Up @@ -520,7 +522,6 @@ def RenamePath(*, _pathMain: Path, _sReSearch: str, _sReReplace: str, _bFile: bo

####################################################################
def ListTemplates(*, _bForceDist: bool):

lTemplates = GetTemplateInfoList(_bForceDist=_bForceDist)

print("Available templates:")
Expand All @@ -537,9 +538,9 @@ def ListTemplates(*, _bForceDist: bool):

# enddef


####################################################################
def GetTemplateInfoList(*, _bForceDist: bool) -> list[CTemplateModuleInfo]:

lTemplates: list[CTemplateModuleInfo] = []

if util.IsDevelopInstall() and _bForceDist is False:
Expand Down Expand Up @@ -639,6 +640,7 @@ def Handler(*, pathModule, pathRepos):

# enddef


####################################################################
def _CreateInvalidHandler():
def Handler(*, pathModule, pathDist, sName, sVersion):
Expand All @@ -653,7 +655,6 @@ def Handler(*, pathModule, pathDist, sName, sVersion):

####################################################################
def GetRepoTemplateList(pathRepos: Path) -> list[str]:

lTemplateNameList: list[str] = []

module.ForEach(
Expand Down

0 comments on commit 3633c04

Please sign in to comment.