Skip to content

Commit

Permalink
Merge pull request #944 from mkllnk/pyenv
Browse files Browse the repository at this point in the history
Bump Python from 3.9.20 to 3.10.15
  • Loading branch information
dacook authored Oct 16, 2024
2 parents f23019a + 4f0ec31 commit 6a26fdf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.9.20'
python-version: '3.10.15'

- name: Set up Ansible
run: |
Expand All @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.9.20'
python-version: '3.10.15'

- name: Set up Ansible
run: |
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ofn-install-3.9.20
ofn-install-3.10.15
16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,10 @@ It's recommended you set up your Python environment using [Pyenv](https://github

* Install and configure [pyenv](https://github.com/pyenv/pyenv)
* Install and configure [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv)
* Install the required Python version:
* Install the required Python version and install dependencies into a virtualenv for the project:
```
$ pyenv install 3.9.20
./bin/pyenv-install
```
* Create the virtualenv:
```
$ pyenv virtualenv 3.9.20 ofn-install-3.9.20
```

### Dependencies

You will need to install Ansible, alongside other dependencies, on your machine to run the playbooks. You can do so with:

```
pip install -r requirements.txt
```

### Ansible Galaxy Roles

Expand Down
12 changes: 12 additions & 0 deletions bin/pyenv-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

version="$(cat .python-version | cut -d '-' -f3)"

if ! python --version; then
pyenv install "$version" --skip-existing
pyenv virtualenv "$version" "ofn-install-$version"
pip install -r requirements.txt
fi

0 comments on commit 6a26fdf

Please sign in to comment.