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
ansible-lint 4.0.0 does not support py35 or py34 #449
Comments
Support for 3.4 and 3.5 was removed in 03e3f19#diff-380c6a8ebbbce17d55d50ef17d3cf906R64 |
The supported versions of ansible allow python35 so ansible-lint should allow that. We don’t test ansible-lint with python34 since ansible doesn’t support it, but we could still allow ansible-lint to be installed. PR #452 allows ansible-lint installation with python35 and python34. It also adds tox testing for python35. @webknjaz any issues with adding this back in? We can do a bug fix release by the end of the week. |
It's a linting tool. I think there's no reason to make it compatible with all kinds of weird setups, it's supposed to run in CIs after all, which are usually more flexible in terms of what envs one can bring there. I've set this spec based on envs declared in various configs as tested. Other envs were never supported. Line 3 in f92cc06
Lines 49 to 71 in f92cc06
Also, we do not run any testing against py34/py35. I think it would be misleading and wrong to mark something we don't test as supported. Anyway, modern RHELs have Python 3.6+ available via Red Hat Software Collections: https://developers.redhat.com/blog/2018/08/13/install-python3-rhel/#how-to-use. As for adding support, I think there shouldn't be anything blocking wrt syntax/features of python interpreters. |
All good points. I will add py35 in our tox testing and allow it in the |
Issue Type
Ansible and Ansible Lint details
Desired Behaviour
ansible-lint should run with any Python version that is currently used on production systems, especially on the Red Hat distributions.
Today I had a big surprise to see that installation failed because current python was py35. CentOS 7 has an optional python34 and python35, python34 being the default python3 interpreter! (installable via epel repository).
Actual Behaviour (Bug report only)
Example: http://logs.openstack.org/45/627545/1/check/openstack-tox-linters/e290e9d/job-output.txt.gz
So as long CentOS 7 and RHEL 7 are under normal or extended support, ansible-lint should keep compatibility with them, which should not be a big deal.
The text was updated successfully, but these errors were encountered: