2011-07-12 19:53:23 -03:00
|
|
|
.. _versioning:
|
|
|
|
|
|
|
|
============================
|
|
|
|
Versioning and API Stability
|
|
|
|
============================
|
|
|
|
|
|
|
|
Versioning
|
|
|
|
==========
|
|
|
|
|
2012-01-05 11:50:28 -02:00
|
|
|
There are 3 numbers in a Scrapy version: *A.B.C*
|
2011-07-12 19:53:23 -03:00
|
|
|
|
|
|
|
* *A* is the major version. This will rarely change and will signify very
|
2015-10-14 14:07:34 +02:00
|
|
|
large changes.
|
2011-07-12 19:53:23 -03:00
|
|
|
* *B* is the release number. This will include many changes including features
|
2019-03-01 16:10:23 +01:00
|
|
|
and things that possibly break backward compatibility, although we strive to
|
2016-09-20 18:14:43 +02:00
|
|
|
keep theses cases at a minimum.
|
2012-01-05 11:50:28 -02:00
|
|
|
* *C* is the bugfix release number.
|
2011-07-12 19:53:23 -03:00
|
|
|
|
2016-09-20 18:14:43 +02:00
|
|
|
Backward-incompatibilities are explicitly mentioned in the :ref:`release notes <news>`,
|
|
|
|
and may require special attention before upgrading.
|
|
|
|
|
|
|
|
Development releases do not follow 3-numbers version and are generally
|
|
|
|
released as ``dev`` suffixed versions, e.g. ``1.3dev``.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
With Scrapy 0.* series, Scrapy used `odd-numbered versions for development releases`_.
|
|
|
|
This is not the case anymore from Scrapy 1.0 onwards.
|
|
|
|
|
|
|
|
Starting with Scrapy 1.0, all releases should be considered production-ready.
|
|
|
|
|
2011-07-12 19:53:23 -03:00
|
|
|
For example:
|
|
|
|
|
2016-09-20 18:14:43 +02:00
|
|
|
* *1.1.1* is the first bugfix release of the *1.1* series (safe to use in
|
2011-07-12 19:53:23 -03:00
|
|
|
production)
|
|
|
|
|
2016-09-20 18:14:43 +02:00
|
|
|
|
2011-07-12 19:53:23 -03:00
|
|
|
API Stability
|
|
|
|
=============
|
|
|
|
|
2015-10-14 14:07:34 +02:00
|
|
|
API stability was one of the major goals for the *1.0* release.
|
2011-07-12 19:53:23 -03:00
|
|
|
|
|
|
|
Methods or functions that start with a single dash (``_``) are private and
|
2015-10-14 14:07:34 +02:00
|
|
|
should never be relied as stable.
|
2011-07-12 19:53:23 -03:00
|
|
|
|
|
|
|
Also, keep in mind that stable doesn't mean complete: stable APIs could grow
|
|
|
|
new methods or functionality but the existing methods should keep working the
|
|
|
|
same way.
|
|
|
|
|
|
|
|
|
2016-03-02 01:13:02 +00:00
|
|
|
.. _odd-numbered versions for development releases: https://en.wikipedia.org/wiki/Software_versioning#Odd-numbered_versions_for_development_releases
|
2011-07-12 19:53:23 -03:00
|
|
|
|