Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions spec/v1/example.rst
Original file line number Diff line number Diff line change
@@ -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
15 changes: 0 additions & 15 deletions spec/v1/example/publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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"
Expand Down
74 changes: 0 additions & 74 deletions spec/v1/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <array-type>` of :ref:`URLs <url-type>`

.. 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 <https://oembed.com>`__ 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``
Expand Down Expand Up @@ -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 <array-type>` of :ref:`country codes <country-code-type>`

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 <intended-audience-countries>` to list
the countries the software targets.

.. index:: ! scope

.. _intended-audience-scope:
Expand All @@ -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 <array-type>` of :ref:`strings <string-type>`

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:
Expand Down Expand Up @@ -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 <array-type>` of :ref:`Dependencies <dependency-type>`

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``
Expand Down
2 changes: 1 addition & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)
Expand Down