Configuring setup tools for a Python pip module
Setup tools in Python are how the code in our module is packaged and installed. They provide a set of commands and parameters for the system that is installing the code to process. To explore how this is done, we will package the Fibonacci numbers example introduced in the previous chapter. However, these calculations will be packaged in a pip
module. To configure our setup tools, we are going to have to carry out the following steps:
- Create a GitHub repository for our Python
pip
package. - Define basic parameters.
- Define a
README
file. - Define a basic module structure.
Let's have a look at each of these steps in detail in the following subsections.
Creating a GitHub repository
Understandably, a seasoned developer can create a GitHub repository but for the sake of completeness, we will offer all the steps needed. If you can already create a GitHub repository, move on to the next subsection:
-
...