Skip to content

Commit 03bbb87

Browse files
committed
chore(deps): refactor structure and update deps
1 parent 48ad491 commit 03bbb87

3 files changed

Lines changed: 23 additions & 10 deletions

File tree

.containifyci/containifyci.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,27 @@ import (
1212
"github.com/containifyci/engine-ci/protos2"
1313
)
1414

15+
func registryAuth() map[string]*protos2.ContainerRegistry {
16+
return map[string]*protos2.ContainerRegistry{
17+
"docker.io": {
18+
Username: "env:DOCKER_USER",
19+
Password: "env:DOCKER_TOKEN",
20+
},
21+
"ghcr.io": {
22+
Username: "USERNAME",
23+
Password: "env:GHCR_TOKEN",
24+
},
25+
}
26+
}
27+
1528
func main() {
1629
os.Chdir("../")
1730

1831
// Build Group 0
1932
enginepython := build.NewPythonServiceBuild("engine-python")
2033
enginepython.Folder = "."
34+
enginepython.File = "engine_python"
35+
enginepython.Registries = registryAuth()
2136

2237
//TODO: adjust the registries to your own container registry
2338
build.BuildGroups(

app.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
[project]
2-
name = "engine-python"
2+
name = "engine_python"
33
version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.13"
77
dependencies = [
8-
"fastapi>=0.119.0",
8+
"fastapi[standard]>=0.119.0",
99
"uvicorn>=0.37.0",
1010
]
11+
12+
[tool.setuptools]
13+
py-modules = ["engine_python"]
14+
15+
[project.scripts]
16+
engine-python = "engine_python:main"

0 commit comments

Comments
 (0)