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
importthe needed function,setup, from thesetuptoolspackage.- List yourself as the
author. - Specify your
install_requiresto requirematplotlibversion3.0.0or above.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# 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=['____'])