CommencerCommencer gratuitement

Creating setup.py

In order to make your package installable by pip you need to create a setup.py file. In this exercise you will create this file for the text_analyzer package you've been building.

Cet exercice fait partie du cours

Software Engineering Principles in Python

Afficher le cours

Instructions

  • import the needed function, setup, from the setuptools package.
  • Complete the name & packages arguments; keep in mind your package is located in a directory named text_analyzer.
  • List yourself as the author.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Import needed function from setuptools
from ____ import ____

# Create proper setup to be used by pip
setup(name='____',
      version='0.0.1',
      description='Perform and visualize a text analysis.',
      author='____',
      packages=['____'])
Modifier et exécuter le code