How do I tell Ansible my collection does not support Python < 3.6? #189
-
We're currently working on a new collection that we'd eventually like to have included in
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Right now there isn't much except the documentation. For ansible-test included in ansible-core 2.12+, you can provide a config file: https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/config/config.yml Simply place it in the tests/ directory of your collection. If you plan to go through the inclusion process, you want to take a look at https://github.com/ansible-collections/overview/blob/main/collection_requirements.rst#python-compatibility which explains what we expect to be documented where. |
Beta Was this translation helpful? Give feedback.
-
Thanks @felixfontein! I've already went through that document (many times) and still implementing all the requirements, I have a follow-up on this snippet:
Does that mean that in order to support |
Beta Was this translation helpful? Give feedback.
-
Hi @SHxKM
In general, no. There are some sanity checks that only run on Python 3, but you do not have to worry about those.
The main thing you should do is make sure your sanity test pass. This means that running For ansible-core < 2.12, you will need to skip/ignore some tests in the |
Beta Was this translation helpful? Give feedback.
-
Thanks so much @tadeboro and @felixfontein! It's amazing the quality of help developers get around here!! I'll see you very soon because apart from the new collection we have some complicated deprecations to do in |
Beta Was this translation helpful? Give feedback.
Right now there isn't much except the documentation. For ansible-test included in ansible-core 2.12+, you can provide a config file: https://github.com/ansible/ansible/blob/devel/test/lib/ansible_test/config/config.yml Simply place it in the tests/ directory of your collection.
If you plan to go through the inclusion process, you want to take a look at https://github.com/ansible-collections/overview/blob/main/collection_requirements.rst#python-compatibility which explains what we expect to be documented where.