Replace the VERSION placeholder with 2.18.0

This commit is contained in:
Adrian Chaves 2026-08-12 05:59:45 +02:00
parent 7737da0db3
commit acb54187af
15 changed files with 19 additions and 19 deletions

View File

@ -3,8 +3,8 @@
Release notes
=============
Scrapy VERSION (unreleased)
---------------------------
Scrapy 2.18.0 (unreleased)
--------------------------
Highlights:

View File

@ -39,7 +39,7 @@ how you :ref:`configure the downloader middlewares
:attr:`request_fingerprinter` and :attr:`stats` attributes get their value
when the crawl starts, and raise :exc:`RuntimeError` when read before that.
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
Those attributes used to be ``None`` before getting their value.
.. attribute:: request_fingerprinter

View File

@ -252,7 +252,7 @@ Per-request ``bindaddress`` Yes
TLS implementation ``pyOpenSSL``/``cryptography``
=========================== ================================================
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
Bad header lines with no colon in them are now skipped, instead of making
the whole response impossible to download.

View File

@ -282,7 +282,7 @@ BaseItemExporter
:class:`dict` items, which have no declared fields, the key order of
each item is used instead.
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
Fields of non-\ :class:`dict` items used to be exported in the
order in which they had been populated, except in
:class:`CsvItemExporter`, which has always used declaration order.

View File

@ -205,7 +205,7 @@ FTPS
The feeds are stored in a FTP server, over a TLS connection, with the
certificate of the server verified.
.. versionadded:: VERSION
.. versionadded:: 2.18.0
- URI scheme: ``ftps``
- Example URI: ``ftps://user:pass@ftp.example.com/path/to/export.csv``

View File

@ -47,7 +47,7 @@ Additionally, they may also implement the following methods:
This method is called when the spider is opened.
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
Added support for :exc:`~scrapy.exceptions.CloseSpider`.
It may raise :exc:`~scrapy.exceptions.CloseSpider` to close the spider before

View File

@ -487,7 +487,7 @@ Endpoint URL used for S3-like storage, for example Minio or s3.scality.
AWS_MAX_POOL_CONNECTIONS
------------------------
.. versionadded:: VERSION
.. versionadded:: 2.18.0
Default: ``None``

View File

@ -290,7 +290,7 @@ spider_opened
reserve per-spider resources, but can be used for any task that needs to be
performed when a spider is opened.
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
Added support for :exc:`~scrapy.exceptions.CloseSpider`.
You may raise a :exc:`~scrapy.exceptions.CloseSpider` exception to close the
@ -348,7 +348,7 @@ spider_error
Sent when a spider callback or the :meth:`~scrapy.Spider.start` method of a
spider generates an error (i.e. raises an exception).
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
Exceptions from :meth:`~scrapy.Spider.start` are also reported, see
:ref:`start-error`.
@ -542,7 +542,7 @@ robots_parsed
.. signal:: robots_parsed
.. function:: robots_parsed(robotparser, request)
.. versionadded:: VERSION
.. versionadded:: 2.18.0
Sent by
:class:`~scrapy.downloadermiddlewares.robotstxt.RobotsTxtMiddleware` after it

View File

@ -59,7 +59,7 @@ scrapy.Spider
:class:`~scrapy.downloadermiddlewares.offsite.OffsiteMiddleware` is
enabled.
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
Changes to this attribute during a crawl are now taken into account.
Let's say your target url is ``https://www.example.com/1.html``,
@ -422,7 +422,7 @@ sends the :signal:`spider_error` signal, and, once the already scheduled
requests are done, closes the spider with the ``start_error``
:stat:`finish_reason`.
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
The close reason used to be ``finished``, and neither the
:signal:`spider_error` signal nor the :stat:`spider_exceptions/count` stat
reported the exception.

View File

@ -59,7 +59,7 @@ class CloseSpider(Exception):
"""Raised from a :ref:`spider callback <topics-spiders>`, or while the
spider is starting, to request the spider to be closed/stopped.
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
Added support for raising it while the spider is starting.
*reason* is a string with the reason for closing.

View File

@ -396,7 +396,7 @@ class Request(object_ref):
Inverse of :meth:`from_curl`. See also
:func:`scrapy.utils.request.request_to_curl`.
.. versionadded:: VERSION
.. versionadded:: 2.18.0
"""
# Imported here to avoid a circular import.
from scrapy.utils.request import request_to_curl # noqa: PLC0415

View File

@ -86,7 +86,7 @@ class TextResponse(Response):
def json(self) -> Any:
"""Deserialize a JSON document to a Python object.
.. versionchanged:: VERSION
.. versionchanged:: 2.18.0
Bodies that cannot be decoded as UTF-8, UTF-16 or UTF-32, as the
JSON specification requires, are now decoded using
:attr:`TextResponse.encoding` instead of raising

View File

@ -72,7 +72,7 @@ class RobotParser(metaclass=ABCMeta):
of seconds, or ``None`` if it is not set or the backend does not support
it.
.. versionadded:: VERSION
.. versionadded:: 2.18.0
"""
return None

View File

@ -42,7 +42,7 @@ class DepthMiddleware(BaseSpiderMiddleware):
depth_reset
-----------
.. versionadded:: VERSION
.. versionadded:: 2.18.0
:attr:`~scrapy.Request.meta` key that, set to ``True``, gives a request
depth 0 instead of the depth of its source response plus 1, e.g. to keep

View File

@ -296,7 +296,7 @@ class CallLaterResult:
async def sleep(seconds: float) -> None:
"""Sleep for *seconds*.
.. versionadded:: VERSION
.. versionadded:: 2.18.0
This uses either :func:`asyncio.sleep` or
:func:`~twisted.internet.task.deferLater`, depending on whether asyncio