How To Install python3-pytest-doctestplus on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-pytest-doctestplus
on Rocky Linux 8.
What is python3-pytest-doctestplus
The doctestplus plugin provides advanced features for testing example Python code that is included in Python docstrings and in standalone documentation files. Good documentation for developers contains example code. This is true of both standalone documentation and of documentation that is integrated with the code itself. Python provides a mechanism for testing code snippets that are provided in Python docstrings. The unit test framework pytest provides a mechanism for running doctests against both docstrings in source code and in standalone documentation files. This plugin augments the functionality provided by Python and pytest by providing the following features * approximate floating point comparison for doctests that produce floating point results * skipping particular classes, methods, and functions when running doctests * handling doctests that use remote data in conjunction with the pytest-remotedata plugin * optional inclusion of *.rst files for doctests
We can use yum
or dnf
to install python3-pytest-doctestplus
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pytest-doctestplus.
Install python3-pytest-doctestplus on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python3-pytest-doctestplus
using dnf
by running the following command:
sudo dnf -y install python3-pytest-doctestplus
Install python3-pytest-doctestplus on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python3-pytest-doctestplus
using yum
by running the following command:
sudo yum -y install python3-pytest-doctestplus
How To Uninstall python3-pytest-doctestplus on Rocky Linux 8
To uninstall only the python3-pytest-doctestplus
package we can use the following command:
sudo dnf remove python3-pytest-doctestplus
python3-pytest-doctestplus Package Contents on Rocky Linux 8
/usr/lib/python3.6/site-packages/pytest_doctestplus
/usr/lib/python3.6/site-packages/pytest_doctestplus-0.5.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/pytest_doctestplus-0.5.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/pytest_doctestplus-0.5.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/pytest_doctestplus-0.5.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/pytest_doctestplus-0.5.0-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/pytest_doctestplus-0.5.0-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/pytest_doctestplus-0.5.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/pytest_doctestplus-0.5.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/pytest_doctestplus/__init__.py
/usr/lib/python3.6/site-packages/pytest_doctestplus/__pycache__
/usr/lib/python3.6/site-packages/pytest_doctestplus/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pytest_doctestplus/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/pytest_doctestplus/__pycache__/output_checker.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pytest_doctestplus/__pycache__/output_checker.cpython-36.pyc
/usr/lib/python3.6/site-packages/pytest_doctestplus/__pycache__/plugin.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pytest_doctestplus/__pycache__/plugin.cpython-36.pyc
/usr/lib/python3.6/site-packages/pytest_doctestplus/__pycache__/utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/pytest_doctestplus/__pycache__/utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/pytest_doctestplus/output_checker.py
/usr/lib/python3.6/site-packages/pytest_doctestplus/plugin.py
/usr/lib/python3.6/site-packages/pytest_doctestplus/utils.py
/usr/share/doc/python3-pytest-doctestplus
/usr/share/doc/python3-pytest-doctestplus/CHANGES.rst
/usr/share/doc/python3-pytest-doctestplus/README.rst
/usr/share/licenses/python3-pytest-doctestplus
/usr/share/licenses/python3-pytest-doctestplus/LICENSE.rst
References
Summary
In this tutorial we learn how to install python3-pytest-doctestplus
on Rocky Linux 8 using yum and dnf.