Skip to content

Commit

Permalink
update python to 3.11, dependabot, venv retry (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrashed authored Sep 26, 2023
1 parent dd5cc06 commit 82043f4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "alexrashed"
labels:
- "dependencies"
groups:
github-actions:
patterns:
- "*"
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,30 @@ jobs:
cli_version: ${{ steps.cli_version.outputs.cli_version }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

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

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

- name: Build using pyinstaller
shell: bash
Expand Down
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ You need Python developer version libraries in your path to be able to build the
For most of us who use pyenv, this is done with:
- MacOS:
```bash
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.10-dev
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.11-dev
```
- Linux:
```bash
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.10-dev
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.11-dev
```

Activate the version:
```
pyenv local 3.10-dev
pyenv local 3.11-dev
python --version

```
This should print something like `Python 3.10.11+`.
This should print something like `Python 3.11.5+`.
### Building
You can build the specific versions by calling the respective make target:
Expand Down

0 comments on commit 82043f4

Please sign in to comment.