FS#75564 - [ansible] add py github libs to optdeps

Attached to Project: Community Packages
Opened by Konstantin Shalygin (k0ste) - Tuesday, 09 August 2022, 13:40 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 30 December 2022, 09:28 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi, please add to optdeps:

community.general.github_release module required github3.py lib:

```
[k0ste@k0ste /]$ ansible -m community.general.github_release -a "user=ribbybibby repo=ssl_exporter action=latest_release" localhost
[WARNING]: No inventory was parsed, only implicit localhost is available
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'github3'
localhost | FAILED! => {
"changed": false,
"msg": "Failed to import the required Python library (github3.py >= 1.0.0a3) on k0ste.ru's Python /usr/bin/python. Please read the module documentation and install it in the appropriate location. If the req
uired library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"
}
```

yay -S aur/python-github3.py fixed this issue


```
[k0ste@k0ste /]$ ansible -m community.general.github_release -a "user=ribbybibby repo=ssl_exporter action=latest_release" localhost
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | SUCCESS => {
"changed": false,
"tag": "v2.4.2"
}

```


Also,
community.general.github_repo & community.general.github_webhook & community.general.github_webhook_info modules required pygithub lib (python-pygithub community package)

Thanks
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 30 December 2022, 09:28 GMT
Reason for closing:  Fixed
Comment by Toolybird (Toolybird) - Wednesday, 10 August 2022, 02:44 GMT
> yay -S aur/python-github3.py fixed this issue

IIUC, that would need to be brought into community? Decision for PM.

Loading...