Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Cover our deprecation policy in the documentation

Adrián Chaves6f4ccec5675c
diff --git a/docs/contributing.rst b/docs/contributing.rst
index 7b901dd00..525ad3497 100644
--- a/docs/contributing.rst
+++ b/docs/contributing.rst
@@ -108,6 +108,11 @@ Well-written patches should:
tox -e docs-coverage
+* if you are removing deprecated code, first make sure that at least 1 year
+ (12 months) has passed since the release that introduced the deprecation.
+ See :ref:`deprecation-policy`.
+
+
.. _submitting-patches:
Submitting patches
diff --git a/docs/versioning.rst b/docs/versioning.rst
index 227085f02..57643ea9a 100644
--- a/docs/versioning.rst
+++ b/docs/versioning.rst
@@ -1,7 +1,7 @@
.. _versioning:
============================
-Versioning and API Stability
+Versioning and API stability
============================
Versioning
@@ -34,7 +34,7 @@ For example:
production)
-API Stability
+API stability
=============
API stability was one of the major goals for the *1.0* release.
@@ -47,5 +47,23 @@ new methods or functionality but the existing methods should keep working the
same way.
+.. _deprecation-policy:
+
+Deprecation policy
+==================
+
+We aim to maintain support for deprecated Scrapy features for at least 1 year.
+
+For example, if a feature is deprecated in a Scrapy version released on
+June 15th 2020, that feature should continue to work in versions released on
+June 14th 2021 or before that.
+
+Any new Scrapy release after a year *may* remove support for that deprecated
+feature.
+
+All deprecated features removed in a Scrapy release are explicitly mentioned in
+the :ref:`release notes <news>`.
+
+
.. _odd-numbered versions for development releases: https://en.wikipedia.org/wiki/Software_versioning#Odd-numbered_versions_for_development_releases