chore: bootstrap project scaffold
CI / test (push) Canceled after 0s

Set up the codeberg-to-gitea-migrator project: Python package
with src/ layout (hatchling, ruff, pytest), GPL-3.0-or-later
license, CITATION.cff, README, ADRs for stack/license/forge, and
DOX-structured AGENTS.md. Add Gitea Actions CI.

The package is a stub; migration modules land in follow-up commits.
This commit is contained in:
AlexKucera committed 2026-08-11 09:46:13 +02:00
1 parent ddca225fde
commit 601cf4c41e
19 files changed
+1125

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# src/codeberg_to_gitea_migrator
## Purpose
Python package implementing the Codeberg → self-hosted Gitea migration: git
mirror push plus issues/PRs, releases/assets, and labels/milestones via the
respective REST/migration APIs. Currently a stub — migration modules land here.
## Ownership
Project maintainer (Alexander Kucera). Import path: `codeberg_to_gitea_migrator`.
## Local Contracts
- `src/` layout; wheel `packages = ["src/codeberg_to_gitea_migrator"]` (root `pyproject.toml`).
- `__init__.py` holds the single `__version__` string — the version source of truth for the build.
- Distribution name `codeberg-to-gitea-migrator`; import name `codeberg_to_gitea_migrator` (dashes → underscores).
- Runtime deps are declared in root `pyproject.toml` `[project] dependencies` and added when a feature first needs them (none yet).
## Work Guidance
- ADR-0001 records the Python stack; ADR-0003 records the Gitea forge + CI.
- Prefer one module per migration concern (mirror, issues, releases, labels) over a monolith.
- Target Python ≥ 3.11; ruff line-length 100.
## Verification
- `pytest` (testpaths = `tests`) from the repo root.
- `ruff check .` and `ruff format --check .`.
## Child DOX Index
- No children yet.
@@ -0,0 +1,3 @@
"""codeberg-to-gitea-migrator: Codeberg (Forgejo) -> self-hosted Gitea migrator."""
__version__ = "0.1.0"