From 890627cf83e505b1838b63994e9e865aa260e1f4 Mon Sep 17 00:00:00 2001 From: Renan Valieris Date: Mon, 4 Feb 2019 11:29:42 -0200 Subject: [PATCH] fix for #2 (#3) --- README.md | 2 +- conda-tree.py | 6 ++---- meta.yaml | 12 ++++++------ 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index fbecb3c..4b94858 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ that the `conda` and `networkx` packages are installed. This can be done with `conda` itself if you like: ```bash -conda install -c mforbes conda-tree +conda install -c rvalieris conda-tree ``` # Usage diff --git a/conda-tree.py b/conda-tree.py index 36d0792..a51aa3a 100755 --- a/conda-tree.py +++ b/conda-tree.py @@ -5,13 +5,11 @@ import sys import subprocess -import conda.install -import conda.resolve -import conda.api +import conda.exports import networkx def get_local_cache(prefix): - return conda.install.linked_data(prefix=prefix) + return conda.exports.linked_data(prefix=prefix) def get_package_key(cache, package_name): ks = list(filter(lambda i: l[i]['name'] == package_name, l)) diff --git a/meta.yaml b/meta.yaml index 7a53c2e..eee1e64 100644 --- a/meta.yaml +++ b/meta.yaml @@ -1,10 +1,10 @@ package: name: conda-tree - version: "0.0.1" + version: "0.0.2" source: - git_url: https://github.com/mforbes/conda-tree.git - git_rev: v0.0.1 + git_url: https://github.com/rvalieris/conda-tree.git + git_rev: v0.0.2 requirements: host: @@ -18,9 +18,9 @@ build: noarch: python script: # See https://github.com/conda/conda-build/issues/3166 - mkdir -p "$PREFIX/bin" - - cp conda-tree.py "$PREFIX/bin/" - + - cp conda-tree.py "$PREFIX/bin/conda-tree" + about: home: https://github.com/rvalieris/conda-tree license: MIT - license_file: LICENSE \ No newline at end of file + license_file: LICENSE