Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: tools/publish_all_pkgs.py

Issue 59763006: add versions and constraints for packages and samples (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update a few more constraints Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/tracker/pubspec.yaml ('k') | tools/publish_pkg.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 # Upload all packages in pkg/ (other than a few that should be explicitly 7 # Upload all packages in pkg/ (other than a few that should be explicitly
8 # excluded), plus sdk/lib/_internal/compiler . 8 # excluded), plus sdk/lib/_internal/compiler .
9 # 9 #
10 # Usage: publish_all_pkgs.py 10 # Usage: publish_all_pkgs.py
11 # 11 #
12 # "pub" must be in PATH. 12 # "pub" must be in PATH.
13 13
14 14
15 import os 15 import os
16 import os.path 16 import os.path
17 import subprocess 17 import subprocess
18 import sys 18 import sys
19 19
20 BLACK_LISTED_DIRECTORIES = ['.svn', 'async_helper', 'expect', 'third_party']; 20 BLACK_LISTED_DIRECTORIES = ['.svn', 'async_helper', 'expect', 'third_party'];
21 21
22 def Main(argv): 22 def Main(argv):
23 pkgs_to_publish = []
24
23 for pkgdir in ['pkg', 'pkg/third_party']: 25 for pkgdir in ['pkg', 'pkg/third_party']:
24 for name in os.listdir(pkgdir): 26 for name in os.listdir(pkgdir):
25 if os.path.isdir(os.path.join(pkgdir, name)): 27 if os.path.isdir(os.path.join(pkgdir, name)):
26 if name not in BLACK_LISTED_DIRECTORIES: 28 if name not in BLACK_LISTED_DIRECTORIES:
27 pkgs_to_publish.append(os.path.join(pkgdir, name)) 29 pkgs_to_publish.append(os.path.join(pkgdir, name))
28 30
29 for pkg in pkgs_to_publish: 31 for pkg in pkgs_to_publish:
30 print "\n\nPublishing %s:\n-------------------------------" % pkg 32 print "\n\nPublishing %s:\n-------------------------------" % pkg
31 subprocess.call(['python', 'tools/publish_pkg.py', pkg]) 33 subprocess.call(['python', 'tools/publish_pkg.py', pkg])
32 34
33 if __name__ == '__main__': 35 if __name__ == '__main__':
34 sys.exit(Main(sys.argv)) 36 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « samples/tracker/pubspec.yaml ('k') | tools/publish_pkg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698