chore: cut GitHub, make vrcx Gitea-only

- relink README/CHANGELOG/pyproject to git.engelgardt23.ru; drop github build badge
- update-check + clone URL point to Gitea; rename GITHUB_REPO -> REPO
- port CI to .gitea/workflows (self-contained, publishes Gitea release)
- remove .github (workflow + issue templates)
This commit is contained in:
Engelgardt23
2026-06-01 13:04:49 +03:00
parent fcf5424735
commit 5783b2c17d
11 changed files with 50 additions and 113 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ dependencies = ["rich>=13", "paramiko>=3"]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/Engelgardt23/vrcx"
Issues = "https://github.com/Engelgardt23/vrcx/issues"
Homepage = "https://git.engelgardt23.ru/engel/vrcx"
Issues = "https://git.engelgardt23.ru/engel/vrcx/issues"
[project.scripts]
vrcx = "vrcx.app:main"
+1 -1
View File
@@ -10,4 +10,4 @@ The single source of truth for the project version. Bump this before tagging
a release; CI reads the tag, the code reads this constant."""
__version__ = "0.2.0-dev"
GITHUB_REPO = "engel/vrcx" # на Forgejo (git.engelgardt23.ru)
REPO = "engel/vrcx" # self-hosted Gitea (git.engelgardt23.ru)
+2 -2
View File
@@ -19,7 +19,7 @@ from rich.console import Console
from rich.prompt import Confirm, Prompt
from rich.table import Table
from . import __version__, GITHUB_REPO
from . import __version__, REPO
from .bmc import BmcSession
from .collector import collect_host
from .config import load_config, Config
@@ -170,7 +170,7 @@ def _print_header(console: Console) -> None:
title = f"[bold cyan]vrcx v{__version__}[/] {t('tagline')}"
latest = check_for_update()
if latest:
release_url = f"https://git.engelgardt23.ru/{GITHUB_REPO}/releases/latest"
release_url = f"https://git.engelgardt23.ru/{REPO}/releases/latest"
notice = t("update_available", tag=latest)
header = Table.grid(expand=True)
header.add_column(justify="left", ratio=1)
+5 -5
View File
@@ -1,16 +1,16 @@
"""
Auto-update check.
On startup, ask GitHub for the latest release tag. If it's newer than the
local `__version__`, return the tag string — the caller renders a clickable
hint next to the title. Silent on any error (offline, rate-limit, etc.).
On startup, ask the Gitea instance for the latest release tag. If it's newer
than the local `__version__`, return the tag string — the caller renders a
clickable hint next to the title. Silent on any error (offline, rate-limit, etc.).
"""
from __future__ import annotations
import json
import urllib.request
from . import __version__, GITHUB_REPO
from . import __version__, REPO
def _parse_version(s: str) -> tuple[int, int, int]:
@@ -29,7 +29,7 @@ def check_for_update() -> str | None:
the currently running version. Returns None when up-to-date, offline,
rate-limited or on any error — caller decides how to render."""
try:
url = f"https://git.engelgardt23.ru/api/v1/repos/{GITHUB_REPO}/releases/latest"
url = f"https://git.engelgardt23.ru/api/v1/repos/{REPO}/releases/latest"
req = urllib.request.Request(url, headers={
"User-Agent": f"vrcx/{__version__}",
})