From bc6617a165bf721817fc002ab87a2732f2a8ef1a Mon Sep 17 00:00:00 2001 From: Gabriel Charette Date: Tue, 5 Feb 2019 21:30:52 +0000 Subject: [PATCH] [depot_tools] Turn my_activity.py into a vpython script Downside: the script now requires "-u user@chromium.org" or it results in "error: USER is not set, please use -u". Bug: 904604 Change-Id: I241ad440d0cf1a495ce6f57e48ed49d9d90a49d9 Reviewed-on: https://chromium-review.googlesource.com/c/1442851 Reviewed-by: Robbie Iannucci Commit-Queue: Gabriel Charette --- my_activity.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/my_activity.py b/my_activity.py index 1c775ffc7..77ee721e6 100755 --- a/my_activity.py +++ b/my_activity.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env vpython # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -21,6 +21,17 @@ Example: # check those details to determine if there was activity in the given period. # This means that query time scales mostly with (today() - begin). +# [VPYTHON:BEGIN] +# wheel: < +# name: "infra/python/wheels/python-dateutil-py2_py3" +# version: "version:2.7.3" +# > +# wheel: < +# name: "infra/python/wheels/six-py2_py3" +# version: "version:1.10.0" +# > +# [VPYTHON:END] + import collections import contextlib from datetime import datetime