Created
November 28, 2025 10:04
-
-
Save moreati/7e03a125b299fc019f28024a526931c2 to your computer and use it in GitHub Desktop.
Ansible versions vs INTERPRETER_PYTHON_FALLBACK using Tox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ansible | |
| import ansible.constants | |
| print(f'{ansible.__version__}: {ansible.constants.INTERPRETER_PYTHON_FALLBACK}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [tox] | |
| envlist = | |
| py311-ans{2.10,3,4,5} | |
| py313-ans{6-9} | |
| py314-ans{10-13} | |
| [testenv] | |
| deps = | |
| ans2.10: ansible~=2.10.0 | |
| ans3: ansible~=3.0 | |
| ans4: ansible~=4.0 | |
| ans5: ansible~=5.0 | |
| ans6: ansible~=6.0 | |
| ans7: ansible~=7.0 | |
| ans8: ansible~=8.0 | |
| ans9: ansible~=9.0 | |
| ans10: ansible~=10.0 | |
| ans11: ansible~=11.0 | |
| ans12: ansible~=12.0 | |
| ans13: ansible~=13.0 | |
| commands = | |
| python foo.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment