How To Install python3-pytest-watch on Fedora 36

In this tutorial we learn how to install python3-pytest-watch in Fedora 36. python3-pytest-watch is Local continuous test runner with pytest and watchdog

Introduction

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

What is python3-pytest-watch

A zero-config CLI tool that runs [pytest][], and re-runs it when a file in your project changes. It beeps on failures and can run arbitrary commands on each passing and failing test run.

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

Install python3-pytest-watch 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-pytest-watch using dnf by running the following command:

sudo dnf -y install python3-pytest-watch

Install python3-pytest-watch 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-pytest-watch using yum by running the following command:

sudo yum -y install python3-pytest-watch

How To Uninstall python3-pytest-watch on Fedora 36

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

sudo dnf remove python3-pytest-watch

python3-pytest-watch Package Contents on Fedora 36

/usr/bin/ptw-3
/usr/bin/ptw-3.10
/usr/bin/pytest-watch-3
/usr/bin/pytest-watch-3.10
/usr/lib/python3.10/site-packages/pytest_watch
/usr/lib/python3.10/site-packages/pytest_watch-4.2.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/pytest_watch-4.2.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/pytest_watch-4.2.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/pytest_watch-4.2.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/pytest_watch-4.2.0-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/pytest_watch-4.2.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/pytest_watch-4.2.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/pytest_watch/__init__.py
/usr/lib/python3.10/site-packages/pytest_watch/__main__.py
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/command.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/command.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/constants.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/constants.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/helpers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/helpers.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/util.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/watcher.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_watch/__pycache__/watcher.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_watch/command.py
/usr/lib/python3.10/site-packages/pytest_watch/config.py
/usr/lib/python3.10/site-packages/pytest_watch/constants.py
/usr/lib/python3.10/site-packages/pytest_watch/helpers.py
/usr/lib/python3.10/site-packages/pytest_watch/util.py
/usr/lib/python3.10/site-packages/pytest_watch/watcher.py
/usr/share/doc/python3-pytest-watch
/usr/share/doc/python3-pytest-watch/AUTHORS.md
/usr/share/doc/python3-pytest-watch/CHANGES.md
/usr/share/doc/python3-pytest-watch/README.md
/usr/share/licenses/python3-pytest-watch
/usr/share/licenses/python3-pytest-watch/LICENSE

References

Summary

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