Skip to content

Commit 080e0aa

Browse files
authored
Merge pull request #302 from code0-tech/feat/ai-orchestration
AI orchestration
2 parents 09da657 + 3b78b02 commit 080e0aa

18 files changed

Lines changed: 995 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,27 @@ jobs:
7474
- name: Compile helpers
7575
run: npm run build
7676

77+
pypi:
78+
runs-on: ubuntu-latest
79+
80+
defaults:
81+
run:
82+
shell: bash
83+
working-directory: build/python
84+
85+
steps:
86+
- uses: actions/checkout@v6
87+
- name: Set up uv
88+
uses: astral-sh/setup-uv@v8.1.0
89+
with:
90+
working-directory: 'build/python'
91+
version-file: '.tool-versions'
92+
enable-cache: false
93+
- name: Install dependencies
94+
run: uv sync
95+
- name: Generate python
96+
run: uv run scripts/generate.py
97+
- name: Run tests
98+
run: uv run pytest
99+
- name: Build distribution
100+
run: uv build

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,35 @@ jobs:
9999
run: npm version ${{ github.ref_name }} --git-tag-version=false
100100
- name: Publish package
101101
run: npm publish
102+
103+
pypi:
104+
runs-on: ubuntu-latest
105+
106+
environment: packages
107+
108+
permissions:
109+
id-token: write
110+
111+
defaults:
112+
run:
113+
shell: bash
114+
working-directory: build/python
115+
116+
steps:
117+
- uses: actions/checkout@v6
118+
- name: Set up uv
119+
uses: astral-sh/setup-uv@v8.1.0
120+
with:
121+
working-directory: 'build/python'
122+
version-file: '.tool-versions'
123+
enable-cache: false
124+
- name: Install dependencies
125+
run: uv sync
126+
- name: Set version
127+
run: uv version ${{ github.ref_name }}
128+
- name: Generate python
129+
run: uv run scripts/generate.py
130+
- name: Build distribution
131+
run: uv build
132+
- name: Publish package
133+
run: uv publish

build/python/.gitignore

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.nox/
42+
.coverage
43+
.coverage.*
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
*.py,cover
49+
.hypothesis/
50+
.pytest_cache/
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
local_settings.py
59+
db.sqlite3
60+
db.sqlite3-journal
61+
62+
# Flask stuff:
63+
instance/
64+
.webassets-cache
65+
66+
# Scrapy stuff:
67+
.scrapy
68+
69+
# Sphinx documentation
70+
docs/_build/
71+
72+
# PyBuilder
73+
target/
74+
75+
# Jupyter Notebook
76+
.ipynb_checkpoints
77+
78+
# IPython
79+
profile_default/
80+
ipython_config.py
81+
82+
# pyenv
83+
.python-version
84+
85+
# pipenv
86+
Pipfile.lock
87+
88+
# PEP 582
89+
__pypackages__/
90+
91+
# Celery stuff
92+
celerybeat-schedule
93+
celerybeat.pid
94+
95+
# SageMath parsed files
96+
*.sage.py
97+
98+
# Environments
99+
.env
100+
.venv
101+
env/
102+
venv/
103+
ENV/
104+
env.bak/
105+
venv.bak/
106+
107+
# Spyder project settings
108+
.spyderproject
109+
.spyproject
110+
111+
# Rope project settings
112+
.ropeproject
113+
114+
# mkdocs documentation
115+
/site
116+
117+
# mypy
118+
.mypy_cache/
119+
.dmypy.json
120+
dmypy.json
121+
122+
# Pyre type checker
123+
.pyre/
124+
125+
# IDE
126+
.vscode/
127+
.idea/
128+
*.swp
129+
*.swo
130+
*~
131+
132+
# OS
133+
.DS_Store
134+
Thumbs.db
135+
136+
# uv
137+
.venv/
138+
139+
# generated protobuf
140+
src/tucana/generated/*/*.py

build/python/.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uv 0.11.14

build/python/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../README.md

build/python/pyproject.toml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[build-system]
2+
requires = ["setuptools>=68", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "tucana"
7+
version = "0.0.0"
8+
description = "Code0 GRPC Protocol"
9+
readme = "README.md"
10+
requires-python = ">=3.10"
11+
license = "MIT"
12+
authors = [
13+
{ name = "Code0 UG (haftungsbeschränkt)", email = "info@code0.tech" }
14+
]
15+
keywords = ["grpc", "protobuf", "code0"]
16+
classifiers = [
17+
"Development Status :: 3 - Alpha",
18+
"Intended Audience :: Developers",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
]
24+
dependencies = [
25+
"protobuf>=5.0",
26+
"grpcio>=1.64"
27+
]
28+
29+
[project.optional-dependencies]
30+
dev = [
31+
"grpcio-tools>=1.64",
32+
"pytest>=7.0",
33+
"pytest-cov>=4.0",
34+
]
35+
36+
[project.urls]
37+
Homepage = "https://github.com/code0-tech/tucana"
38+
Repository = "https://github.com/code0-tech/tucana"
39+
Issues = "https://github.com/code0-tech/tucana/issues"
40+
Changelog = "https://github.com/code0-tech/tucana/releases"
41+
42+
[tool.setuptools]
43+
package-dir = {"" = "src"}
44+
45+
[tool.setuptools.packages.find]
46+
where = ["src"]
47+
48+
[tool.pytest.ini_options]
49+
testpaths = ["tests"]
50+
python_files = "test_*.py"
51+
52+
[tool.uv]
53+
managed = true
54+
dev-dependencies = [
55+
"grpcio-tools>=1.64",
56+
"pytest>=7.0",
57+
"pytest-cov>=4.0",
58+
]
59+

0 commit comments

Comments
 (0)