mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Introduce /packages and /packages/manifest API
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||||
# See LICENSE for details.
|
# See LICENSE for details.
|
||||||
|
|
||||||
VERSION = (1, 2, "0.dev1")
|
VERSION = (1, 2, "0.dev2")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -28,7 +28,7 @@ class PackageManager(object):
|
|||||||
try:
|
try:
|
||||||
return cls._cached_manifest
|
return cls._cached_manifest
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
cls._cached_manifest = get_api_result("/packages")
|
cls._cached_manifest = get_api_result("/packages/manifest")
|
||||||
return cls._cached_manifest
|
return cls._cached_manifest
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -29,7 +29,7 @@ def sfpkglist():
|
|||||||
def pytest_generate_tests(metafunc):
|
def pytest_generate_tests(metafunc):
|
||||||
if "package_data" not in metafunc.fixturenames:
|
if "package_data" not in metafunc.fixturenames:
|
||||||
return
|
return
|
||||||
pkgs_manifest = get_api_result("/packages")
|
pkgs_manifest = get_api_result("/packages/manifest")
|
||||||
assert isinstance(pkgs_manifest, dict)
|
assert isinstance(pkgs_manifest, dict)
|
||||||
packages = []
|
packages = []
|
||||||
for _, variants in pkgs_manifest.iteritems():
|
for _, variants in pkgs_manifest.iteritems():
|
||||||
|
Reference in New Issue
Block a user