-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
FAQ is wrong? #8087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes, that's right, the path is wrong.
Oh, if that's correct then we should change the recommendation to use https://docs.readthedocs.io/en/stable/config-file/v2.html#packages instead. But you won't be able to specify them in the requirements file. And I don't think we would allow to change the cwd, but we are considering allowing to run arbitrary commands in some stages of the build, so things like this can be done (#6662). |
is this issue open for work? |
yes! |
so i just have to change the FAQ documentation a\not the other part concerning with requirements.txt |
I confirm this. |
Related issue in pip-tools: jazzband/pip-tools#797 (closed as "won't fix") |
I must have been very tired, when I wrote the last paragraph of the original post. I have confused 2 different pull requests in I think, I mixed it up with a different pull request that I was also following at the time that did get merged into the |
lgtm! :^) |
Don't know if this is the correct place to report errors in the readthedocs documentation, but here goes.
The official documentation
Frequently Asked Questions > Can I document a python package that is not at the root of my repository?
page states (emphasis mine):Unless I am misunderstanding something, this is wrong on 2 accounts.
../src/python
, not../python
.pip install -r requirements/requirements.txt
resolves the relative paths insiderequirements.txt
as if they were relative to the CWD, not to therequirements.txt
file.Piggybacking on this issue, I would like to ask if there is some way to control the CWD during the
pip install -r
step to make it so that the paths insiderequirements.txt
are actually resolved relative to its location?I use
pip-tools
(pip-compile
) to create myrequirements.txt
file and I would like to keep my requirements-related files in a subdirectory, howeverpip-tools
version 7.0.0 will change relative path handling to be relative to therequirements.txt
file, so doing apip install -r requirements/requirements.txt
from the root of the project will no longer work. Instead, I will have tocd requirements && pip install -r requirements.txt
orpip-sync requirements/requirements.txt
.The text was updated successfully, but these errors were encountered: