3 readme
Allison Austin Byrum edited this page 2024-05-07 16:12:15 +00:00

Sopel is an IRC bot that polls weather, parses link titles, and a few other things.

The current version is 7.19 and runs in an older version of Python 3, Python 3.9 (I think). It relies on a package that was deprecated after this point, which is why it's old. (asynchat)

Deprecated since version 3.6, will be removed in version 3.12: The asynchat module is deprecated (see PEP 594 for details). Please use asyncio instead.

Sopel runs as a pod on the GladOS microshift instance. Its config is mapped to /data. For reasons that I don't yet understand, changing projects is impossible not simple in openshift console, so specify --namespace in order to view the sopel resources. kubectl exec -it sopel-d5fccf978-t9jhn -c sopel bash --namespace sopel This attaches a bash process to the sopel container (container name may vary; use kubectl get pods --namespace sopel to verify)

Once attached to the sopel container, the package is installed using PIP, which does not include most of the test directories. They live in /opt/app-root/lib/python3.9/site-packages/sopel as you do.

https://docs.pytest.org/en/7.1.x/how-to/usage.html

I would like to test the weather module, which uses a service called OpenWeatherMap, which is sunsetting their 2.5 API in favor of 3. https://github.com/sopel-irc/sopel-weather