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/ansible_mitogen
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>
8 months ago
..
compat Remove vendored mitogen.compat.simplejson 2 years ago
plugins add SSH args into options documentation 2 years ago
__init__.py ansible: restructure to avoid intermediate imports 7 years ago
affinity.py ansible_mitogen: Standardise __future__ imports to match Ansible 3 years ago
connection.py Remove ansible_mitogen Connection.close() workaround 2 years ago
loaders.py ansible_mitogen: Correct ansible_become_pass/ansible_become_password precendence 2 years ago
logging.py ansible_mitogen: Standardise __future__ imports to match Ansible 3 years ago
mixins.py ansible_mitogen: Standardise __future__ imports to match Ansible 3 years ago
module_finder.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 8 months ago
parsing.py ansible_mitogen: Standardise __future__ imports to match Ansible 3 years ago
planner.py Add ansible.builtin.dnf to ALWAYS_FORK_MODULES 2 years ago
process.py Remove vendored mitogen.compat.simplejson 2 years ago
runner.py mitogen: Support PEP 451 ModuleSpec API, required for Python 3.12 8 months ago
services.py ansible_mitogen: Standardise __future__ imports to match Ansible 3 years ago
strategy.py ansible_mitogen: Standardise __future__ imports to match Ansible 3 years ago
target.py Remove vendored mitogen.compat.simplejson 2 years ago
transport_config.py ansible_mitogen: correct typo in MitogenViaSpec.mitogen_lxc_path() 2 years ago
utils.py ansible_mitogen: Standardise __future__ imports to match Ansible 3 years ago