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:
1 parent
ddca225fde
commit
601cf4c41e
19 files changed
+1125
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# Stack: Python
|
||||
|
||||
Migrating between Codeberg (Forgejo API) and self-hosted Gitea means paging two
|
||||
REST APIs, shuffling release assets, and driving `git` for the code mirror. We
|
||||
build it in Python (>=3.11, `src/` layout, hatchling, ruff, pytest): strong
|
||||
HTTP/CLI libraries (`httpx`, `typer`), trivially scriptable, easy to test, and
|
||||
the natural fit for a one-off-to-reusable migration tool.
|
||||
|
||||
Considered: shell + curl/jq (zero deps, but paging/asset logic gets painful to
|
||||
test) and TypeScript/Node (fine, but no existing JS toolchain here to justify
|
||||
it).
|
||||
@@ -0,0 +1,6 @@
|
||||
# License: GPL-3.0-or-later
|
||||
|
||||
The project ships under GPL-3.0-or-later — the standing project default. Copyleft
|
||||
fits an internal/shared migration tool whose value is the code, not a commercial
|
||||
edge. Considered MIT/Apache-2.0 (permissive) and declined; no downstream
|
||||
proprietary consumer needs a permissive grant here.
|
||||
@@ -0,0 +1,11 @@
|
||||
# Forge and CI: Gitea + Gitea Actions
|
||||
|
||||
The repo already lives on the self-hosted Gitea instance at
|
||||
`git.babylondreams.de` (remote is a fact, not a choice). CI therefore runs as
|
||||
**Gitea Actions** — workflows in `.gitea/workflows/*.yml`, GitHub-Actions
|
||||
compatible — running the Python CI commands (`pip install -e ".[dev]"`, `ruff
|
||||
check`, `ruff format --check`, `pytest`).
|
||||
|
||||
Considered Woodpecker/Drone (`.woodpecker.yml`) — only relevant if a CI runner
|
||||
is installed on this instance; not assumed. Swap the workflow file if Woodpecker
|
||||
is later added.
|
||||
Reference in new issue
Block a user