How To Install python3-dtopt on Fedora 36

In this tutorial we learn how to install python3-dtopt in Fedora 36. python3-dtopt is Add options to doctest examples while they are running

Introduction

In this tutorial we learn how to install python3-dtopt on Fedora 36.

What is python3-dtopt

dtopts adds options to doctest examples while they are running. When using the doctest module it is often convenient to use the ELLIPSIS option, which allows you to use … as a wildcard. But you either have to setup the test runner to use this option, or you must put #doctest +ELLIPSIS on every example that uses this feature. dtopt lets you enable this option globally from within a doctest, by doing »> from dtopt import ELLIPSIS

We can use yum or dnf to install python3-dtopt on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-dtopt.

Install python3-dtopt on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-dtopt using dnf by running the following command:

sudo dnf -y install python3-dtopt

Install python3-dtopt on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-dtopt using yum by running the following command:

sudo yum -y install python3-dtopt

How To Uninstall python3-dtopt on Fedora 36

To uninstall only the python3-dtopt package we can use the following command:

sudo dnf remove python3-dtopt

python3-dtopt Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/dtopt
/usr/lib/python3.10/site-packages/dtopt-0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/dtopt-0.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/dtopt-0.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/dtopt-0.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/dtopt-0.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/dtopt-0.1-py3.10.egg-info/zip-safe
/usr/lib/python3.10/site-packages/dtopt/COMPARE.py
/usr/lib/python3.10/site-packages/dtopt/ELLIPSIS.py
/usr/lib/python3.10/site-packages/dtopt/NORMALIZE_WHITESPACE.py
/usr/lib/python3.10/site-packages/dtopt/__init__.py
/usr/lib/python3.10/site-packages/dtopt/__pycache__
/usr/lib/python3.10/site-packages/dtopt/__pycache__/COMPARE.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/dtopt/__pycache__/COMPARE.cpython-310.pyc
/usr/lib/python3.10/site-packages/dtopt/__pycache__/ELLIPSIS.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/dtopt/__pycache__/ELLIPSIS.cpython-310.pyc
/usr/lib/python3.10/site-packages/dtopt/__pycache__/NORMALIZE_WHITESPACE.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/dtopt/__pycache__/NORMALIZE_WHITESPACE.cpython-310.pyc
/usr/lib/python3.10/site-packages/dtopt/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/dtopt/__pycache__/__init__.cpython-310.pyc
/usr/share/doc/python3-dtopt
/usr/share/doc/python3-dtopt/index.txt
/usr/share/doc/python3-dtopt/license.txt

References

Summary

In this tutorial we learn how to install python3-dtopt on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).