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.
ansible/lib/ansible/plugins
Matt Martz 56d142350d
Add support for importlib.resources (#78915)
* Add support for importlib.resources

* Remove the importlib.resources imports

* return the correct data

* Some code comments, and re-order for consistency

* Disallow traversing packages below an individual collection

* Add a traversable class for namespaces

* Re-use variable

* Utilize itertools.chain.from_iterable

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>

* Simplify logic to check for packages from ansible loaders

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>

* Just a generator expression, instead of a generator

* docstrings

* Add comment about find_spec for our namespaces

* Add some initial unit tests for importlib.resources

* normalize

* Utilize importlib.resources for listing collections

* collections_path is already in config, just use config

* install uses a different default for collections_path

* Remove unused import

* Remove duplicate __truediv__

* Bring back TraversableResources

* Apply some small suggestions from code review

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>

* Remove cross contamination between plugin loader code and CLI code

* Remove unused import

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
1 year ago
..
action fix role argument spec error for invalid suboptions (#76578) 1 year ago
become documentation: become plugins: correct pluralization in description (#78196) 2 years ago
cache Ensure atomic writes for cache file (#78208) 2 years ago
callback refactor and fixes for doc parsing (#77719) 2 years ago
cliconf fix missing single quotes in sample code (#78056) 2 years ago
connection local connection: avoid tb when running in container with invalid user (#79414) 1 year ago
doc_fragments Fix typo 'Ansbile'. (#79318) 2 years ago
filter correct the mistake of example repeat_original (#79659) 1 year ago
httpapi Update documentation of httpapi's handle_httperror method for clarity (#70991) 4 years ago
inventory Support for Python 3.11+ tomllib for inventory (#77435) 2 years ago
lookup Fix password lookup rewrites file when using encrypt (#79431) 1 year ago
netconf Misc typo fixes in plugins directory (#76566) 2 years ago
shell shell plugins give out user friendly type error (#77983) 2 years ago
strategy Always create new role (#78661) 1 year ago
terminal Type hint fixes. 2 years ago
test While the Python function is called ismount, the filter has the names mount and is_mount. (#78792) 2 years ago
vars Fix vars plugin code and documentation mismatch (#78562) 2 years ago
__init__.py add ansible_name/ansible_aliases attrs to plugin objects (#78700) 2 years ago
list.py Add support for importlib.resources (#78915) 1 year ago
loader.py Add support for importlib.resources (#78915) 1 year ago