Skip to content

Commit fce3d29

Browse files
authored
Merge branch 'master' into issue-435
2 parents 9edc03a + baafaa8 commit fce3d29

File tree

6 files changed

+29
-11
lines changed

6 files changed

+29
-11
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.22.0
2+
current_version = 1.23.0
33
commit = True
44
tag = True
55
tag_name = {new_version}

CHANGES.rst

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Release notes
22
=============
33

4+
1.23.0 (2024-10-31)
5+
-------------------
6+
7+
- bugs: Fix ``traverse_nested`` when value is not compatible with ``ItemAdapter`` (`PR#450 <https://github.com/scrapinghub/spidermon/pull/450>`_)
8+
- bugs: Fix default templates non-subscriptable issue (`PR#451 <https://github.com/scrapinghub/spidermon/pull/451>`_)
9+
- chore: Update codecov action (`PR#453 <https://github.com/scrapinghub/spidermon/pull/453>`_)
10+
- docs: Fix broken link (`PR#452 <https://github.com/scrapinghub/spidermon/pull/452>`_)
11+
- feature: Allow to filter jobs in `ZyteJobsComparisonMonitor` by `close_reason` (`PR#440 <https://github.com/scrapinghub/spidermon/pull/440>`_)
12+
- feature: Apply fingerprint rules to group issues in sentry alerts (`PR#455 <https://github.com/scrapinghub/spidermon/pull/455>`_)
13+
414
1.22.0 (2024-05-08)
515
-------------------
616

@@ -20,24 +30,24 @@ Release notes
2030
- bug: Fix tests for minimum properties and items in JSON Schema validations (`PR#432 <https://github.com/scrapinghub/spidermon/pull/432>`_)
2131
- feature: Add the ``SPIDERMON_DICT_FIELDS_COVERAGE_LEVELS`` setting to limit nested dict stats computation (`PR#433 <https://github.com/scrapinghub/spidermon/pull/433>`_)
2232
- feature: Add ``SendSNSNotification`` to Spidermon Notifications (`PR#413 <https://github.com/scrapinghub/spidermon/pull/413>`_)
23-
- feature: Change the format of the content of _validation from defaultdict to dict (`PR#431 <https://github.com/scrapinghub/spidermon/pull/431>`_)
33+
- feature: Change the format of the content of _validation from defaultdict to dict (`PR#431 <https://github.com/scrapinghub/spidermon/pull/431>`_)
2434

2535
1.20.0 (2023-09-01)
2636
-------------------
2737

2838
- feature: Add support for nested fields in the ``SPIDERMON_VALIDATION_ERRORS_FIELD`` setting (`PR#416 <https://github.com/scrapinghub/spidermon/pull/417>`_)
2939
- bug: Fix ItemValidationPipeline using the ``__setitem__`` method without ItemAdaper (`PR#415 <https://github.com/scrapinghub/spidermon/pull/415>`_)
30-
- feature: Improve test coverage for the item validation pipeline (`PR#414 <https://github.com/scrapinghub/spidermon/pull/414>`_)
40+
- feature: Improve test coverage for the item validation pipeline (`PR#414 <https://github.com/scrapinghub/spidermon/pull/414>`_)
3141
- bug: Fix ``spidermon.utils.zyte.Client`` not following crawler settings (`PR#411 <https://github.com/scrapinghub/spidermon/pull/411>`_)
3242
- chore: Migrate ReadTheDocs to config file v2 (`PR#408 <https://github.com/scrapinghub/spidermon/pull/408>`_)
3343
- chore: Refactor package requirements (`PR#407 <https://github.com/scrapinghub/spidermon/pull/407>`_)
3444

3545
Backward-incompatible changes
3646
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3747

38-
- The ``SPIDERMON_VALIDATION_ERRORS_FIELD`` setting no longer supports a field
39-
name that contains a dot (``.``). Dots are now be treated as field
40-
separators, to support specifying a nested field.
48+
- The ``SPIDERMON_VALIDATION_ERRORS_FIELD`` setting no longer supports a field
49+
name that contains a dot (``.``). Dots are now be treated as field
50+
separators, to support specifying a nested field.
4151

4252
1.19.0 (2023-07-07)
4353
-------------------

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22

33
setup(
44
name="spidermon",
5-
version="1.22.0",
5+
version="1.23.0",
66
url="https://github.com/scrapinghub/spidermon",
7+
project_urls={
8+
"Documentation": "https://spidermon.readthedocs.io/",
9+
"Source": "https://github.com/scrapinghub/spidermon",
10+
"Tracker": "https://github.com/scrapinghub/spidermon/issues",
11+
"Release notes": "https://spidermon.readthedocs.io/en/latest/changelog.html",
12+
},
713
author="Zyte",
814
author_email="opensource@zyte.com",
915
description=("Spidermon is a framework to build monitors for Scrapy spiders."),
10-
long_description=("Spidermon is a framework to build monitors for Scrapy spiders."),
16+
long_description=open("README.rst", encoding="utf-8").read(),
17+
long_description_content_type="text/x-rst",
1118
license="BSD",
1219
packages=find_packages(),
1320
package_data={"spidermon": ["VERSION"]},

spidermon/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.22.0
1+
1.23.0

spidermon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.22.0"
1+
__version__ = "1.23.0"
22

33
from .core.monitors import Monitor
44
from .core.suites import MonitorSuite

spidermon/contrib/actions/sentry/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,13 @@ def send_message(self, message):
136136
scope.set_extra("failed_monitors", message.get("failed_monitors", []))
137137

138138
sentry_client.capture_event(
139-
{
139+
event={
140140
"message": "{title} \n {description}".format(
141141
title=message.get("title"),
142142
description=message.get("failure_reasons", ""),
143143
),
144144
"level": self.sentry_log_level,
145+
"fingerprint": [message.get("title")],
145146
},
146147
scope=scope,
147148
)

0 commit comments

Comments
 (0)