Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,15 @@ jobs:
uppercase: 'true'
prefix: 'tool_version_'

- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
version: '${{ env.TOOL_VERSION_UV }}'
python-version: '${{ env.TOOL_VERSION_PYTHON }}'

- name: Install and configure Poetry
uses: snok/install-poetry@a783c322200f0519c7926aa6faa857c4e23e9263 # v1.4.2
with:
version: ${{ env.TOOL_VERSION_POETRY }}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
working-directory: ./template

- name: Install dependencies
run: poetry install
run: uv sync --locked

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
Expand All @@ -59,12 +53,12 @@ jobs:
- name: Build and push to DockerHub
run: |
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/desktop:latest || true
poetry run python build_docker.py | docker buildx build \
uv run python build_docker.py | docker buildx build \
--platform linux/amd64 \
--push \
--tag ${{ secrets.DOCKERHUB_USERNAME }}/desktop:latest -f - files

- name: Build E2B template
run: poetry run python build_prod.py
run: uv run python build_prod.py
env:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python 3.14.7
poetry 2.5.1
uv 0.12.18
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"**/.next/**": true,
"**/.venv/**": true,
"**/.turbo/**": true,
"**/poetry.lock/**": true,
"**/uv.lock": true,
"**/__pycache__/**": true,
"**/.vercel/**": true,
".vscode/**": true,
Expand All @@ -26,7 +26,7 @@
"**/CVS": true,
"**/.DS_Store": true,
"lib/**": true,
"**/poetry.lock/**": true,
"**/uv.lock": true,
"**/.turbo/**": true,
"**/.vercel/**": true,
"**/.venv/**": true,
Expand Down
4 changes: 2 additions & 2 deletions examples/basic-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ E2B_API_KEY="your_api_key"
### 3. Install dependencies

```bash
poetry install
uv sync
```

### 4. Run

```bash
poetry run python main.py
uv run python main.py
```

1,084 changes: 0 additions & 1,084 deletions examples/basic-python/poetry.lock

This file was deleted.

21 changes: 8 additions & 13 deletions examples/basic-python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
[tool.poetry]
[project]
name = "basic-python"
version = "0.1.0"
description = ""
authors = ["Vasek Mlejnsky <vasek.mlejnsky@gmail.com>"]
authors = [{ name = "Vasek Mlejnsky", email = "vasek.mlejnsky@gmail.com" }]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
e2b-desktop = "^2.3.1"
pywebview = "^5.4"
python-dotenv = "^1.2.2"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires-python = ">=3.11"
dependencies = [
"e2b-desktop>=2.3.1,<3",
"pywebview>=5.4,<6",
"python-dotenv>=1.2.2,<2",
]
882 changes: 882 additions & 0 deletions examples/basic-python/uv.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This is the script CI and releases run.
1. Install the build dependencies:

```bash
poetry install
uv sync
```

2. Provide your credentials in `.env`:
Expand All @@ -22,13 +22,13 @@ E2B_API_KEY=e2b_***
3. Build the template:

```bash
poetry run python build_prod.py
uv run python build_prod.py
```

During development you can build the `desktop-dev` template instead:

```bash
poetry run python build_dev.py
uv run python build_dev.py
```

If you want to customize the Desktop sandbox (e.g.: add a preinstalled package)
Expand Down
Loading
Loading