ansible / ansible-documentation

Ansible community documentation
https://docs.ansible.com/
GNU General Public License v3.0
63 stars 370 forks source link

Bump pip-compile session to Python 3.11 #1614

Open oraNod opened 2 weeks ago

oraNod commented 2 weeks ago

Ansible core dropped support for Python 3.10 with https://github.com/ansible/ansible/commit/b2a289dcbb702003377221e25f62c8a3608f0e89

Given that docs are built on the core repo using Python 3.10 causes a failure when the build calls in to hacking/build-ansible.py. This change might warrant bumping the Python version that we use to pip compile project dependencies to be inline with the minimum supported version for core devel.

Potential changes to these files:

oraNod commented 2 weeks ago

@gotmax23 @felixfontein @webknjaz Hi! Can you please take a look at this and provide your thoughts and input?

I would like to do two things:

  1. Determine if we should bump to Python 3.11 for pip-compile sessions on the devel branch to match core.
  2. Capture details about the various Python versions in the noxfile and workflows in the README.

I do recall some discussion about the Python versions but the rationale behind them doesn't seem to be captured, even though we call out 3.10 in the README: https://github.com/ansible/ansible-documentation/blob/devel/README.md#updating-dependencies

Here is the issue where we added the noxfile for reference: https://github.com/ansible/ansible-documentation/issues/54

x1101 commented 6 days ago

Doesn't this also make make #1252 redundant? I've been digging through for tools related issues to pick up, and both this reads to me like a superset of what we were looking at for that one.