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

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.

主站蜘蛛池模板: 会东县| 河西区| 甘洛县| 抚远县| 纳雍县| 遵义县| 凤翔县| 嵩明县| 鹤岗市| 饶河县| 屏东县| 巴中市| 濮阳县| 德化县| 青田县| 洞头县| 太谷县| 华宁县| 肥城市| 鄂温| 黔西县| 隆尧县| 宣汉县| 平远县| 霞浦县| 富蕴县| 广水市| 松滋市| 灵丘县| 孟津县| 碌曲县| 柳河县| 兰考县| 香格里拉县| 浦县| 紫云| 连城县| 莲花县| 天水市| 营口市| 万盛区|