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/test/integration/targets/ansible-doc
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>
2 years ago
..
broken-docs/collections/ansible_collections/testns/testcol Add support for importlib.resources (#78915) 2 years ago
collections/ansible_collections/testns Add support for importlib.resources (#78915) 2 years ago
filter_plugins add ansible_name/ansible_aliases attrs to plugin objects (#78700) 2 years ago
library refactor and fixes for doc parsing (#77719) 2 years ago
lookup_plugins add ansible_name/ansible_aliases attrs to plugin objects (#78700) 2 years ago
roles Role argspec: allow new argument spec file (#74582) 4 years ago
test_role1 Change role argspec file used by ansible-doc (#72927) 4 years ago
aliases Re-organize CI test groups for POSIX tests. (#77420) 2 years ago
fakecollrole.output ansible-doc: remove manual formatting (#78668) 2 years ago
fakemodule.output ansible-doc: remove manual formatting (#78668) 2 years ago
fakerole.output ansible-doc: remove manual formatting (#78668) 2 years ago
inventory WIP - Fix ansible-doc bugs and add integration tests. (#62461) 5 years ago
noop.output Add integration tests for add_collection_to_versions_and_dates(), and extend ansible-doc tests (#73601) 4 years ago
noop_vars_plugin.output Add integration tests for add_collection_to_versions_and_dates(), and extend ansible-doc tests (#73601) 4 years ago
notjsonfile.output Add integration tests for add_collection_to_versions_and_dates(), and extend ansible-doc tests (#73601) 4 years ago
randommodule-text.output ansible-doc: remove manual formatting (#78668) 2 years ago
randommodule.output Add integration tests for add_collection_to_versions_and_dates(), and extend ansible-doc tests (#73601) 4 years ago
runme.sh add ansible_name/ansible_aliases attrs to plugin objects (#78700) 2 years ago
test.yml add ansible_name/ansible_aliases attrs to plugin objects (#78700) 2 years ago
test_docs_returns.output ansible-doc: remove manual formatting (#78668) 2 years ago
test_docs_suboptions.output ansible-doc: remove manual formatting (#78668) 2 years ago
test_docs_yaml_anchors.output ansible-doc: remove manual formatting (#78668) 2 years ago