Commit 08539b4e authored by Adam Barth's avatar Adam Barth

Rewire the pubspecs to use local paths

Using local paths ensures that each package sees each other package at HEAD.
parent b7a212f7
#!/usr/bin/env python
# Copyright 2015 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.
import os
import subprocess
def update(directory):
packages = sorted(os.listdir(directory))
for package in packages:
package_dir = os.path.join(directory, package)
if os.path.isdir(package_dir):
print 'Updating', package, '...'
subprocess.check_call(['pub', 'get'], cwd=package_dir)
FLUTTER_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
update(os.path.join(FLUTTER_ROOT, 'packages'))
update(os.path.join(FLUTTER_ROOT, 'examples'))
.DS_Store
.buildlog
.idea
.packages
.pub/
build/
packages
pubspec.lock
name: address_book name: address_book
dependencies: dependencies:
flutter:
'0.0.16'
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
flutter: flutter:
path: ../../sky/packages/sky path: ../../packages/flutter
name: fitness name: fitness
dependencies: dependencies:
flutter: # TODO(abarth): Move playfair into flutter.git
'0.0.16' # playfair: ^0.0.10
playfair: ^0.0.10
path: ^1.3.6 path: ^1.3.6
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
flutter: flutter:
path: ../../sky/packages/sky path: ../../packages/flutter
name: asteroids name: asteroids
dependencies: dependencies:
flutter:
'0.0.16'
sky_tools: any
flutter_sprites:
'0.0.13'
box2d: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
flutter: flutter:
path: ../../sky/packages/sky path: ../../packages/flutter
flutter_sprites: flutter_sprites:
path: ../../skysprites path: ../../packages/flutter_sprites
name: hello_world name: hello_world
dependencies: dependencies:
flutter:
'0.0.16'
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
flutter: flutter:
path: ../../sky/packages/sky path: ../../packages/flutter
name: mine_digger name: mine_digger
dependencies: dependencies:
flutter:
'0.0.16'
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
flutter: flutter:
path: ../../sky/packages/sky path: ../../packages/flutter
name: sky_raw_examples name: sky_raw_examples
dependencies: dependencies:
flutter:
'0.0.16'
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
flutter: flutter:
path: ../../sky/packages/sky path: ../../packages/flutter
name: flutter_rendering_examples name: flutter_rendering_examples
dependencies: dependencies:
flutter:
'0.0.16'
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
flutter: flutter:
path: ../../sky/packages/sky path: ../../packages/flutter
name: stocks name: stocks
dependencies: dependencies:
flutter:
'0.0.16'
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
flutter: flutter:
path: ../../sky/packages/sky path: ../../packages/flutter
name: sky_widgets_examples name: sky_widgets_examples
dependencies: dependencies:
flutter:
'0.0.16'
sky_tools: any
flutter_rendering_examples: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
flutter: flutter:
path: ../../sky/packages/sky path: ../../packages/flutter
flutter_rendering_examples: flutter_rendering_examples:
path: ../rendering path: ../rendering
...@@ -4,18 +4,16 @@ author: Flutter Authors <flutter-dev@googlegroups.com> ...@@ -4,18 +4,16 @@ author: Flutter Authors <flutter-dev@googlegroups.com>
description: A framework for writing Flutter applications description: A framework for writing Flutter applications
homepage: http://flutter.io homepage: http://flutter.io
dependencies: dependencies:
cassowary: '>=0.1.7 <0.2.0'
intl: '>=0.12.4+2 <0.13.0' intl: '>=0.12.4+2 <0.13.0'
material_design_icons: '>=0.0.3 <0.1.0' material_design_icons: '>=0.0.3 <0.1.0'
newton: '>=0.1.4 <0.2.0' sky_engine: 0.0.49
sky_engine: sky_services: 0.0.50
'0.0.49'
sky_services:
'0.0.50'
sky_tools: '>=0.0.37 <0.1.0'
vector_math: '>=1.4.3 <2.0.0' vector_math: '>=1.4.3 <2.0.0'
cassowary:
path: ../cassowary
newton:
path: ../newton
environment: environment:
sdk: '>=1.12.0 <2.0.0' sdk: '>=1.12.0 <2.0.0'
executables:
flutter:
...@@ -4,6 +4,6 @@ version: 0.0.15 ...@@ -4,6 +4,6 @@ version: 0.0.15
author: Flutter Authors <flutter-dev@googlegroups.com> author: Flutter Authors <flutter-dev@googlegroups.com>
homepage: http://flutter.io homepage: http://flutter.io
dependencies: dependencies:
flutter: box2d: '>=0.2.0 <0.3.0'
'0.0.18' flutter:
box2d: ">=0.2.0 <0.3.0" path: ../flutter
...@@ -8,10 +8,9 @@ environment: ...@@ -8,10 +8,9 @@ environment:
sdk: '>=1.12.0 <2.0.0' sdk: '>=1.12.0 <2.0.0'
dependencies: dependencies:
analyzer: ">=0.26.1+17" # see note below analyzer: '>=0.26.1+17' # see note below
archive: ^1.0.20 archive: ^1.0.20
args: ^0.13.0 args: ^0.13.0
flx: ">=0.0.7 <0.1.0"
crypto: ^0.9.1 crypto: ^0.9.1
mustache4dart: ^1.0.0 mustache4dart: ^1.0.0
path: ^1.3.0 path: ^1.3.0
...@@ -19,6 +18,9 @@ dependencies: ...@@ -19,6 +18,9 @@ dependencies:
test: ^0.12.5 test: ^0.12.5
yaml: ^2.1.3 yaml: ^2.1.3
flx:
path: ../flx
# A note about 'analyzer': # A note about 'analyzer':
# We don't actually depend on 'analyzer', but 'test' does. We aren't # We don't actually depend on 'analyzer', but 'test' does. We aren't
# compatible with some older versions of 'analyzer'. We lie here, # compatible with some older versions of 'analyzer'. We lie here,
......
...@@ -2,14 +2,14 @@ name: flx ...@@ -2,14 +2,14 @@ name: flx
version: 0.0.10 version: 0.0.10
author: Flutter Authors <flutter-dev@googlegroups.com> author: Flutter Authors <flutter-dev@googlegroups.com>
description: Library for dealing with Flutter bundle (.flx) files description: Library for dealing with Flutter bundle (.flx) files
homepage: http://flutter.io homepage: https://github.com/flutter/flutter/tree/master/packages/flx
dependencies: dependencies:
sky_services:
'0.0.50'
yaml: ^2.1.3
asn1lib: ^0.4.1 asn1lib: ^0.4.1
cipher: ^0.7.1 cipher: ^0.7.1
crypto: ^0.9.1 crypto: ^0.9.1
path: ^1.3.0 path: ^1.3.0
sky_services: 0.0.50
yaml: ^2.1.3
environment: environment:
sdk: '>=1.12.0 <2.0.0' sdk: '>=1.12.0 <2.0.0'
name: sky_unit_tests name: flutter_unit_tests
dependencies: dependencies:
flutter: test: ^0.12.5
'0.0.16' quiver: ^0.21.4
sky_tools: any
test: any
quiver: any
flx: ^0.0.2
dependency_overrides:
material_design_icons:
path: ../packages/material_design_icons
flutter:
path: ../packages/sky
flx: flx:
path: ../packages/flx path: ../flx
flutter:
path: ../flutter
name: updater name: updater
author: Flutter Authors <flutter-dev@googlegroups.com> author: Flutter Authors <flutter-dev@googlegroups.com>
description: The autoupdater for flutter description: An autoupdater for Flutter
homepage: http://flutter.io homepage: http://flutter.io
dependencies: dependencies:
flutter: '0.0.18'
yaml: ^2.1.3
path: ^1.3.0 path: ^1.3.0
flx: 0.0.1 yaml: ^2.1.3
dependency_overrides:
# TODO(abarth): Updater should not depend on flutter
flutter: flutter:
path: ../sky path: ../flutter
flx: flx:
path: ../flx path: ../flx
environment: environment:
sdk: '>=1.12.0 <2.0.0' sdk: '>=1.12.0 <2.0.0'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment