-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
nimbus
fetching mechanism for ReadTheDocs (#2001)
### What kind of change does this PR introduce? * Overloads the `fetch()` method of `nimbus()` to add a `UserAgent`, thus preventing requests from ReadTheDocs from being forbidden by GitHub. * Fixes up the logic for fetching the `registry.txt` files and testing data from non-`Ouranosinc/xclim-testdata` repositories that follow the same conventions (forks, `xhydro-testdata`, etc.). ### Does this PR introduce a breaking change? Not really. The `fetch` calls have been modified and the registry files for non-`Ouranosinc/xclim-testdata` files are now saved to the testing folder with the following convention: `registry.{repo-name}.{branch-name}.txt`. ### Other information: readthedocs/readthedocs.org#11763
- Loading branch information
Showing
2 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters