From 3792a6f92d56c0428db4f0df13757083ee282a21 Mon Sep 17 00:00:00 2001 From: Petr Bokoc Date: Oct 25 2018 14:28:49 +0000 Subject: [PATCH 1/2] 136 - Ansible Python3 default --- diff --git a/modules/release-notes/pages/developers/Development_Python.adoc b/modules/release-notes/pages/developers/Development_Python.adoc index ae92693..5fde414 100644 --- a/modules/release-notes/pages/developers/Development_Python.adoc +++ b/modules/release-notes/pages/developers/Development_Python.adoc @@ -16,6 +16,20 @@ Notable changes include: See link:++https://docs.python.org/3/whatsnew/3.7.html++[What's new in Python 3.7] and link:++https://www.python.org/dev/peps/pep-0537/#features-for-3-7++[Features for 3.7] for more information. If you have your own Python apps, see link:++https://docs.python.org/3/whatsnew/3.7.html#porting-to-python-3-7++[Porting to Python 3.7] for information about compatibility-breaking changes and how to fix your applications. +== Ansible now uses Python3 by default + +The `ansible` package in Fedora is switching to use *Python 3* by default, instead of *Python 2*. + +You may need to adjust what python is used on the target machines you talk to from your Fedora control host. +You can do this by following the instructions in link:++http://docs.ansible.com/ansible/latest/python_3_support.html++[Ansible docs]. + +This change allows you to manage target machines that don't normally ship with `python2` by default easier as well as moving `ansible` in Fedora to the Python version used by upstream to develop new features and improvements. +As `python2` subpackages in Fedora are retired, more and more development will move to the `python3` versions. +This change aligns the Fedora `ansible` package with that reality. + +All new modules and all the core modules shipped with Fedora's `ansible` package have been tested with `python3`. +Locally created modules or plugins, or 3rd party community plugins, may need some adjustment to work smoothly with `python3`. + == No more automagic Python bytecompilation The current way of automatic *Python* byte-compiling of files outside Python-specific directories is too magical and error-prone. From 6f4d76c81ab5adad97d32569fd181d958883ac98 Mon Sep 17 00:00:00 2001 From: Petr Bokoc Date: Oct 25 2018 14:32:33 +0000 Subject: [PATCH 2/2] Move Ansible Python3 Default to Automation and link it from Python --- diff --git a/modules/release-notes/pages/developers/Development_Python.adoc b/modules/release-notes/pages/developers/Development_Python.adoc index 5fde414..410087f 100644 --- a/modules/release-notes/pages/developers/Development_Python.adoc +++ b/modules/release-notes/pages/developers/Development_Python.adoc @@ -18,17 +18,7 @@ If you have your own Python apps, see link:++https://docs.python.org/3/whatsnew/ == Ansible now uses Python3 by default -The `ansible` package in Fedora is switching to use *Python 3* by default, instead of *Python 2*. - -You may need to adjust what python is used on the target machines you talk to from your Fedora control host. -You can do this by following the instructions in link:++http://docs.ansible.com/ansible/latest/python_3_support.html++[Ansible docs]. - -This change allows you to manage target machines that don't normally ship with `python2` by default easier as well as moving `ansible` in Fedora to the Python version used by upstream to develop new features and improvements. -As `python2` subpackages in Fedora are retired, more and more development will move to the `python3` versions. -This change aligns the Fedora `ansible` package with that reality. - -All new modules and all the core modules shipped with Fedora's `ansible` package have been tested with `python3`. -Locally created modules or plugins, or 3rd party community plugins, may need some adjustment to work smoothly with `python3`. +The `ansible` package in Fedora is switching to use *Python 3* by default, instead of *Python 2*. See xref:fedora:sysadmin-guide:sysadmin/Automation.adoc[Automation] for details. == No more automagic Python bytecompilation diff --git a/modules/release-notes/pages/sysadmin/Automation.adoc b/modules/release-notes/pages/sysadmin/Automation.adoc index 59a9de1..eab0b4a 100644 --- a/modules/release-notes/pages/sysadmin/Automation.adoc +++ b/modules/release-notes/pages/sysadmin/Automation.adoc @@ -3,3 +3,17 @@ include::{partialsdir}/entities.adoc[] [[sect-automation]] = Automation + +== Ansible now uses Python3 by default + +The `ansible` package in Fedora is switching to use *Python 3* by default, instead of *Python 2*. + +You may need to adjust what python is used on the target machines you talk to from your Fedora control host. +You can do this by following the instructions in link:++http://docs.ansible.com/ansible/latest/python_3_support.html++[Ansible docs]. + +This change allows you to manage target machines that don't normally ship with `python2` by default easier as well as moving `ansible` in Fedora to the Python version used by upstream to develop new features and improvements. +As `python2` subpackages in Fedora are retired, more and more development will move to the `python3` versions. +This change aligns the Fedora `ansible` package with that reality. + +All new modules and all the core modules shipped with Fedora's `ansible` package have been tested with `python3`. +Locally created modules or plugins, or 3rd party community plugins, may need some adjustment to work smoothly with `python3`.