'Python installs packages even though they aren't required

I've written a python package and created a .whl-file to install it locally. Inside the package there is a setup.cfg file which contains all the specifications/required packages. Installing the package via the .whl-file works fine, however I realized that the package installs packages, which aren't specified in the setup.cfg file (e.g. colorama, shellingham, pygments). How can this happen and is there a way to stop this?

Message when package is installed (unspecified packages e.g. colorama, shellingham):

Message when package is installed (unspecified packages e.g. colorama, shellingham)

setup.cfg with specified packages:

setup.cfg with specified packages



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source