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

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.

主站蜘蛛池模板: 宣威市| 黔南| 衡阳县| 浑源县| 黎城县| 平南县| 濮阳市| 务川| 桃源县| 博野县| 文昌市| 定陶县| 抚顺县| 红原县| 印江| 繁昌县| 仁怀市| 昔阳县| 洪洞县| 宜丰县| 苍梧县| 金塔县| 临漳县| 昆山市| 武穴市| 肇庆市| 晋宁县| 玉树县| 和政县| 望都县| 马鞍山市| 岳阳市| 舞钢市| 宝应县| 兴化市| 延川县| 尖扎县| 乡城县| 克拉玛依市| 友谊县| 杭锦旗|