python-sphinx - 我如何告诉 readthedocs 要加载哪个需求文件?

标签 python-sphinx read-the-docs

我的 readthedocs.org 构建刚开始失败......我不确定为什么不特别擅长 Sphynx。我不明白为什么它试图为 docs 目录之外的需求文件构建东西,或者为什么它突然找不到这个版本的 Django(或者为什么它甚至需要)。

失败消息

Collecting Django==2.0.3 (from -r /home/docs/checkouts/readthedocs.org/user_builds/django-hitcount/checkouts/latest/example_project/requirements.txt (line 1))
  Could not find a version that satisfies the requirement Django==2.0.3 (from -r /home/docs/checkouts/readthedocs.org/user_builds/django-hitcount/checkouts/latest/example_project/requirements.txt (line 1)) (from versions: 1.1.3, ...1.11.11)
No matching distribution found for Django==2.0.3 (from -r /home/docs/checkouts/readthedocs.org/user_builds/django-hitcount/checkouts/latest/example_project/requirements.txt (line 1))

repo

这是为了:https://github.com/thornomad/django-hitcount

如果你想看看我是如何搞砸的!谢谢

最佳答案

根据log file , RTD 正在解析您的 requirements.txt在你的项目的根目录,它依次调用其他三个 requirements.txt 文件并在 latest/example_project/requirements.txt 中的一个失败(配置为你的master 分支)。您可以配置 RTD 应在项目的 admin 中使用哪个 requirements.txt 文件.

先试一试,然后再报告。

否则您的 requirements.txt 文件中可能存在依赖版本冲突。

关于python-sphinx - 我如何告诉 readthedocs 要加载哪个需求文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49248854/

相关文章:

python-sphinx - 在 Python 中记录类级变量

html - 阅读文档主题 - 使用 Sphinx 更改 "Edit on github"链接

git - 为什么我不能为 readthedocs 克隆一个 git repo 来构建文档?

python - 如何在 Markdown 文件中为 Sphinx 使用 automodule 或 autoclass?

python - 相对导入需要 'package' 参数

c - VSCode 扩展自动生成 C 文档字符串?

python-sphinx - ReStructuredText 中的粗体斜体

python - Sphinx graphviz继承图增加节点大小

python-sphinx - 禁用图像的点击行为

github - 使用 github webhook 阅读文档结果为 400 : "Payload not valid, invalid or missing signature"