@@ -22,7 +22,7 @@ def _load_py_module(fname: str, pkg: str = "deprecate"):
2222ABOUT = _load_py_module ("__about__.py" )
2323
2424
25- def _load_readme_description (path_dir : str , homepage : str , version : str ) -> str :
25+ def _load_readme_description (path_dir : str , codebase_url : str , version : str ) -> str :
2626 """Load readme as description.
2727
2828 >>> _load_readme_description(_PATH_ROOT, "", "")
@@ -34,10 +34,11 @@ def _load_readme_description(path_dir: str, homepage: str, version: str) -> str:
3434 text = fp .read ()
3535
3636 # https://github.com/Borda/pyDeprecate/raw/main/docs/source/_static/images/...png
37- github_source_url = os .path .join (homepage , "raw" , version )
37+ github_source_url = os .path .join (codebase_url , "raw" , version )
3838 # replace relative repository path to absolute link to the release
3939 # do not replace all "docs" as in the readme we replace some other sources with particular path to docs
4040 text = text .replace (".assets/" , f"{ os .path .join (github_source_url , '.assets/' )} " )
41+ text = text .replace (".github/" , f"{ os .path .join (github_source_url , '.github/' )} " )
4142
4243 # codecov badge
4344 text = text .replace ("/branch/main/graph/badge.svg" , f"/release/{ version } /graph/badge.svg" )
@@ -66,7 +67,7 @@ def _load_readme_description(path_dir: str, homepage: str, version: str) -> str:
6667 package_dir = {"" : "src" },
6768 packages = find_packages (where = "src" ),
6869 long_description = _load_readme_description (
69- _PATH_ROOT , homepage = ABOUT .__source_code__ , version = f"v{ ABOUT .__version__ } "
70+ _PATH_ROOT , codebase_url = ABOUT .__source_code__ , version = f"v{ ABOUT .__version__ } "
7071 ),
7172 long_description_content_type = "text/markdown" ,
7273 include_package_data = True ,
0 commit comments