我如何告诉 readthedocs 要加载哪个需求文件?
How do I tell readthedocs which requirements file to load ?
我的 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))
回购
这是为了:https://github.com/thornomad/django-hitcount
如果你想看看我是如何搞砸的!谢谢
根据log file, RTD is parsing your requirements.txt at the root of your project, which in turn calls three other requirements.txt
files and fails at the one in latest/example_project/requirements.txt
(which is configured to your master
branch). You can configure which requirements.txt
file that RTD should use in your project's admin。
先试一试,然后再报告。
否则您的 requirements.txt
文件之间可能存在依赖版本冲突。
我的 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))
回购
这是为了:https://github.com/thornomad/django-hitcount
如果你想看看我是如何搞砸的!谢谢
根据log file, RTD is parsing your requirements.txt at the root of your project, which in turn calls three other requirements.txt
files and fails at the one in latest/example_project/requirements.txt
(which is configured to your master
branch). You can configure which requirements.txt
file that RTD should use in your project's admin。
先试一试,然后再报告。
否则您的 requirements.txt
文件之间可能存在依赖版本冲突。