- Secret Recipes of the Python Ninja
- Cody Jackson
- 241字
- 2021-06-25 22:14:45
Getting ready
Before uploading to the main PyPI site, there is a PyPI test site (https://testpypi.python.org/pypi) you can practice with. This allows developers the opportunity to ensure they know what they are doing with the entire building and uploading process, so they don't break anything on the main site. The test site is cleaned up on a semi-regular basis, so it shouldn't be relied on as a storage site while developing.
In addition, check the long and short descriptions in your setup.py to ensure they are valid. Certain directives and URLs are forbidden and stripped during uploading; this is one reason why it is good to test your project on the PyPI test site to see if there are any problems with your configuration.
Before uploading to PyPI, you need to create a user account. Once you have manually created an account on the web site, you can create a $HOME/.pypirc file to store your username and password. This file will be referenced when uploading so you won't have to manually enter it every time. However, be aware that your PyPI password is stored in plaintext, so if you are concerned about that you will have to manually provide it for every upload.
Once you have a created a PyPI account, you can upload your distributions to PyPI via twine; for new distributions, twine will automatically handle the registration of the project on the site. Install twine as normal using pip.
- 大學(xué)計算機應(yīng)用基礎(chǔ)實踐教程
- MySQL數(shù)據(jù)庫應(yīng)用與管理 第2版
- Cassandra Design Patterns(Second Edition)
- MATLAB實用教程
- PhpStorm Cookbook
- 算法訓(xùn)練營:提高篇(全彩版)
- .NET 3.5編程
- Nginx實戰(zhàn):基于Lua語言的配置、開發(fā)與架構(gòu)詳解
- Android應(yīng)用開發(fā)實戰(zhàn)
- Getting Started with Python
- QPanda量子計算編程
- Mudbox 2013 Cookbook
- MySQL數(shù)據(jù)庫應(yīng)用實戰(zhàn)教程(慕課版)
- Sitecore Cookbook for Developers
- 安卓工程師教你玩轉(zhuǎn)Android