Fix(python-generator): prevent from internal namespace error #55

Merged
jakob.scheid merged 2 commits from fix/project-dir-invalid-namespace-error into main 2026-09-28 22:36:32 +02:00
Owner

Prevent from internal namespace error

This pull request fixes the Python documentation generator namespace determining directory name handling: The path is now completely resolved to also support .. There is a fallback value for the case the the directory name is /—in this case, the name of the resolved path would be an empty string. The value of the fallback is irrelevant because the root package namespace name is not included in the output and only the root package directory can be /.

The changelog is extended by an entry for this fix.

Related issues

Closes #53

# Prevent from internal namespace error This pull request fixes the Python documentation generator namespace determining directory name handling: The path is now completely resolved to also support `.`. There is a fallback value for the case the the directory name is `/`—in this case, the name of the resolved path would be an empty string. The value of the fallback is irrelevant because the root package namespace name is not included in the output and only the root package directory can be `/`. The changelog is extended by an entry for this fix. ## Related issues Closes #53
jakob.scheid added this to the 0.2.1 milestone 2026-09-28 22:33:51 +02:00
jakob.scheid added the Kind/Bug
Priority
Critical
1
Kind/Urgent
labels 2026-09-28 22:33:51 +02:00
jakob.scheid added this to the Project Board project 2026-09-28 22:33:51 +02:00
jakob.scheid moved this to Review in Project Board on 2026-09-28 22:34:28 +02:00
jakob.scheid added 2 commits 2026-09-28 22:35:45 +02:00
The path to the directory is now completely resolved in
PythonDocumentationGenerator._namespace to prevent from empty path names
if the path is '.'. A fallback was also added for the case that the path
is '/'; the fallback value is irrelevant as the root namespace name is
not included in the output and only the root package path can be '/'.
Added a changelog entry for the namespace name error of the Python
project documentation generator.
jakob.scheid force-pushed fix/project-dir-invalid-namespace-error from b1213e1f24 to 8881f2d46a 2026-09-28 22:35:45 +02:00 Compare
jakob.scheid merged commit 6d1656745e into main 2026-09-28 22:36:32 +02:00
jakob.scheid deleted branch fix/project-dir-invalid-namespace-error 2026-09-28 22:36:32 +02:00
jakob.scheid moved this to Done in Project Board on 2026-09-28 22:36:36 +02:00
Sign in to join this conversation.