Adding the setup script
The final step before you can install your package impyrial
is to write the setup.py
file.
In this exercise, you'll write this file, including all the metadata for your package.
P.S. If you look into the impyrial
source code, you'll see a new subpackage has been added to convert weights.
This exercise is part of the course
Developing Python Packages
Exercise instructions
- Import the
setup()
andfind_packages()
functions fromsetuptools
. - Fill out the metadata, including your name. Give it the version number 0.1.0 and the description
"A package for converting impyrial lengths and weights."
- Use the
find_packages()
function to include the package and its subpackages.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
