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
5 changes: 5 additions & 0 deletions .changeset/forty-ants-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2b/desktop-python': minor
---

Drop support for Python 3.9
12 changes: 10 additions & 2 deletions .github/workflows/js-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,24 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Parse .tool-versions
uses: wistia/parse-tool-versions@v2.1.1
id: tool-versions
with:
filename: '.tool-versions'
uppercase: 'true'
prefix: 'tool_version_'

- name: Install pnpm
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 9.5
version: ${{ env.TOOL_VERSION_PNPM }}

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20.x'
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
registry-url: 'https://registry.npmjs.org'
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Parse .tool-versions
uses: wistia/parse-tool-versions@v2.1.1
id: tool-versions
with:
filename: '.tool-versions'
uppercase: 'true'
prefix: 'tool_version_'

- uses: pnpm/action-setup@v4
with:
version: 9.15.9
version: ${{ env.TOOL_VERSION_PNPM }}

- name: Setup Node.js 20
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
cache: pnpm

- name: Configure pnpm
Expand All @@ -31,14 +39,14 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '${{ env.TOOL_VERSION_PYTHON }}'

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
version: ${{ env.TOOL_VERSION_POETRY }}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
Expand Down
24 changes: 16 additions & 8 deletions .github/workflows/publish_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,36 @@ jobs:
with:
token: ${{ steps.app-token.outputs.token }}

- name: Parse .tool-versions
uses: wistia/parse-tool-versions@v2.1.1
id: tool-versions
with:
filename: '.tool-versions'
uppercase: 'true'
prefix: 'tool_version_'

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '${{ env.TOOL_VERSION_PYTHON }}'

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

- uses: pnpm/action-setup@v3
with:
version: 9.5
version: ${{ env.TOOL_VERSION_PNPM }}

- name: Setup Node.js 22
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
registry-url: 'https://registry.npmjs.org'
cache: pnpm

- name: Configure pnpm
Expand Down Expand Up @@ -90,7 +98,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
NPM_TOKEN: "" # See https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868
NPM_TOKEN: '' # See https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868

- name: Update lock file
run: pnpm i --no-link --no-frozen-lockfile
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/python-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Parse .tool-versions
uses: wistia/parse-tool-versions@v2.1.1
id: tool-versions
with:
filename: '.tool-versions'
uppercase: 'true'
prefix: 'tool_version_'

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '${{ env.TOOL_VERSION_PYTHON }}'

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
version: ${{ env.TOOL_VERSION_POETRY }}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,24 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Parse .tool-versions
uses: wistia/parse-tool-versions@v2.1.1
id: tool-versions
with:
filename: '.tool-versions'
uppercase: 'true'
prefix: 'tool_version_'

- name: Install pnpm
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 9.5
version: ${{ env.TOOL_VERSION_PNPM }}

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "22.x"
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
registry-url: "https://registry.npmjs.org"
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
Expand Down Expand Up @@ -61,16 +69,24 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Parse .tool-versions
uses: wistia/parse-tool-versions@v2.1.1
id: tool-versions
with:
filename: '.tool-versions'
uppercase: 'true'
prefix: 'tool_version_'

- name: Install pnpm
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 9.5
version: ${{ env.TOOL_VERSION_PNPM }}

- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '22.x'
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
registry-url: 'https://registry.npmjs.org'
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Parse .tool-versions
uses: wistia/parse-tool-versions@v2.1.1
id: tool-versions
with:
filename: '.tool-versions'
uppercase: 'true'
prefix: 'tool_version_'

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '${{ env.TOOL_VERSION_PYTHON }}'

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 2.1.1
version: ${{ env.TOOL_VERSION_POETRY }}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
Expand Down
4 changes: 4 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
nodejs 20.19.5
pnpm 9.15.9
python 3.10
poetry 2.1.1
29 changes: 3 additions & 26 deletions packages/python-sdk/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/python-sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository = "https://github.com/e2b-dev/desktop/tree/main/packages/python-sdk"
packages = [{ include = "e2b_desktop" }]

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"

e2b = "^2.6.0"
requests = "^2.32.3"
Expand Down
24 changes: 22 additions & 2 deletions template/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion template/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = "^3.12"
python = "^3.10"
e2b = "^2.3.5"

[tool.poetry.group.dev.dependencies]
Expand Down