mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Introduce /packages and /packages/manifest API
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||
# See LICENSE for details.
|
||||
|
||||
VERSION = (1, 2, "0.dev1")
|
||||
VERSION = (1, 2, "0.dev2")
|
||||
__version__ = ".".join([str(s) for s in VERSION])
|
||||
|
||||
__title__ = "platformio"
|
||||
|
@ -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
|
||||
|
@ -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():
|
||||
|
Reference in New Issue
Block a user