Skip to content

Commit ce00d12

Browse files
committed
releasing 0.4.0
1 parent 4aad2f1 commit ce00d12

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _load_py_module(fname: str, pkg: str = "deprecate"):
2222
ABOUT = _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,

src/deprecate/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
and links to documentation and source code.
55
"""
66

7-
__version__ = "0.4.0rc0"
7+
__version__ = "0.4.0"
88
__docs__ = "Deprecation tooling"
99
__author__ = "Jiri Borovec"
1010
__author_email__ = "j.borovec+github[at]gmail.com"

0 commit comments

Comments
 (0)