Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
eeue56 committed May 10, 2016
1 parent 34a44e5 commit bb16a09
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions update_elm_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
, 'evancz/elm-effects' : ''
, 'evancz/start-app' : ''
, 'maxsnew/lazy' : 'elm-lang/lazy'
, 'lukewestby/elm-http-extra' : 'lukewestby/elm-http-builder'
}


Expand Down Expand Up @@ -66,7 +67,7 @@ def get_module_name_and_exposing(text):
return matches.groups()

def new_packages():
r = requests.get("http://159.203.88.24:8000/new-packages")
r = requests.get("http://package.elm-lang.org/new-packages")
return r.json()

def update_elm_package(root_folder, dry=False):
Expand All @@ -77,12 +78,15 @@ def update_elm_package(root_folder, dry=False):

packages = package_data['dependencies']
upgraded_packages = new_packages()
print(upgraded_packages)

notes = []
errors = []
upgradable_packages = {}

for (package, version) in packages.items():


for (package, version) in list(packages.items())[:]:
if package in KNOWN_MOVES:
new_name = KNOWN_MOVES[package]

Expand All @@ -105,7 +109,7 @@ def update_elm_package(root_folder, dry=False):
upgradable_packages[package] = version

local = upgradable_packages
remote = upgrader.load_all_packages("0.17", "http://159.203.88.24:8000/all-packages?elm-package-version=")
remote = upgrader.load_all_packages("0.17", "http://package.elm-lang.org/all-packages?elm-package-version=")


upgrade_suggestions = upgrader.find_newer_versions(local, remote)
Expand Down

0 comments on commit bb16a09

Please sign in to comment.