From 5a507a0b3e2b5a07e99b292dab03ff2c07a8e5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Wed, 30 Aug 2023 13:19:00 -0300 Subject: [PATCH] consolidate: Use json5 over json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use json5 over json to support more advanced json syntax, as.. trailing commas Signed-off-by: Patrick José Pereira --- blueos_repository/consolidate.py | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blueos_repository/consolidate.py b/blueos_repository/consolidate.py index 6fa2ac1..b377c53 100755 --- a/blueos_repository/consolidate.py +++ b/blueos_repository/consolidate.py @@ -1,12 +1,12 @@ #!/usr/bin/env python3 import asyncio import dataclasses -import json from enum import Enum from pathlib import Path from typing import Any, AsyncIterable, Dict, List, Optional, Union import aiohttp +import json5 as json import semver from registry import Registry diff --git a/pyproject.toml b/pyproject.toml index 1e0d82d..60c30b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,7 @@ packages = [{include = "blueos_repository"}] [tool.poetry.dependencies] aiohttp = "3.7.4" +json-five = "1.1.1" python = "^3.10" semver = "^2.13.0"