1. Register a user on the pypi.python.org website, remembering the user name and password.
2. Write the source code that needs to upload the module, the file name is: skyersfirstpythonmodule.py
3. Create a new folder with the name Skyersfirstpythonmodule (optional), copy the above file into it, and under that folder, make the setup.py file, author and author_email The information you filled in the first step of registration.
4. Open the DOS window in the Skyersfirstpythonmodule directory and enter the command in turn:
Python setup.py sdist
Python setup.py Install
The directory structure for the final skyersfirstpythonmodule file is:
5. Install twine, enter in DOS window: Pip install Twine
6. Upload module file: Twine upload dist/*
7. Log in to pypi.python.org website to view upload results:
The Windows system sends the Cloth Python module to PyPI