The definitive list of the best of (consumer facing) open source.
Moved archive.json into static
Lucas31133dd374fb
diff --git a/core/data/dynamic/archive.json b/core/data/static/archive.jsonsimilarity index 100%rename from core/data/dynamic/archive.jsonrename to core/data/static/archive.jsondiff --git a/core/source/generation/archive_generator.py b/core/source/generation/archive_generator.pyindex e17aeb4..480f61d 100644--- a/core/source/generation/archive_generator.py+++ b/core/source/generation/archive_generator.py@@ -6,7 +6,7 @@ CORE_DIR = Path(__file__).resolve().parents[2]if str(CORE_DIR) not in sys.path:sys.path.insert(0, str(CORE_DIR))-from source.utils.path_utils import DYNAMIC_DATA_DIR # noqa: E402+from source.utils.path_utils import STATIC_DATA_DIR # noqa: E402REASON_LABELS = {"closed-source": "Closed Source",@@ -29,7 +29,7 @@ def format_reason(reason):def generate_archive_section():- with open(DYNAMIC_DATA_DIR / "archive.json", "r", encoding="utf-8") as f:+ with open(STATIC_DATA_DIR / "archive.json", "r", encoding="utf-8") as f:data = json.load(f)applications = data.get("applications", [])diff --git a/core/source/maintenance/json_formatter.py b/core/source/maintenance/json_formatter.pyindex 1d3d528..52d620e 100644--- a/core/source/maintenance/json_formatter.py+++ b/core/source/maintenance/json_formatter.py@@ -440,8 +440,11 @@ def run_format_checks()backlog_issues = validate_backlog(static_dir / "backlog.json")+ archive_path = static_dir / "archive.json"+ if not archive_path.exists() and (dynamic_dir / "archive.json").exists():+ archive_path = dynamic_dir / "archive.json"archive_issues = validate_archive(- archive_path=dynamic_dir / "archive.json",+ archive_path=archive_path,valid_reasons=VALID_ARCHIVE_REASONS,active_app_urls=seen_app_urls,)diff --git a/core/tests/test_json_formatter.py b/core/tests/test_json_formatter.pyindex bb17b64..5da549c 100644--- a/core/tests/test_json_formatter.py+++ b/core/tests/test_json_formatter.py@@ -289,7 +289,7 @@ class TestJsonFormatter(unittest.TestCase):json.dumps({"applications": []}),encoding="utf-8",)- (dynamic_dir / "archive.json").write_text(+ (static_dir / "archive.json").write_text(json.dumps({"applications": []}),encoding="utf-8",)