Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Use a GH token in the CI to retrieve packages Recently the CI has been crippled by rate-limiting from GitHub, which limits API requests from unauthenticated IP addresses to 60/hour. This has broken our ability to retrieve source tarballs for non-PyPI packages from Travis, which can schedule many jobs onto the same IP address. We have never hit this rate limit in the past, and the root cause of the behavior change is unclear (e.g. it could be recent Travis incidents causing many jobs to repeatedly requests resources as part of restart or recovery, a policy change by GitHub, or a change in Travis scheduling strategies, etc.). This PR allows setup.py to use an optional GitHub Personal Access token to authenticate downloads. This is only active if the environment variable `GARAGE_GH_TOKEN` is present, and otherwise uses the token `'git'`, which signifies an unauthenicated request when using the GitHub API. * Disable YAPF
- Loading branch information