- :meth:`ocdsextensionregistry.api.build_profile` aggregates
dependencies
andtestDependencies
from extensions. - :class:`~ocdsextensionregistry.extension_registry.ExtensionRegistry`: Add :meth:`~ocdsextensionregistry.extension_registry.ExtensionRegistry.get_from_url`.
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: Add :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.get_url`.
- :meth:`ocdsextensionregistry.profile_builder.ProfileBuilder.get_standard_file_contents`: Fix for OCDS 1.1.5.
- :class:`~ocdsextensionregistry.profile_builder.ProfileBuilder`:
- :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.__init__`: No longer errors if
standard_tag
argument isNone
. - :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.release_schema_patch`: Only annotates definitions and fields with
title
properties.
- :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.__init__`: No longer errors if
- :class:`~ocdsextensionregistry.profile_builder.ProfileBuilder`:
- :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.__init__`: The
extension_versions
argument can be a list of extensions' local directories. - :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.__init__`: Add a
standard_base_url
argument, which can be afile://
URL to the standard's directory. - :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.release_package_schema`: Add a
embed
argument to indicate whether to embed the patched release schema in the release package schema. - Add :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.record_package_schema` method, to match :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.release_package_schema`.
- :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.__init__`: The
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`:
- Remove :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.available_in_bulk` method.
- Remove :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.directory` property (overload
download_url
instead).
- Add a
standard_base_url
argument to :meth:`ocdsextensionregistry.api.build_profile` to modify the standard base URL.
- Add Windows support for:
- The
generate-data-files
command warns if an MO file is missing. - Rename environment variable from
GITHUB_ACCESS_TOKEN
toOCDS_GITHUB_ACCESS_TOKEN
.
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.__repr__` falls back to Base URL and Download URL if Id or Version is blank.
- The
generate-data-files
command uses a null translator if an MO file is missing.
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.remote` raises :exc:`~ocdsextensionregistry.exceptions.DoesNotExist` instead of :exc:`KeyError` if a file does not exist.
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: Add :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.__repr__`.
- :class:`~ocdsextensionregistry.extension.Extension`: Add :meth:`~ocdsextensionregistry.extension.Extension.__repr__`.
- Add support for Sphinx>=1.6.
- Add a
update_codelist_urls
argument to :meth:`ocdsextensionregistry.api.build_profile` to modify codelist reference URLs.
- Use in-memory HTTP requests cache.
- :class:`~ocdsextensionregistry.profile_builder.ProfileBuilder`: Add a
schema
argument to :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.patched_release_schema` and :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.release_package_schema` methods to override the release schema or release package schema.
- :class:`~ocdsextensionregistry.profile_builder.ProfileBuilder`: Unregistered extensions are now supported by the profile builder. The
extension_versions
argument to :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.__init__` can be a list of extensions' metadata URLs, base URLs and/or download URLs. - :class:`~ocdsextensionregistry.profile_builder.ProfileBuilder`: Add an
extension_field
argument to :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.release_schema_patch` and :meth:`~ocdsextensionregistry.profile_builder.ProfileBuilder.patched_release_schema` methods to annotate all definitions and fields with extension names. - Add :meth:`ocdsextensionregistry.utils.get_latest_version`, to return the identifier of the latest version from a list of versions of the same extension.
The generate-pot-files
and generate-data-files
commands can now be run offline (see documentation for details).
- :class:`~ocdsextensionregistry.extension_registry.ExtensionRegistry`: Support the
file://
scheme for theextension_versions_data
andextensions_data
arguments to :meth:`~ocdsextensionregistry.extension_registry.ExtensionRegistry.__init__`. This means the--extension-versions-url
and--extensions-url
CLI options can now refer to local files. - Add a
--versions-dir
option to thegenerate-pot-files
andgenerate-data-files
commands to specify a local directory of extension versions. - :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: Add :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.available_in_bulk`, to return whether the extension’s files are available in bulk.
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: Add :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.zipfile`, to return a ZIP archive of the extension’s files.
- Upgrade to ocds-babel 0.1.0.
- Fix invalid
dependencies
inextension.json
.
- Drop support for
docs/
directory in extensions. - Use UTF-8 characters in JSON files when building profiles.
- No longer write extension readme files when building profiles.
- Fix rate limiting error when getting publisher names from GitHub in
generate-data-file
tool.
- Add
publisher
data to thegenerate-data-file
tool. - :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: Add :attr:`~ocdsextensionregistry.extension_version.ExtensionVersion.repository_user` and :attr:`~ocdsextensionregistry.extension_version.ExtensionVersion.repository_user_page` properties, to return user or organization to which the extension’s repository belongs.
- Add command-line tools (see documentation for details).
- Fix edge case so that
metadata
language maps are ordered, even ifextension.json
didn’t have language maps.
- Add :class:`~ocdsextensionregistry.profile_builder.ProfileBuilder`, :class:`~ocdsextensionregistry.codelist.Codelist`, :class:`~ocdsextensionregistry.codelist_code.CodelistCode` classes.
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`:
- Add :attr:`~ocdsextensionregistry.extension_version.ExtensionVersion.files` property, to return the contents of all files within the extension.
- Add :attr:`~ocdsextensionregistry.extension_version.ExtensionVersion.schemas` property, to return the schemas.
- Add :attr:`~ocdsextensionregistry.extension_version.ExtensionVersion.codelists` property, to return the codelists.
- Add :attr:`~ocdsextensionregistry.extension_version.ExtensionVersion.docs` property, to return the contents of documentation files within the extension.
- The :attr:`~ocdsextensionregistry.extension_version.ExtensionVersion.metadata` property normalizes the contents of
extension.json
to provide consistent access.
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: The :attr:`~ocdsextensionregistry.extension_version.ExtensionVersion.metadata` property is cached.
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: Add :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.remote` method, to return the contents of a file within the extension.
- :class:`~ocdsextensionregistry.extension_version.ExtensionVersion`: Add :meth:`~ocdsextensionregistry.extension_version.ExtensionVersion.as_dict` method, to avoid returning private properties.
- :class:`~ocdsextensionregistry.extension_version.Extension`: Add :meth:`~ocdsextensionregistry.extension.Extension.as_dict` method, to avoid returning private properties.
- :class:`~ocdsextensionregistry.extension_registry.ExtensionRegistry`:
- Add :meth:`~ocdsextensionregistry.extension_registry.ExtensionRegistry.get` method, to get a specific extension version.
- Make it iterable, to iterate over all extension versions.
- Remove
all()
method.
- Add package-specific exceptions.
First release.