Skip to content

Bump to Python 3.11 and Ansible 9.13 (core 2.16.15)#1034

Merged
mkllnk merged 3 commits intoopenfoodfoundation:masterfrom
mkllnk:ansible9.13
Jan 13, 2026
Merged

Bump to Python 3.11 and Ansible 9.13 (core 2.16.15)#1034
mkllnk merged 3 commits intoopenfoodfoundation:masterfrom
mkllnk:ansible9.13

Conversation

@mkllnk
Copy link
Copy Markdown
Member

@mkllnk mkllnk commented Jan 7, 2026

@mkllnk mkllnk self-assigned this Jan 7, 2026
@github-project-automation github-project-automation Bot moved this to All the things 💤 in OFN Delivery board Jan 7, 2026
@sigmundpetersen sigmundpetersen moved this from All the things 💤 to Code review 🔎 in OFN Delivery board Jan 7, 2026
Copy link
Copy Markdown
Contributor

@rioug rioug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

Copy link
Copy Markdown
Member

@dacook dacook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cd command doesn't work for me, is it a mistake?

Comment thread bin/pyenv-install Outdated
@github-project-automation github-project-automation Bot moved this from Code review 🔎 to In Progress ⚙ in OFN Delivery board Jan 12, 2026
@dacook
Copy link
Copy Markdown
Member

dacook commented Jan 12, 2026

@mkllnk I added homebrew support, please review.

Successful test:

~/projects/ofn-install $ bin/pyenv-install
python-build: definition not found: 3.11.14

See all available versions with `pyenv install --list'.

If the version you need is missing, try upgrading pyenv:

  brew update && brew upgrade pyenv
/usr/local/bin/brew
pyenv 2.5.0
==> Updating Homebrew...
Already up-to-date.
==> Upgrading 1 outdated package:
pyenv 2.5.0 -> 2.6.18
==> Fetching downloads for: pyenv
✔︎ Bottle pyenv (2.6.18)                                                                      Downloaded    1.4MB/  1.4MB
==> Upgrading pyenv
  2.5.0 -> 2.6.18
...
Downloading Python-3.11.14.tar.xz...
-> https://www.python.org/ftp/python/3.11.14/Python-3.11.14.tar.xz
Installing Python-3.11.14...
...
Installed Python-3.11.14 to /Users/dcook/.pyenv/versions/3.11.14
Collecting ansible~=9.13 (from -r requirements.txt (line 3))
...
Successfully installed MarkupSafe-3.0.3 ansible-9.13.0 ansible-compat-25.12.0 ansible-core-2.16.15 ansible-lint-6.22.2 attrs-25.4.0 black-25.12.0 bracex-2.6 cffi-2.0.0 click-8.3.1 cryptography-46.0.3 filelock-3.20.3 jinja2-3.1.6 jsonschema-4.26.0 jsonschema-specifications-2025.9.1 markdown-it-py-4.0.0 mdurl-0.1.2 mypy-extensions-1.1.0 packaging-25.0 pathspec-1.0.3 platformdirs-4.5.1 pycparser-2.23 pygments-2.19.2 pytokens-0.3.0 pyyaml-6.0.3 referencing-0.37.0 resolvelib-1.0.1 rich-14.2.0 rpds-py-0.30.0 ruamel.yaml-0.19.1 subprocess-tee-0.4.2 typing-extensions-4.15.0 wcmatch-10.1 yamllint-1.37.1

CI failed, but it seems unrelated, and long after Python was successfully installed:

STDERR:

Database 'openfoodnetwork' already exists
bin/rails aborted!
NoMethodError: undefined method `say' for main:Object (NoMethodError)

    say "New admin user persisted!"
    ^^^
/home/openfoodnetwork/apps/openfoodnetwork/releases-old/2026-01-12-041012/db/default/users.rb:61:in `create_admin_user'

@mkllnk
Copy link
Copy Markdown
Member Author

mkllnk commented Jan 13, 2026

Tests pass now that the database seeding is fixed. Merging.

@mkllnk mkllnk merged commit 8d2e989 into openfoodfoundation:master Jan 13, 2026
4 of 6 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress ⚙ to Done in OFN Delivery board Jan 13, 2026
@mkllnk mkllnk deleted the ansible9.13 branch January 13, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Ubuntu 24.04 requires updated Ansible due to Python 3.12

4 participants