servo/python/servo
bors-servo 9468fae0d4 Auto merge of #16565 - aneeshusa:move-upload-nightly-script-to-python, r=metajack
Convert nightly upload script to Python

Now that MinGW and MSYS have been removed from the Windows builders,
bash is not available to run the previous upload_nightlies.sh script.
Convert the script to Python 2 for cross-platform support.
Additionally, switch to the `boto3` library for easy uploading
without needing to install `s3cmd`,
and move the code into mach for easy `boto3` installation
as the new `./mach upload-nightly` command.

Also, hard-code the paths to the packages instead of using
globs to look for them, as the paths are static.
(The paths used to contain timestamps,
but we now insert timestamps when uploading to S3
to improve reproducibility.)

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #16560 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because Buildbot will test them.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16565)
<!-- Reviewable:end -->
2017-05-22 18:11:19 -05:00
..
lints Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444 2017-04-22 14:17:10 +02:00
__init__.py Fix tidy issues with Python files in python/ 2015-06-02 19:51:41 -04:00
bootstrap.py Remove more deprecated Windows GNU code/docs 2017-04-16 22:12:17 -04:00
bootstrap_commands.py Fix UnicodeDecodeError in mach clean-nightlies 2017-05-13 17:49:37 +02:00
build_commands.py Remove --with-gecko from build-geckolib because it is not usable. 2017-05-19 11:08:36 +10:00
command_base.py Auto merge of #16769 - MortimerGoro:android_archs, r=larsbergstrom 2017-05-13 10:24:29 -05:00
devenv_commands.py Add 'mach check' and 'mach check-geckolib' 2017-05-13 15:28:41 +02:00
package_commands.py Auto merge of #16565 - aneeshusa:move-upload-nightly-script-to-python, r=metajack 2017-05-22 18:11:19 -05:00
packages.py Remove more deprecated Windows GNU code/docs 2017-04-16 22:12:17 -04:00
post_build_commands.py Android life cycle improvements and Gradle integration 2017-04-21 18:24:10 +02:00
testing_commands.py Update WR (Intel driver workaround, subpixel and other bugfixes). 2017-05-22 10:12:12 +10:00
util.py Move delete function to util.py 2017-04-18 09:30:41 -04:00
win32_toast.py Add proper Win32 notification for builds 2016-08-17 09:50:58 -04:00