Skip to content

Commit 82043f4

Browse files
authored
update python to 3.11, dependabot, venv retry (#11)
1 parent dd5cc06 commit 82043f4

3 files changed

Lines changed: 32 additions & 9 deletions

File tree

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
reviewers:
8+
- "alexrashed"
9+
labels:
10+
- "dependencies"
11+
groups:
12+
github-actions:
13+
patterns:
14+
- "*"

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,30 @@ jobs:
3434
cli_version: ${{ steps.cli_version.outputs.cli_version }}
3535
steps:
3636
- name: Check out Git repository
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3838

3939
- name: Setup Python (GitHub Runner)
4040
if: ${{ !contains(matrix.runner, 'buildjet') }}
4141
uses: actions/setup-python@v4
4242
with:
43-
python-version: '3.10.11'
43+
python-version: '3.11.5'
4444

4545
- name: Setup Python (BuildJet Runner)
4646
if: contains(matrix.runner, 'buildjet')
47-
uses: gabrielfalcao/pyenv-action@v14
47+
uses: gabrielfalcao/pyenv-action@v16
4848
with:
49-
default: '3.10.11'
49+
default: '3.11.4'
5050

51+
# Add a retry to avoid issues when this action is running
52+
# right after the package is published on PyPi
53+
# (and might not be distributed in the CDN yet)
5154
- name: Create virtual environment
52-
run: make venv
55+
uses: nick-fields/retry@v2
56+
with:
57+
timeout_minutes: 5
58+
max_attempts: 5
59+
retry_wait_seconds: 120
60+
command: make venv
5361

5462
- name: Build using pyinstaller
5563
shell: bash

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@ You need Python developer version libraries in your path to be able to build the
66
For most of us who use pyenv, this is done with:
77
- MacOS:
88
```bash
9-
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.10-dev
9+
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.11-dev
1010
```
1111
- Linux:
1212
```bash
13-
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.10-dev
13+
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.11-dev
1414
```
1515

1616
Activate the version:
1717
```
18-
pyenv local 3.10-dev
18+
pyenv local 3.11-dev
1919
python --version
20+
2021
```
21-
This should print something like `Python 3.10.11+`.
22+
This should print something like `Python 3.11.5+`.
2223

2324
### Building
2425
You can build the specific versions by calling the respective make target:

0 commit comments

Comments
 (0)