Creating a package
Even if, in most cases, we will use third-party packages, at some point, it is possible that you'll need to create your own package.
To do so, you need to create a setup.py
file, which is the base of the package, describing what is inside it. Base package code will look like this:
package
├── LICENSE
├── README
├── setup.py
└── src
└─── <source code>
The LICENSE
and README
files are not mandatory but are good to include for adding information about the package. The LICENSE
file will be included automatically in the package.
Choosing your own open source license can be difficult. You can use the web (https://choosealicense.com/), which shows different options and explains them. We will use the MIT license as an example.
The README
file is not included, but we will include its content in a full description...