Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Python from 3.9.20 to 3.10.15 #944

Merged
merged 2 commits into from
Oct 16, 2024
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
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

Loading