我的 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/