官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 红安县| 兴城市| 长泰县| 萨嘎县| 巴青县| 扎囊县| 镇原县| 宝山区| 东源县| 济阳县| 沾益县| 当涂县| 彰化县| 榆树市| 驻马店市| 斗六市| 建昌县| 佛坪县| 紫金县| 云南省| 库伦旗| 宁南县| 碌曲县| 二连浩特市| 阿合奇县| 昂仁县| 陆川县| 会东县| 长宁县| 麻江县| 油尖旺区| 普洱| 石楼县| 泊头市| 浑源县| 香河县| 上饶市| 蒙山县| 南澳县| 浦北县| 进贤县|