Skip to content

Commit

Permalink
Release notes for 0.10.0 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio authored Nov 22, 2024
1 parent bb21a2a commit 3a7670a
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
41 changes: 41 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,47 @@
Changes
=======

0.10.0 (2024-11-DD)
-------------------

* Dropped Python 3.8 support, added Python 3.13 support.

* Increased the minimum required versions of some dependencies:

* ``pydantic``: ``2`` → ``2.1``

* ``scrapy-poet``: ``0.21.0`` → ``0.24.0``

* ``scrapy-spider-metadata``: ``0.1.2`` → ``0.2.0``

* ``scrapy-zyte-api[provider]``: ``0.16.0`` → ``0.23.0``

* ``zyte-common-items``: ``0.22.0`` → ``0.23.0``

* Added :ref:`custom attributes <custom-attributes>` support to the
:ref:`e-commerce spider template <e-commerce>` through its new
:class:`~zyte_spider_templates.spiders.ecommerce.EcommerceSpiderParams.custom_attrs_input`
and
:class:`~zyte_spider_templates.spiders.ecommerce.EcommerceSpiderParams.custom_attrs_method`
parameters.

* The
:class:`~zyte_spider_templates.spiders.serp.GoogleSearchSpiderParams.max_pages`
parameter of the :ref:`Google Search spider template <google-search>` can no
longer be 0 or lower.

* The :ref:`Google Search spider template <google-search>` now follows
pagination for the results of each query page by page, instead of sending a
request for every page in parallel. It stops once it reaches a page without
organic results.

* Improved the description of
:class:`~zyte_spider_templates.spiders.ecommerce.EcommerceCrawlStrategy`
values.

* Fixed type hint issues related to Scrapy.


0.9.0 (2024-09-17)
------------------

Expand Down
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
"https://web-poet.readthedocs.io/en/stable",
None,
),
"zyte": (
"https://docs.zyte.com",
None,
),
"zyte-common-items": (
"https://zyte-common-items.readthedocs.io/en/latest",
None,
Expand All @@ -57,6 +61,7 @@
autodoc_pydantic_model_show_json = False
autodoc_pydantic_model_show_validator_members = False
autodoc_pydantic_model_show_validator_summary = False
autodoc_pydantic_field_list_validators = False

# sphinx-reredirects
redirects = {
Expand Down
8 changes: 8 additions & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ Pages
Parameter mixins
================

.. autopydantic_model:: zyte_spider_templates.params.CustomAttrsInputParam
:exclude-members: model_computed_fields

.. autopydantic_model:: zyte_spider_templates.params.CustomAttrsMethodParam
:exclude-members: model_computed_fields

.. autoenum:: zyte_spider_templates.params.CustomAttrsMethod

.. autopydantic_model:: zyte_spider_templates.params.ExtractFromParam
:exclude-members: model_computed_fields

Expand Down
6 changes: 3 additions & 3 deletions zyte_spider_templates/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def validate_input_group(model):


class UrlsFileParam(BaseModel):
urls_file: str = Field(**URLS_FILE_FIELD_KWARGS) # type: ignore[misc, arg-type]
urls_file: str = Field(**URLS_FILE_FIELD_KWARGS) # type: ignore[call-overload, misc, arg-type]

@model_validator(mode="after")
def input_group(self):
Expand Down Expand Up @@ -193,7 +193,7 @@ def parse_input_params(spider):


class UrlParam(BaseModel):
url: str = Field(**URL_FIELD_KWARGS) # type: ignore[misc, arg-type]
url: str = Field(**URL_FIELD_KWARGS) # type: ignore[call-overload, misc, arg-type]


URLS_FIELD_KWARGS = {
Expand Down Expand Up @@ -247,7 +247,7 @@ def input_group(self):


class UrlsParam(BaseModel):
urls: Optional[List[str]] = Field(**URLS_FIELD_KWARGS) # type: ignore[misc, arg-type]
urls: Optional[List[str]] = Field(**URLS_FIELD_KWARGS) # type: ignore[call-overload, misc, arg-type]

@model_validator(mode="after")
def input_group(self):
Expand Down

0 comments on commit 3a7670a

Please sign in to comment.