-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Adds support for custom conda channels in the config file #2507
Adds support for custom conda channels in the config file #2507
Conversation
This needs a corresponding PR to the readthedocs-build package which does the validation of the YAML files. This one is similar: readthedocs/readthedocs-build#18 Otherwise this looks good. |
@ericholscher I'll try and get that done this week; sorry about the delay, I was at conferences for a couple of weeks (plus the holidays). |
@ericholscher I submitted readthedocs/readthedocs-build#20; it adds appropriate validation and testing for said validation. Let me know if I need to change things in either place. |
Sorry this has been sitting for so long. I don't have a lot of familiarity with conda, and I'm on the fence as to whether this is a good change, mainly because I don't know a lot about it. There's a lot of chatter about this in #2378 regarding getting more resources with familiarity with conda -- but hopefully we can get this reviewed and merged in the next couple weeks. |
@ericholscher No worries! If you guys do wind up adding conda-forge, that'll very nearly work for us (we're working on pushing all of our stuff to conda forge right now, there's just a lot of nested dependencies). The security implications of this PR are not to be taken lightly; I've tried to logic my way through the threat vectors as much as possible, but it's a distinct possibility that something bad snuck through. I'd be happy to walk you through each of the individual parts, concerns, and mitigations that I went through (assuming I can dredge those up from my memory). |
Hi @chaosphere2112, do we still need this?
Why the |
@chaosphere2112 friendly ping :) |
Sorry, I've since left the company I was working for when I wrote this.
Legitimately no idea of this is a thing they still want.
…On Fri, Mar 23, 2018 at 1:08 PM Manuel Kaufmann ***@***.***> wrote:
@chaosphere2112 <http:///chaosphere2112> friendly ping :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2507 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAr2sLlhqtUVoOI2cTxSDJq1k0bp0ttIks5thVYngaJpZM4KzKQp>
.
|
Thanks for your reply. I'll will close this PR here since I think that using the Otherwise, in any case that this is not enough, feel free to let us know and reopen this branch. |
@humitos actually this is stil something we would want. At the moment we cannot host our doc because our docstring will need the |
@doutriaux1 can't you use custom channels in the |
@humitos the channel is an official conda channel ( |
@doutriaux1 you need to use a rtd configuration file for conda support https://docs.readthedocs.io/en/latest/conda.html. Here is the full documentation for the configuration file https://docs.readthedocs.io/en/latest/yaml-config.html |
@stsewd sounds like exactly like what we need. Thanks! |
A project I'm involved with (UV-CDAT/vcs) uses automodule, and our build is kind of gnarly (lots of misc. science tools), so we distribute conda packages to install everything. We're not on the main conda channel, though; we live at http://anaconda.org/uvcdat. In order to successfully build our API docs, we need to be able to specify the channels to use for conda to find our packages. The environment.yml file sometimes-sort-of-supports doing this itself, but the most reliable way is to manually specify what channels to search (using the
-c
option). I added support to the config file for a conda > channels list, and reworked the install process to handle it appropriately.I also made the conda install use path-based environments, so it works more or less the same as virtualenv. I'm about 75% sure that the
install_user_requirements
function wasn't doing anything useful for the conda build (since creating the environment from a conda environment file installs all of the packages listed in it), so I removed the body of that function.I was a little confused as to how to run tests; I wound up with:
DJANGO_SETTINGS_MODULE=readthedocs.settings.test py.test --ignore rtd
which got me a few failures (which all look path related). I'll happily run again given more input as to how to do so. I'm also happy to add tests as necessary.