From 1b269a844ca84411def5494f671043f48cbe6b8e Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Sun, 29 Nov 2026 22:03:29 +0000 Subject: [PATCH] doc(v1): remove the keys deprecated in 0.8.0 The v1 roadmap drops everything deprecated in v0 (#304). --- CHANGELOG.rst | 3 +- spec/v1/example.rst | 6 +-- spec/v1/example/publiccode.yml | 15 ------- spec/v1/index.rst | 74 ---------------------------------- tests/test_examples.py | 2 +- 5 files changed, 6 insertions(+), 94 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 06c613a7..4fa68e70 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,7 @@ Removed * Remove the deprecated ``it/conforme`` and ``it/riuso/codiceIPA`` keys by @bfabio in https://github.com/publiccodeyml/publiccode.yml/pull/316 * Remove ``government`` from ``intendedAudience/scope`` by @bfabio in https://github.com/publiccodeyml/publiccode.yml/pull/305 * Remove the deprecated ``monochromeLogo``, ``inputTypes``, ``outputTypes``, ``description/[lang]/genericName``, ``legal/repoOwner`` and ``legal/authorsFile`` keys by @bfabio in https://github.com/publiccodeyml/publiccode.yml/pull/325 +* Remove the deprecated ``description/[lang]/videos``, ``intendedAudience/unsupportedCountries``, ``usedBy`` and ``dependsOn/open`` keys by @bfabio * Remove country specific sections in favor of ``supports`` and ``organisation`` by @bfabio. See https://github.com/publiccodeyml/publiccode.yml/issues/259 Changed @@ -39,7 +40,7 @@ Changed other schemes. * Require E.164 format for ``maintenance/contacts/phone`` by @bfabio in https://github.com/publiccodeyml/publiccode.yml/pull/306 -* Require uppercase ISO 3166-1 alpha-2 country codes in ``intendedAudience/countries`` and ``intendedAudience/unsupportedCountries`` by @bfabio in https://github.com/publiccodeyml/publiccode.yml/pull/325 +* Require uppercase ISO 3166-1 alpha-2 country codes in ``intendedAudience/countries`` by @bfabio in https://github.com/publiccodeyml/publiccode.yml/pull/325 * Require YAML 1.2, removing the deprecated YAML 1.1 allowance, by @bfabio in https://github.com/publiccodeyml/publiccode.yml/pull/325 v0.8.0 diff --git a/spec/v1/example.rst b/spec/v1/example.rst index 643f44bc..3e77421b 100644 --- a/spec/v1/example.rst +++ b/spec/v1/example.rst @@ -1,9 +1,9 @@ Full example ============ -This example uses every key, including deprecated keys. The English -description uses all available fields. The British English (``en-GB``) -description uses only the fields required for each language. +This example uses every key. The English description uses all +available fields. The British English (``en-GB``) description uses +only the fields required for each language. .. literalinclude:: example/publiccode.yml :language: yaml diff --git a/spec/v1/example/publiccode.yml b/spec/v1/example/publiccode.yml index a0aa74aa..d161e770 100644 --- a/spec/v1/example/publiccode.yml +++ b/spec/v1/example/publiccode.yml @@ -31,8 +31,6 @@ description: screenshots: - img/screenshots/inbox.png - img/screenshots/compose.png - videos: - - https://www.youtube.com/watch?v=xxxxxxxxxxx awards: - Public Sector Software Award 2025 en-GB: @@ -83,15 +81,9 @@ supports: intendedAudience: countries: - GB - unsupportedCountries: - - US scope: - local-authorities -usedBy: - - Example City Council - - Example County Council - fundedBy: - name: Example City Council uri: https://example.com/organisations/example-city-council @@ -102,13 +94,6 @@ isBasedOn: - https://example.com/openfax.git dependsOn: - open: - - name: PostgreSQL - version: "16" - - name: Ghostscript - versionMin: "10.0" - versionMax: "10.5" - optional: true proprietary: - name: Oracle Database versionMin: "19" diff --git a/spec/v1/index.rst b/spec/v1/index.rst index c37cfb56..d7f69cbc 100644 --- a/spec/v1/index.rst +++ b/spec/v1/index.rst @@ -419,31 +419,6 @@ same repository as ``publiccode.yml``. - Tablet: 1024x768 @2x - Mobile: 375x667 @2x -.. index:: ! videos - -``description/[lang]/videos`` (*deprecated*) -'''''''''''''''''''''''''''''''''''''''''''' - -.. rst-class:: key-meta - -:ref:`array ` of :ref:`URLs ` - -.. code-block:: yaml - :caption: Example - - description: - en: - videos: - - https://www.youtube.com/watch?v=xxxxxxxxxxx - -Videos showing how the software looks and works. - -Videos MUST be hosted on a video sharing website that supports the -`oEmbed `__ standard, such as YouTube or Vimeo. - -This key is deprecated. Link to videos from the documentation or -the software's website. - .. index:: ! awards ``description/[lang]/awards`` @@ -904,23 +879,6 @@ or laws. purpose content management system. Do not list every country to mean a worldwide audience. -.. index:: ! unsupportedCountries - -``intendedAudience/unsupportedCountries`` (*deprecated*) -'''''''''''''''''''''''''''''''''''''''''''''''''''''''' - -.. rst-class:: key-meta - -:ref:`array ` of :ref:`country codes ` - -Countries explicitly excluded from the intended audience, for -instance when the software conflicts with a law, process or -technology of theirs. - -This key is deprecated. Use -:ref:`intendedAudience/countries ` to list -the countries the software targets. - .. index:: ! scope .. _intended-audience-scope: @@ -943,23 +901,6 @@ Allowed values: see :ref:`scopes` The sectors the software serves, such as healthcare or education. -.. index:: ! usedBy - -``usedBy`` (*deprecated*) -~~~~~~~~~~~~~~~~~~~~~~~~~ - -.. rst-class:: key-meta - -:ref:`array ` of :ref:`strings ` - -Names of prominent public administrations using the software, shown -as testimonials. - -Parsers can supplement the list using other evidence of use, such -as a fork owned by an administration. - -This key is deprecated. - .. index:: ! fundedBy .. _funded-by: @@ -1030,21 +971,6 @@ software. software uses. Declare open source runtime dependencies in a software bill of materials (SBOM) or package manager manifests. -.. index:: ! open - -``dependsOn/open`` (*deprecated*) -''''''''''''''''''''''''''''''''' - -.. rst-class:: key-meta - -:ref:`array ` of :ref:`Dependencies ` - -Runtime dependencies distributed under an open-source license. - -This key is deprecated. Declare these dependencies in an SBOM or -package manager manifests. Put installation requirements in the -documentation and deployment scripts. - .. index:: ! proprietary ``dependsOn/proprietary`` diff --git a/tests/test_examples.py b/tests/test_examples.py index e8732357..59813d81 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -49,7 +49,7 @@ def test_missing_and_unknown_list_properties(self): (("maintenance", "contractors"), "website"), (("fundedBy",), "uri"), (("supports",), "id"), - (("dependsOn", "open"), "versionMax"), + (("dependsOn", "proprietary"), "versionMax"), (("dependsOn", "proprietary"), "optional"), (("dependsOn", "hardware"), "version"), )