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.
Latihan ini adalah bagian dari kursus
Software Engineering Principles in Python
Petunjuk latihan
importthe needed function,setup, from thesetuptoolspackage.- List yourself as the
author. - Specify your
install_requiresto requirematplotlibversion3.0.0or above.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# 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=['____'])