Skip to content

Commit 0b89e8d

Browse files
authored
Drop support for Python 3.9 (#149)
* chore: drop support for Python 3.9 * chore: add changeset * feat: add tool-versions * fix: pnpm version * fix: unite python versions
1 parent 4e383fb commit 0b89e8d

File tree

12 files changed

+118
-56
lines changed

12 files changed

+118
-56
lines changed

.changeset/forty-ants-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@e2b/desktop-python': minor
3+
---
4+
5+
Drop support for Python 3.9

.github/workflows/js-sdk-tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,24 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24+
- name: Parse .tool-versions
25+
uses: wistia/parse-tool-versions@v2.1.1
26+
id: tool-versions
27+
with:
28+
filename: '.tool-versions'
29+
uppercase: 'true'
30+
prefix: 'tool_version_'
31+
2432
- name: Install pnpm
2533
uses: pnpm/action-setup@v3
2634
id: pnpm-install
2735
with:
28-
version: 9.5
36+
version: ${{ env.TOOL_VERSION_PNPM }}
2937

3038
- name: Setup Node
3139
uses: actions/setup-node@v3
3240
with:
33-
node-version: '20.x'
41+
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
3442
registry-url: 'https://registry.npmjs.org'
3543
cache: pnpm
3644
cache-dependency-path: pnpm-lock.yaml

.github/workflows/lint.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,22 @@ jobs:
1212
- name: Checkout Repo
1313
uses: actions/checkout@v4
1414

15+
- name: Parse .tool-versions
16+
uses: wistia/parse-tool-versions@v2.1.1
17+
id: tool-versions
18+
with:
19+
filename: '.tool-versions'
20+
uppercase: 'true'
21+
prefix: 'tool_version_'
22+
1523
- uses: pnpm/action-setup@v4
1624
with:
17-
version: 9.15.9
25+
version: ${{ env.TOOL_VERSION_PNPM }}
1826

19-
- name: Setup Node.js 20
27+
- name: Setup Node.js
2028
uses: actions/setup-node@v4
2129
with:
22-
node-version: '20.x'
30+
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
2331
cache: pnpm
2432

2533
- name: Configure pnpm
@@ -31,14 +39,14 @@ jobs:
3139
run: pnpm install --frozen-lockfile
3240

3341
- name: Set up Python
34-
uses: actions/setup-python@v4
42+
uses: actions/setup-python@v5
3543
with:
36-
python-version: '3.9'
44+
python-version: '${{ env.TOOL_VERSION_PYTHON }}'
3745

3846
- name: Install and configure Poetry
3947
uses: snok/install-poetry@v1
4048
with:
41-
version: 1.5.1
49+
version: ${{ env.TOOL_VERSION_POETRY }}
4250
virtualenvs-create: true
4351
virtualenvs-in-project: true
4452
installer-parallel: true

.github/workflows/publish_packages.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,36 @@ jobs:
2828
with:
2929
token: ${{ steps.app-token.outputs.token }}
3030

31+
- name: Parse .tool-versions
32+
uses: wistia/parse-tool-versions@v2.1.1
33+
id: tool-versions
34+
with:
35+
filename: '.tool-versions'
36+
uppercase: 'true'
37+
prefix: 'tool_version_'
38+
3139
- name: Set up Python
32-
uses: actions/setup-python@v4
40+
uses: actions/setup-python@v5
3341
with:
34-
python-version: '3.9'
42+
python-version: '${{ env.TOOL_VERSION_PYTHON }}'
3543

3644
- name: Install and configure Poetry
3745
uses: snok/install-poetry@v1
3846
with:
39-
version: 1.5.1
47+
version: ${{ env.TOOL_VERSION_POETRY }}
4048
virtualenvs-create: true
4149
virtualenvs-in-project: true
4250
installer-parallel: true
4351

4452
- uses: pnpm/action-setup@v3
4553
with:
46-
version: 9.5
54+
version: ${{ env.TOOL_VERSION_PNPM }}
4755

48-
- name: Setup Node.js 22
56+
- name: Setup Node.js
4957
uses: actions/setup-node@v6
5058
with:
51-
node-version: "22.x"
52-
registry-url: "https://registry.npmjs.org"
59+
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
60+
registry-url: 'https://registry.npmjs.org'
5361
cache: pnpm
5462

5563
- name: Configure pnpm
@@ -90,7 +98,7 @@ jobs:
9098
env:
9199
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92100
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
93-
NPM_TOKEN: "" # See https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868
101+
NPM_TOKEN: '' # See https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868
94102

95103
- name: Update lock file
96104
run: pnpm i --no-link --no-frozen-lockfile

.github/workflows/python-sdk-tests.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,23 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24+
- name: Parse .tool-versions
25+
uses: wistia/parse-tool-versions@v2.1.1
26+
id: tool-versions
27+
with:
28+
filename: '.tool-versions'
29+
uppercase: 'true'
30+
prefix: 'tool_version_'
31+
2432
- name: Set up Python
25-
uses: actions/setup-python@v4
33+
uses: actions/setup-python@v5
2634
with:
27-
python-version: '3.9'
35+
python-version: '${{ env.TOOL_VERSION_PYTHON }}'
2836

2937
- name: Install and configure Poetry
3038
uses: snok/install-poetry@v1
3139
with:
32-
version: 1.5.1
40+
version: ${{ env.TOOL_VERSION_POETRY }}
3341
virtualenvs-create: true
3442
virtualenvs-in-project: true
3543
installer-parallel: true

.github/workflows/release.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,24 @@ jobs:
2121
- name: Checkout Repo
2222
uses: actions/checkout@v3
2323

24+
- name: Parse .tool-versions
25+
uses: wistia/parse-tool-versions@v2.1.1
26+
id: tool-versions
27+
with:
28+
filename: '.tool-versions'
29+
uppercase: 'true'
30+
prefix: 'tool_version_'
31+
2432
- name: Install pnpm
2533
uses: pnpm/action-setup@v3
2634
id: pnpm-install
2735
with:
28-
version: 9.5
36+
version: ${{ env.TOOL_VERSION_PNPM }}
2937

3038
- name: Setup Node
3139
uses: actions/setup-node@v6
3240
with:
33-
node-version: "22.x"
41+
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
3442
registry-url: "https://registry.npmjs.org"
3543
cache: pnpm
3644
cache-dependency-path: pnpm-lock.yaml
@@ -61,16 +69,24 @@ jobs:
6169
- name: Checkout Repo
6270
uses: actions/checkout@v3
6371

72+
- name: Parse .tool-versions
73+
uses: wistia/parse-tool-versions@v2.1.1
74+
id: tool-versions
75+
with:
76+
filename: '.tool-versions'
77+
uppercase: 'true'
78+
prefix: 'tool_version_'
79+
6480
- name: Install pnpm
6581
uses: pnpm/action-setup@v3
6682
id: pnpm-install
6783
with:
68-
version: 9.5
84+
version: ${{ env.TOOL_VERSION_PNPM }}
6985

7086
- name: Setup Node
7187
uses: actions/setup-node@v6
7288
with:
73-
node-version: '22.x'
89+
node-version: '${{ env.TOOL_VERSION_NODEJS }}'
7490
registry-url: 'https://registry.npmjs.org'
7591
cache: pnpm
7692
cache-dependency-path: pnpm-lock.yaml

.github/workflows/template.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,23 @@ jobs:
2323
- name: Checkout repository
2424
uses: actions/checkout@v3
2525

26+
- name: Parse .tool-versions
27+
uses: wistia/parse-tool-versions@v2.1.1
28+
id: tool-versions
29+
with:
30+
filename: '.tool-versions'
31+
uppercase: 'true'
32+
prefix: 'tool_version_'
33+
2634
- name: Set up Python
27-
uses: actions/setup-python@v4
35+
uses: actions/setup-python@v5
2836
with:
29-
python-version: '3.12'
37+
python-version: '${{ env.TOOL_VERSION_PYTHON }}'
3038

3139
- name: Install and configure Poetry
3240
uses: snok/install-poetry@v1
3341
with:
34-
version: 2.1.1
42+
version: ${{ env.TOOL_VERSION_POETRY }}
3543
virtualenvs-create: true
3644
virtualenvs-in-project: true
3745
installer-parallel: true

.tool-versions

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
nodejs 20.19.5
2+
pnpm 9.15.9
3+
python 3.10
4+
poetry 2.1.1

packages/python-sdk/poetry.lock

Lines changed: 3 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/python-sdk/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repository = "https://github.com/e2b-dev/desktop/tree/main/packages/python-sdk"
1010
packages = [{ include = "e2b_desktop" }]
1111

1212
[tool.poetry.dependencies]
13-
python = "^3.9"
13+
python = "^3.10"
1414

1515
e2b = "^2.6.0"
1616
requests = "^2.32.3"

0 commit comments

Comments
 (0)