[Songqin Software Automation Testing] How to Publish Your Python Modules
When we learn Python, besides installing some modules with pip, sometimes we download installers down from websites to install them, I also want to make such an installer for the modules I write, what should I do and how do I publish it?
Roughly, the following four steps are required.
1. First create a folder for the module.
As a simple chestnut, you have written an add.py module file with an add method to implement addition. This first step will require you to create a folder. and copy add.py into this folder, which we'll just name add for simplicity's sake
2. Then create a file named "setup.py" in the new folder.
Edit this file and add the following code. This file contains metadata about the release, as in the following example, and the specific metadata can differ from the example.