Skip to content

Commit 27d8b4e

Browse files
author
xfchen0912
committed
Update info.py
1 parent 0ccd134 commit 27d8b4e

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/scmagnify/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212
from . import tools as tl
1313
from .models import *
1414

15-
# __version__ = version("scMagnify")
16-
__version__ = "0.0.0"
15+
__version__ = version("scmagnify")

src/scmagnify/settings/_info.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __repr__(self) -> str:
3434

3535

3636
def get_latest_version(
37-
url="https://raw.githubusercontent.com/your-username/your-repo/main/pyproject.toml",
37+
url="https://raw.githubusercontent.com/LiHongCSBLab/scMagnify/main/pyproject.toml",
3838
timeout=5,
3939
) -> str | None:
4040
"""Fetch the latest package version from a remote pyproject.toml file."""
@@ -159,8 +159,8 @@ def _get_info() -> dict[str, dict]:
159159
# Repository URL
160160
info["repo_url"] = {
161161
"title": "Repository",
162-
"message": "https://github.com/your-username/your-repo",
163-
"value": "https://github.com/your-username/your-repo",
162+
"message": "https://github.com/LiHongCSBLab/scMagnify/",
163+
"value": "https://github.com/LiHongCSBLab/scMagnify/",
164164
}
165165

166166
return info
@@ -181,7 +181,7 @@ def info():
181181
from IPython.display import HTML, display
182182

183183
# Load logo
184-
logo_path = files("scmagnify").joinpath("data/logo_min.png")
184+
logo_path = files("scmagnify").joinpath("./logo_min.png")
185185
try:
186186
with open(logo_path, "rb") as f:
187187
img_bytes = f.read()

0 commit comments

Comments
 (0)