mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Soft-deprecate packaging v1 on February 1st 2024, to be turned into an error on February 1st 2025
This commit is contained in:
parent
958bbe61e8
commit
d0c763ee28
1 changed files with 8 additions and 0 deletions
|
@ -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()
|
@test()
|
||||||
def mandatory_scripts(app):
|
def mandatory_scripts(app):
|
||||||
filenames = (
|
filenames = (
|
||||||
|
|
Loading…
Add table
Reference in a new issue