Skip to content

Commit dedcf8c

Browse files
committed
libvcs(__init__, ci) Export __version__; fix docs path filter
why: gp_sphinx.config.make_linkcode_resolve() reads __version__ via getattr(package_module, "__version__", ""), falling back to "" and generating broken source-link URLs like blob/v/src/... The docs CI also never triggered on Python source changes because the paths-filter used libvcs/** instead of src/libvcs/** (src layout). what: - Export __version__ from .__about__ in __init__.py - Add __version__ to __all__ - Fix paths-filter: libvcs/** -> src/libvcs/** - Add workflow_dispatch trigger to docs.yml
1 parent 1f0c49f commit dedcf8c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
workflow_dispatch:
78

89
permissions:
910
contents: read
@@ -30,7 +31,7 @@ jobs:
3031
- 'docs/**'
3132
- 'examples/**'
3233
python_files:
33-
- 'libvcs/**'
34+
- 'src/libvcs/**'
3435
- pyproject.toml
3536
- uv.lock
3637

src/libvcs/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
from .sync.hg import HgSync
1111
from .sync.svn import SvnSync
1212

13+
from .__about__ import __version__
14+
1315
__all__ = [
16+
"__version__",
1417
"BaseSync",
1518
"CmdLoggingAdapter",
1619
"GitSync",

0 commit comments

Comments
 (0)