Listing requirements in setup.py
We created a setup.py file earlier, but we forgot to list our dependency on matplotlib
in the install_requires
argument. In this exercise you will practice listing your version specific dependencies by correcting the setup.py
you previously wrote for your text_analyzer
package.
Diese Übung ist Teil des Kurses
Software Engineering Principles in Python
Anleitung zur Übung
import
the needed function,setup
, from thesetuptools
package.- List yourself as the
author
. - Specify your
install_requires
to requirematplotlib
version3.0.0
or above.
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# Import needed function from setuptools
from ____ import setup
# Create proper setup to be used by pip
setup(name='text_analyzer',
version='0.0.1',
description='Perform and visualize a text analysis.',
author='____',
packages=['text_analyzer'],
install_requires=['____'])