chore: move CLI source metadata to Gitea

This commit is contained in:
HumbleTurtle
2026-09-17 09:40:02 -03:00
parent 2a4a054549
commit 2a78262754
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ INSTALL_PATHS = {
"terminal_protocol.py": "terminal/protocol.py", "terminal_protocol.py": "terminal/protocol.py",
"terminal_pty_manager.py": "terminal/pty_manager.py", "terminal_pty_manager.py": "terminal/pty_manager.py",
} }
CLI_GENERATED_SOURCE_REPO = os.environ.get("NAPSEER_CLI_SOURCE_REPO", "https://github.com/napseer/nap-cli") CLI_GENERATED_SOURCE_REPO = os.environ.get("NAPSEER_CLI_SOURCE_REPO", "https://gitea.powc-r.com/napseer/nap-cli")
CLI_GENERATED_SOURCE_REVISION = os.environ.get("NAPSEER_CLI_SOURCE_REVISION", "unresolved") CLI_GENERATED_SOURCE_REVISION = os.environ.get("NAPSEER_CLI_SOURCE_REVISION", "unresolved")
CLI_GENERATED_SOURCE_REVISION_STATUS = os.environ.get("NAPSEER_CLI_SOURCE_REVISION_STATUS", "unresolved") CLI_GENERATED_SOURCE_REVISION_STATUS = os.environ.get("NAPSEER_CLI_SOURCE_REVISION_STATUS", "unresolved")
HELP_TOKENS = {"help", "-h", "--help"} HELP_TOKENS = {"help", "-h", "--help"}
+2 -2
View File
@@ -21,7 +21,7 @@ def test_stdin_bootstrap_installs_verified_runtime_and_preserves_credentials(tmp
content = (source / installer.INSTALL_PATHS[name]).read_text() content = (source / installer.INSTALL_PATHS[name]).read_text()
item = {"name": name, "version": installer.CLI_RELEASE_VERSION, item = {"name": name, "version": installer.CLI_RELEASE_VERSION,
"bytes": len(content.encode()), "sha256": hashlib.sha256(content.encode()).hexdigest(), "bytes": len(content.encode()), "sha256": hashlib.sha256(content.encode()).hexdigest(),
"source_repo": "https://github.com/napseer/nap-cli", "source_revision": revision, "source_repo": "https://gitea.powc-r.com/napseer/nap-cli", "source_revision": revision,
"source_revision_status": "resolved", "contract_version": installer.CLI_DISTRIBUTION_CONTRACT_VERSION, "source_revision_status": "resolved", "contract_version": installer.CLI_DISTRIBUTION_CONTRACT_VERSION,
"minimum_contract_version": installer.CLI_MINIMUM_CONTRACT_VERSION, "minimum_contract_version": installer.CLI_MINIMUM_CONTRACT_VERSION,
"install_path": installer.INSTALL_PATHS[name], "mode": "0755"} "install_path": installer.INSTALL_PATHS[name], "mode": "0755"}
@@ -30,7 +30,7 @@ def test_stdin_bootstrap_installs_verified_runtime_and_preserves_credentials(tmp
payloads["/v1/scripts"] = {"schema_version": installer.CLI_BUNDLE_SCHEMA_VERSION, payloads["/v1/scripts"] = {"schema_version": installer.CLI_BUNDLE_SCHEMA_VERSION,
"bundle_id": "synthetic-bootstrap", "release_version": installer.CLI_RELEASE_VERSION, "bundle_id": "synthetic-bootstrap", "release_version": installer.CLI_RELEASE_VERSION,
"contract": {"current": installer.CLI_DISTRIBUTION_CONTRACT_VERSION, "minimum_supported": installer.CLI_MINIMUM_CONTRACT_VERSION}, "contract": {"current": installer.CLI_DISTRIBUTION_CONTRACT_VERSION, "minimum_supported": installer.CLI_MINIMUM_CONTRACT_VERSION},
"source": {"repo": "https://github.com/napseer/nap-cli", "revision": revision, "revision_status": "resolved"}, "items": items} "source": {"repo": "https://gitea.powc-r.com/napseer/nap-cli", "revision": revision, "revision_status": "resolved"}, "items": items}
class Provider(BaseHTTPRequestHandler): class Provider(BaseHTTPRequestHandler):
def log_message(self, *_args): def log_message(self, *_args):
+2 -2
View File
@@ -395,7 +395,7 @@ def fake_bundle(module, revision="a" * 40, broken_name=None):
"version": module.CLI_RELEASE_VERSION, "version": module.CLI_RELEASE_VERSION,
"bytes": len(content.encode("utf-8")), "bytes": len(content.encode("utf-8")),
"sha256": digest, "sha256": digest,
"source_repo": "https://github.com/napseer/nap-cli", "source_repo": "https://gitea.powc-r.com/napseer/nap-cli",
"source_revision": revision, "source_revision": revision,
"source_revision_status": "resolved", "source_revision_status": "resolved",
"contract_version": module.CLI_DISTRIBUTION_CONTRACT_VERSION, "contract_version": module.CLI_DISTRIBUTION_CONTRACT_VERSION,
@@ -418,7 +418,7 @@ def fake_bundle(module, revision="a" * 40, broken_name=None):
"minimum_supported": module.CLI_MINIMUM_CONTRACT_VERSION, "minimum_supported": module.CLI_MINIMUM_CONTRACT_VERSION,
}, },
"source": { "source": {
"repo": "https://github.com/napseer/nap-cli", "repo": "https://gitea.powc-r.com/napseer/nap-cli",
"revision": revision, "revision": revision,
"revision_status": "resolved", "revision_status": "resolved",
}, },