refactor: split codebase into submodules (closes #19) #24
Reference in New Issue
Block a user
Delete Branch "benvin/issue-19-submodules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Resolves #19 — refactors the flat module layout into a proper subpackage hierarchy with no functional changes.
New structure
Key points
@app.route()inmain.pyis now a single delegating call intoartifact/__init__.pyre-exports and thedocker_auth.pyshimUpstreamUnreachable,cache_single_artifact,_upstream_reachable,check_upstream_changedmoved frommain.pytoartifact/proxy.py; tests updated to patch at their new locationsuv build; Docker stack (make docker-up) starts cleanTest plan
make test— all 187 tests passuv build --wheelsucceedsmake docker-upstarts all services healthy/health,/,/v2/endpoints respond correctlycache/redis.py, database/postgres.py, and remote/{base,generic,helm,npm,python,rpm}.py replace the flat modules. All public symbols re-exported from their package __init__.py for backwards compatibility. No functional changes; all 187 tests pass. Closes #19