Commit e45e8a5
committed
__init__(version) Export __version__ from __about__
why: gp_sphinx.config.make_linkcode_resolve() reads __version__ via
getattr(package_module, "__version__", ""), falling back to "" and
generating broken sphinx source-link URLs like blob/v/src/...
what:
- Add from .__about__ import __version__ to __init__.py
- Add __all__ = ["__version__"]1 parent b842845 commit e45e8a5
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
0 commit comments