This is a simple project that aims:
sudo dnf install -y python3-rpm
python3 -m venv --system-site-packages ~/virtualenv/rpm_query
. ~/virtualenv/rpm_query/bin/activate
All the commands will assume you successfully activated your virtual environment
(rpm_query) [josevnz@dmaf5 rpm_query]$ python setup.py develop
Remember when you are done you can remove the development mode:
python setup.py develop --uninstall
Just change the value of the ‘version’ variable in the rpm_query package.
(rpm_query) [josevnz@dmaf5 rpm_query]$ python setup.py bdist_wheel
running bdist_wheel
...
(rpm_query) [josevnz@dmaf5 rpm_query]$ python setup.py install dist/rpm_query-0.0.1-py3-none-any.whl
There is a 3 part tutorial that explains how and why this code was written. In order: