• <tfoot id='F1JyX'></tfoot>
    <i id='F1JyX'><tr id='F1JyX'><dt id='F1JyX'><q id='F1JyX'><span id='F1JyX'><b id='F1JyX'><form id='F1JyX'><ins id='F1JyX'></ins><ul id='F1JyX'></ul><sub id='F1JyX'></sub></form><legend id='F1JyX'></legend><bdo id='F1JyX'><pre id='F1JyX'><center id='F1JyX'></center></pre></bdo></b><th id='F1JyX'></th></span></q></dt></tr></i><div id='F1JyX'><tfoot id='F1JyX'></tfoot><dl id='F1JyX'><fieldset id='F1JyX'></fieldset></dl></div>

    <legend id='F1JyX'><style id='F1JyX'><dir id='F1JyX'><q id='F1JyX'></q></dir></style></legend>
    • <bdo id='F1JyX'></bdo><ul id='F1JyX'></ul>

      <small id='F1JyX'></small><noframes id='F1JyX'>

      1. 如何确保 README.rst 有效?

        时间:2023-08-06

            <small id='NBjns'></small><noframes id='NBjns'>

                <tbody id='NBjns'></tbody>

              <tfoot id='NBjns'></tfoot>
                <i id='NBjns'><tr id='NBjns'><dt id='NBjns'><q id='NBjns'><span id='NBjns'><b id='NBjns'><form id='NBjns'><ins id='NBjns'></ins><ul id='NBjns'></ul><sub id='NBjns'></sub></form><legend id='NBjns'></legend><bdo id='NBjns'><pre id='NBjns'><center id='NBjns'></center></pre></bdo></b><th id='NBjns'></th></span></q></dt></tr></i><div id='NBjns'><tfoot id='NBjns'></tfoot><dl id='NBjns'><fieldset id='NBjns'></fieldset></dl></div>
                <legend id='NBjns'><style id='NBjns'><dir id='NBjns'><q id='NBjns'></q></dir></style></legend>
                  <bdo id='NBjns'></bdo><ul id='NBjns'></ul>
                • 本文介绍了如何确保 README.rst 有效?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我的小工具有两个版本:

                  There are two version of my little tool:

                  • https://pypi.python.org/pypi/tbzuploader/2017.11.0
                  • https://pypi.python.org/pypi/tbzuploader/2017.12.0 错误:pypi 页面看起来很丑.
                  • https://pypi.python.org/pypi/tbzuploader/2017.11.0
                  • https://pypi.python.org/pypi/tbzuploader/2017.12.0 Bug: The pypi page looks ugly.

                  在上次更新中,README.rst 中的更改会发出警告:

                  In the last update a change in README.rst cases a warning:

                  user@host> rst2html.py README.rst  > /tmp/foo.html
                  README.rst:18: (WARNING/2) Inline emphasis start-string without end-string.
                  README.rst:18: (WARNING/2) Inline emphasis start-string without end-string.
                  

                  现在 pypi 页面看起来很丑:-(

                  Now the pypi page looks ugly :-(

                  我用这个食谱做 CI,bumpversion,上传到 pypi:https://github.com/guettli/github-travis-bumpversion-pypi

                  I use this recipe to do CI, bumpversion, upload to pypi: https://github.com/guettli/github-travis-bumpversion-pypi

                  如何确保不再发布损坏的 README.rst?换句话说,我想避免 pypi 页面看起来很丑.

                  How could I ensure that no broken README.rst gets released any more? With other words I want to avoid that the pypi page looks ugly.

                  亲爱的细节爱好者:请不要查看 README.rst 中当前的特定错误.那不是问题:-)

                  Dear detail lovers: Please don't look into the current particular error in the README.rst. That's is not the question :-)

                  推荐答案

                  更新

                  截至 2018 年 9 月 21 日,Python 打包机构推荐了一个替代命令 tine检查.安装 twine:

                  As of Sep 21, 2018, the Python Packaging Authority recommends an alternative command twine check. To install twine:

                  pip install twine
                  twine check dist/*
                  

                  请注意,twine 需要 readme_renderer.你仍然可以使用 readme_renderer,如果你想要它的其他功能,你只需要安装 twine,如果你要发布到 PyPI,这无论如何都是个好主意.

                  Note that twine requires readme_renderer. You could still use readme_renderer, and you only need to install twine if you want its other features, which is a good idea anyway if you are releasing to PyPI.

                  来自官方 Python 打包文档,上传你的项目到 PyPI:

                  From the official Python packaging docs, Uploading your Project to PyPI:

                  提示: PyPI 上使用的 reStructuredText 解析器不是 Sphinx!此外,为了确保所有用户的安全,某些类型的 URL 和指令被禁止或去除(例如,.. raw:: 指令).尝试上传您的发行版之前,您应该检查您在 setup.py 中提供的简短/长描述是否有效.您可以按照 pypa/readme_renderer 工具的说明进行操作.

                  Tip: The reStructuredText parser used on PyPI is not Sphinx! Furthermore, to ensure safety of all users, certain kinds of URLs and directives are forbidden or stripped out (e.g., the .. raw:: directive). Before trying to upload your distribution, you should check to see if your brief / long descriptions provided in setup.py are valid. You can do this by following the instructions for the pypa/readme_renderer tool.

                  从那个工具的README.rst:

                  要在本地检查您的详细描述,只需使用以下命令安装 readme_renderer 库:

                  To check your long description's locally simply install the readme_renderer library using:

                  $ pip install readme_renderer
                  $ python setup.py check -r -s
                  

                  这篇关于如何确保 README.rst 有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:绘制 OpenStreetMap 关系不会生成连续线 下一篇:TeamCity for Python/Django 持续集成

                  相关文章

                  最新文章

                  1. <i id='53dMy'><tr id='53dMy'><dt id='53dMy'><q id='53dMy'><span id='53dMy'><b id='53dMy'><form id='53dMy'><ins id='53dMy'></ins><ul id='53dMy'></ul><sub id='53dMy'></sub></form><legend id='53dMy'></legend><bdo id='53dMy'><pre id='53dMy'><center id='53dMy'></center></pre></bdo></b><th id='53dMy'></th></span></q></dt></tr></i><div id='53dMy'><tfoot id='53dMy'></tfoot><dl id='53dMy'><fieldset id='53dMy'></fieldset></dl></div>

                  2. <small id='53dMy'></small><noframes id='53dMy'>

                      <bdo id='53dMy'></bdo><ul id='53dMy'></ul>
                  3. <tfoot id='53dMy'></tfoot><legend id='53dMy'><style id='53dMy'><dir id='53dMy'><q id='53dMy'></q></dir></style></legend>