- Secret Recipes of the Python Ninja
- Cody Jackson
- 260字
- 2021-06-25 22:14:44
How to upload programs to PyPI
If you have developed a package and want to post it on PyPI for distribution, there are several things you need to do to ensure the proper uploading and registration of your project. While this section will highlight some of the key features of configuring your packages for distribution on PyPI, it is not all-inclusive. Make sure you look at the documentation on the PyPI site to ensure you have the latest information.
One of the first things to do is install the twine package into your Python environment. twine is a collection of utilities for interacting with PyPI. The prime reason for its use is that is authenticates your connection to the database using HTTPS; this ensures your username and password are encrypted when interacting with PyPI. While some people may not care whether a malicious entity captures their login credentials for a Python repository, a number of people use the same login name and password for multiple sites, meaning that someone learning the PyPI login information could potentially access other sites as well.
twine also allows you to pre-create your distribution files, that is, you can test your package files before releasing them to ensure everything works. As part of this, you can upload any packing format, including wheels, to PyPI.
Finally, it allows you to digitally pre-sign your files and pass the .asc files to the command line when uploading the files. This ensures data security by verifying you are passing your credentials into the GPG application, and not something else.
- Java Web基礎(chǔ)與實(shí)例教程(第2版·微課版)
- Android Development with Kotlin
- MATLAB 2020 從入門到精通
- aelf區(qū)塊鏈應(yīng)用架構(gòu)指南
- 你必須知道的204個(gè)Visual C++開發(fā)問題
- HTML5 and CSS3 Transition,Transformation,and Animation
- Visual C++應(yīng)用開發(fā)
- INSTANT Passbook App Development for iOS How-to
- MATLAB for Machine Learning
- Spring MVC+MyBatis開發(fā)從入門到項(xiàng)目實(shí)踐(超值版)
- STM8實(shí)戰(zhàn)
- JavaScript悟道
- Mastering Bootstrap 4
- Java Web應(yīng)用開發(fā)
- Learning PrimeFaces Extensions Development