This is a simple script to show the headlines from the RedHat Enable sysadmin website RSS feed.

Articles for the day


Jose Vicente Nunez (kodegeek.com@protonmail.com)

Set your virtual environment

python3 -m venv ~/virtualenv/EnableSysadminRssReader/
. ~/virtualenv/EnableSysadminRssReader/bin/activate
python -m pip install --upgrade pip

Get the sources:

git clone git@github.com:josevnz/EnableSysadminRssReader.git
cd EnableSysadminRssReader

Rest of the commands explained on this file assume you have the virtual environment enabled.

Running in editable mode

pip install --editable .

Running unit tests

(EnableSysadminRssReader) [josevnz@dmaf5 EnableSysadminRssReader]$ python -m unittest tests/test_reader.py
Ran 2 tests in 0.125s


Building and installing the package

Using build:

python -m build 
pip install dist/EnableSysadminRssReader-*-py3-none-any.whl

If build is not installed (you will get a deprecation warning but it will work):

python setup.py bdist_wheel
pip install dist/EnableSysadminRssReader-*-py3-none-any.whl

Don’t miss the tutorial that comes with the code

The Tutorial