Deprecation policy for apache-airflow-providers-amazon package¶
Versioning of the package¶
The Amazon provider package follows SemVer, as described in Airflow’s release process and version policy. Breaking changes are released only together with a major version bump of the package. A change is breaking if a Dag that worked before stops working after the change.
A fix for behaviour that was a bug, for example a parameter that was silently ignored or a result that contradicted the documentation, is not a breaking change even if a Dag relied on the old behaviour. Such a fix can be released in a minor or patch version and is called out in the changelog.
Deprecation procedure¶
A class, method, parameter or behaviour is deprecated before it is removed or changed:
The old form keeps working and emits
AirflowProviderDeprecationWarningthat says what is changing and how to adapt. For a renamed parameter, for example:import warnings from airflow.exceptions import AirflowProviderDeprecationWarning if region is not None: warnings.warn( message="Parameter `region` is deprecated. Use the parameter `region_name` instead", category=AirflowProviderDeprecationWarning, stacklevel=2, ) kwargs["region_name"] = region
The deprecation is released in a minor version of the package and appears in its changelog.
The removal or behaviour change is released in a later major version. The changelog of that version lists every removal or change and how to migrate.
Additional considerations¶
There is no fixed deprecation period. Deprecated code is removed in a major version, and at least two versions that emit the warning are released before it.
When there is nothing to warn on, for example because AWS already removed the underlying API, the change goes straight into a major version with a changelog entry that describes the migration.