Commit graph

8 commits

Author SHA1 Message Date
Clement Skau 67f097a161 [tools] Update all iteritems -> items
This migrates old python2 dict.iteritems() to python3 dict.items().
iteritems was removed in python3 meaning these script will otherwise not
run.
Note that this remains backwards compatible since dict.items() also
existed in python2, though the implementation was more memory intensive
for large dicts (which these likely aren't).

This is similar to https://dart-review.googlesource.com/c/sdk/+/200184

Change-Id: I4fe5c90d21de97d0ecceb27fa6efa7d7deb14098
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200864
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2021-05-20 11:36:52 +00:00
Alexander Thomas b5c63ce757 [infra] Migrate scripts to python3
* Migrate to python3; drop python support.
* Update Windows toolchain support.
* Remove some unused methods.
* Python 2.7 is still needed on Windows.
* Update gsutil to a version that supports python3.

Fixes: https://github.com/dart-lang/sdk/issues/28793

TEST=Manually tested common user journeys.

Change-Id: I663a22b237a548bb82dc2e601e399e3bc3649211
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192182
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2021-04-15 10:10:20 +00:00
Nate Bosch 55f81f2210 Mass format python with yapf
- Add `.style.yapf` with configuration to use Google style.
- Run `yapf` on all `.py` files in this repo.
- Manually fix one trailing space in a doc string.
- Run `git cl format runtime` to satisfy presubmit.

Change-Id: I7e6bd11e91f07926b9188362599af398551eed79
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/111600
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-08-05 20:34:31 +00:00
Nathan Mulcahey caf321aaa6 [fuchsia] Handle host_{cpu,os} vars in DEPS
Inject default values for environment vars now present in DEPS after
https://dart-review.googlesource.com/c/sdk/+/85416

Change-Id: Icd43f7b0f379725434d591c6495551529f041979
Reviewed-on: https://dart-review.googlesource.com/c/88140
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2019-01-02 16:17:22 +00:00
P.Y. Laligand ce79a77331 Remove Fuchsia-specific build files.
Also fix Fuchsia tools to account for new project location (//third_party/dart).

Change-Id: If89a934729c4fa44229eaca83219dbdf8bb700a8
Bug:
Reviewed-on: https://dart-review.googlesource.com/14800
Commit-Queue: Zach Anderson <zra@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
2017-10-19 17:52:37 +00:00
Ian McKellar 6ca4e233c4 Fix tools/create_pkg_manifest.py to generate valid XML. (#28501)
Fixes #28500
2017-01-24 12:29:03 -08:00
Josh Triplett 2270d7c791 tools/create_pkg_manifest.py: Sort manifest entries for reproducibility (#28310)
tools/create_pkg_manifest.py currently outputs manifest entries in hash
order, which results in spurious reordering on updates, making it harder
to see the actual changes.  Sort the manifest entries, to make the
output reproducible.

This will result in a large diff for the next manifest update, but every
subsequent update should have a minimal diff showing only the actual
changes, with no spurious reordering.
2017-01-09 19:34:27 -08:00
Zachary Anderson 571bbaade0 Fuchsia: Adds a script to make a jiri manifest for third_party/pkg stuff
Building the Observatory and the full SDK requires the third_party Dart
packages that we DEPS into a standalone SDK checkout. Fuchsia uses jiri
manifests rather than DEPS files, so this CL adds a script that
translates the DEPS for third_party/pkg stuff into a jiri manifest.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2548173002 .
2016-12-06 13:45:24 -08:00