Files
codeberg-to-gitea-migrator/pyproject.toml
T
AlexKucera ab43b0311e feat: implement Codeberg → Gitea repo migrator
Replay git (mirror + LFS), labels, milestones, issues & PRs (with
comments), and releases (with assets) entity-by-entity over the shared
Forgejo/Gitea REST API. Two-pass issue/PR creation rewrites #NNN and
URL cross-references to the target number space; deleted-branch PR
heads are recreated as refs/heads/_pr/<n>.

CLI: codeberg-to-gitea migrate owner/name  (CODEBERG_TOKEN/GITEA_TOKEN)
Verified end-to-end on AlexKucera/helm: 283 issues, 1 PR, 19 labels,
219 comments, git history, with cross-refs correctly rewritten.
2026-08-11 11:12:06 +02:00

32 lines
914 B
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "codeberg-to-gitea-migrator"
version = "0.1.0"
description = "Migrate repositories (code, issues & PRs, releases & assets, labels & milestones) from Codeberg to a self-hosted Gitea instance."
readme = "README.md"
requires-python = ">=3.11"
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
authors = [{ name = "Alexander Kucera", email = "a.kucera@babylondreams.de" }]
keywords = ["migration", "codeberg", "gitea", "forgejo", "repository-migration"]
dependencies = ["httpx>=0.27", "typer>=0.12"]
[project.optional-dependencies]
dev = ["pytest", "ruff"]
[project.scripts]
codeberg-to-gitea = "codeberg_to_gitea_migrator.cli:app"
[tool.hatch.build.targets.wheel]
packages = ["src/codeberg_to_gitea_migrator"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.pytest.ini_options]
testpaths = ["tests"]