You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/tests/ansible/lib/modules
Alex Willmer 5ad3d14ceb mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12
importlib.machinery.ModuleSpec and find_spec() were introduced in Python 3.4
under PEP 451. They replace the find_module() API of PEP 302, which was
deprecated from Python 3.4. They were removed in Python 3.12 along with the
imp module.

This change adds support for the PEP 451 APIs. Mitogen should no longer import
imp on Python versions that support ModuleSpec. Tests have been added to cover
the new APIs.

CI jobs have been added to cover Python 3.x on macOS.

Refs #1033
Co-authored-by: Witold Baryluk <witold.baryluk@gmail.com>
3 months ago
..
action_passthrough.py issue #461: Ansible 2.3 placeholder modules for action plug-ins. 5 years ago
assert_equal.py issue #477: Ansible 2.3 requires placeholder module for assert_equals 5 years ago
bash_return_paths.sh issue #164: rename lib/modules 6 years ago
connection_passthrough.py issue #461: Ansible 2.3 placeholder modules for action plug-ins. 5 years ago
custom_bash_old_style_module.sh issue #291: support UNIX hashbang syntax for ansible_*_interpreter. 6 years ago
custom_bash_want_json_module.sh issue #164: rename lib/modules 6 years ago
custom_binary_producing_json_Darwin tests: import custom binaries for tests 6 years ago
custom_binary_producing_json_Linux tests: import custom binaries for tests 6 years ago
custom_binary_producing_junk_Darwin tests: import custom binaries for tests 6 years ago
custom_binary_producing_junk_Linux tests: import custom binaries for tests 6 years ago
custom_binary_single_null issue #164: rename lib/modules 6 years ago
custom_perl_json_args_module.pl issue #477: get rid of perl JSON module requirement. 5 years ago
custom_perl_want_json_module.pl issue #477: get rid of perl JSON module requirement. 5 years ago
custom_python_detect_environment.py tests: Account for /tmp symlink in virtualenv test on macOS 3 months ago
custom_python_external_module.py tests: Fix Ansible module shebangs 3 months ago
custom_python_external_pkg.py tests: Fix Ansible module shebangs 3 months ago
custom_python_json_args_module.py tests: Fix Ansible module shebangs 3 months ago
custom_python_leaky_class_vars.py tests: Fix Ansible module shebangs 3 months ago
custom_python_modify_environ.py tests: Fix Ansible module shebangs 3 months ago
custom_python_new_style_missing_interpreter.py tests: Avoid intermittant 2 hour timeout in new style Ansible module tests 3 months ago
custom_python_new_style_module.py tests: Avoid intermittant 2 hour timeout in new style Ansible module tests 3 months ago
custom_python_os_getcwd.py tests: Fix Ansible module shebangs 3 months ago
custom_python_prehistoric_module.py tests: Clarify status/purpose of Python 2.x era Ansible Module workaround 3 months ago
custom_python_run_script.py tests: Fix Ansible module shebangs 3 months ago
custom_python_uses_distro.py tests: Fix Ansible module shebangs 3 months ago
custom_python_want_json_module.py tests: Fix Ansible module shebangs 3 months ago
determine_strategy.py issue #461: Ansible 2.3 placeholder modules for action plug-ins. 5 years ago
mitogen_action_script.py issue #461: Ansible 2.3 placeholder modules for action plug-ins. 5 years ago
mitogen_get_stack.py issue #461: Ansible 2.3 placeholder modules for action plug-ins. 5 years ago
mitogen_shutdown_all.py issue #461: Ansible 2.3 placeholder modules for action plug-ins. 5 years ago
mitogen_test_gethostbyname.py tests: Fix Ansible module shebangs 3 months ago
module_finder_test.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 3 months ago
test_echo_module.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 3 months ago