小编Leo*_*ter的帖子

使用 python-poetry 发布到 test.pypi.org

我一直在研究使用 Poetry 来发布 Python 项目。我想使用一个类似于Python Packaging Authority 教程的小项目来测试发布过程。由于这是一个简单的项目,我想将其发布到 pypi 的测试实例而不是真实实例。Test.pypi 需要一个令牌才能发布,但我不知道如何让 Poetry 使用我的测试 pypi 令牌。我能找到的所有文档都使用 HTTP 基本身份验证进行 test-pypi,但该身份验证不再有效。

我使用以下命令添加了存储库:

poetry config.repositories.test-pypi https://test.pypi.org
Run Code Online (Sandbox Code Playgroud)

我尝试使用以下命令创建令牌:

poetry config pypi-token.test-pypi my-token
Run Code Online (Sandbox Code Playgroud)
poetry config test-pypi-token.test-pypi my-token
Run Code Online (Sandbox Code Playgroud)

我在诗歌文档中找不到添加标记的语法的良好解释,因此我们将不胜感激。

python pypi python-poetry

23
推荐指数
2
解决办法
5871
查看次数

标签 统计

pypi ×1

python ×1

python-poetry ×1