From d0c763ee28ba36a9e4adf358f989fe93548402ea Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 26 Jan 2024 15:22:09 +0100 Subject: [PATCH] Soft-deprecate packaging v1 on February 1st 2024, to be turned into an error on February 1st 2025 --- package_linter.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package_linter.py b/package_linter.py index 6adcd37..4eac4e7 100755 --- a/package_linter.py +++ b/package_linter.py @@ -540,6 +540,14 @@ class App(TestSuite): # # ######################################### + @test() + def v1packaging(app): + if app_packaging_format <= 1: + if datetime.today() >= datetime(2025, 2, 1): + yield Error("This app is still using packaging v1 which is now hard-deprecated. Packaging v2 was released more than two years ago. You should really have a look at https://yunohost.org/en/packaging_v2.") + elif datetime.today() >= datetime(2024, 2, 1): + yield Warning("This app is still using packaging v1 which is now softly-deprecated. Packaging v2 was released more than one year ago and is now used by 75% of the app catalog with many other v1->v2 app transition ongoing. We encourage you to convert this app to packaging v2 following the recommendations described in https://yunohost.org/en/packaging_v2. This warning will turn into an error on February 1st, 2025.") + @test() def mandatory_scripts(app): filenames = (