Molecule: Support Python 3

Created on 25 Apr 2018  路  1Comment  路  Source: ansible-community/molecule

Python 2 is EOL relatively soon (~2 years) and Python 3 has been around quite a while. With 2.7 being very closely compatible with Python 3.x, there's little reason to not support Python 3 and even less reason to hard-fail when running under a Python 3.x interpreter.

Also, distros like Fedora are currently discussing their approach to Python 2's EOL. Molecule's hard stance on Python 2-only makes it very difficult to include it into a mainstream distro.

Issue Type

  • Bug report

Molecule installation method (one of):

  • source

Ansible installation method (one of):

  • OS package

Desired Behavior

Molecule should not fail when running with python 3

Actual Behaviour (Bug report only)

ERROR: Python version '3.6.5' not supported. Molecule only supports python version = 2.7.

Most helpful comment

Already done. It's slated for 2.13 release of Molecule. Molecule was hard locked to 2.7 due to Ansible releases since 2.2 breaking in various ways with 3.6 compatibility issues.

Ansible 2.5 is the first release I have gotten to pass all Molecule 3.6 functional tests.

>All comments

Already done. It's slated for 2.13 release of Molecule. Molecule was hard locked to 2.7 due to Ansible releases since 2.2 breaking in various ways with 3.6 compatibility issues.

Ansible 2.5 is the first release I have gotten to pass all Molecule 3.6 functional tests.

Was this page helpful?
0 / 5 - 0 ratings