From bd9ee0c27a1a4ba6d0f9e075fc9c9f41b28bfce3 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 14 Mar 2015 00:01:32 +0200 Subject: [PATCH] Introduce /packages and /packages/manifest API --- platformio/__init__.py | 2 +- platformio/pkgmanager.py | 2 +- tests/test_pkgmanifest.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio/__init__.py b/platformio/__init__.py index 0b4f11ed..960b6672 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -1,7 +1,7 @@ # Copyright (C) Ivan Kravets # See LICENSE for details. -VERSION = (1, 2, "0.dev1") +VERSION = (1, 2, "0.dev2") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" diff --git a/platformio/pkgmanager.py b/platformio/pkgmanager.py index 757031e3..bd0e816f 100644 --- a/platformio/pkgmanager.py +++ b/platformio/pkgmanager.py @@ -28,7 +28,7 @@ class PackageManager(object): try: return cls._cached_manifest except AttributeError: - cls._cached_manifest = get_api_result("/packages") + cls._cached_manifest = get_api_result("/packages/manifest") return cls._cached_manifest @staticmethod diff --git a/tests/test_pkgmanifest.py b/tests/test_pkgmanifest.py index 25bddfd2..1493813a 100644 --- a/tests/test_pkgmanifest.py +++ b/tests/test_pkgmanifest.py @@ -29,7 +29,7 @@ def sfpkglist(): def pytest_generate_tests(metafunc): if "package_data" not in metafunc.fixturenames: return - pkgs_manifest = get_api_result("/packages") + pkgs_manifest = get_api_result("/packages/manifest") assert isinstance(pkgs_manifest, dict) packages = [] for _, variants in pkgs_manifest.iteritems():