From 8cf126b915865046000f27162e1b28228eb31793 Mon Sep 17 00:00:00 2001 From: Zacharias Zacharodimos Date: Thu, 12 Oct 2023 16:29:29 +0200 Subject: [PATCH] release: v2.0.0 --- .github/workflows/tests.yml | 10 +++++----- CHANGES.rst | 8 ++------ docs/api.rst | 3 --- docs/conf.py | 2 +- invenio_logging/__init__.py | 2 +- invenio_logging/config.py | 4 +--- setup.cfg | 3 +-- tests/test_sentry.py | 1 - 8 files changed, 11 insertions(+), 22 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d4b224..acc3b74 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,21 +16,21 @@ on: branches: master schedule: # * is a special character in YAML so you have to quote this string - - cron: '0 3 * * 6' + - cron: "0 3 * * 6" workflow_dispatch: inputs: reason: - description: 'Reason' + description: "Reason" required: false - default: 'Manual trigger' + default: "Manual trigger" jobs: Tests: runs-on: ubuntu-20.04 strategy: matrix: - python-version: [3.7, 3.8, 3.9] - requirements-level: [pypi] + python-version: [3.8, 3.9] + requirements-level: [pypi] env: EXTRAS: tests diff --git a/CHANGES.rst b/CHANGES.rst index 5430467..5c105b3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,13 +8,9 @@ Changes ======= -Version 1.3.4 (released 2023-10-12) +Version 2.0.0 (released 2023-10-12) -- add back in setup sentry and sentry-sdk extras - -Version 1.3.3 (released 2023-10-12) - -- Adds `LOGGING_SENTRY_INIT_KWARGS` to allow extra config on sentry initialization +- removes support for raven Version 1.3.2 (released 2022-02-28) diff --git a/docs/api.rst b/docs/api.rst index 6ff2592..9a48757 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -23,8 +23,5 @@ File System Sentry ------ -.. automodule:: invenio_logging.sentry6 - :members: - .. automodule:: invenio_logging.sentry :members: diff --git a/docs/conf.py b/docs/conf.py index 1deba6f..128b861 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -315,7 +315,7 @@ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { - "https://docs.python.org/": None, + "python": ("https://docs.python.org/", None), "flask": ("https://flask.palletsprojects.com/en/latest/", None), "celery": ("https://docs.celeryproject.org/en/stable/", None), } diff --git a/invenio_logging/__init__.py b/invenio_logging/__init__.py index 01c9ce2..6813b40 100644 --- a/invenio_logging/__init__.py +++ b/invenio_logging/__init__.py @@ -87,6 +87,6 @@ from __future__ import absolute_import, print_function -__version__ = "1.3.4" +__version__ = "2.0.0" __all__ = ("__version__",) diff --git a/invenio_logging/config.py b/invenio_logging/config.py index 9d13bf8..b2d7dd2 100644 --- a/invenio_logging/config.py +++ b/invenio_logging/config.py @@ -95,9 +95,7 @@ LOGGING_SENTRY_CLASS = None """Import path of sentry Flask extension class. -This allows you to customize the Sentry extension class. In particular if you -are logging to Sentry v6, you can set this to -:class:`invenio_logging.sentry6.Sentry6`.""" +This allows you to customize the Sentry extension class.""" LOGGING_SENTRY_INIT_KWARGS = None """Pass extra options when initializing Sentry instance.""" diff --git a/setup.cfg b/setup.cfg index 0a9addb..1f5f97a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,7 +24,7 @@ classifiers = [options] include_package_data = True packages = find: -python_requires = >=3.7 +python_requires = >=3.8 zip_safe = False install_requires = invenio-celery>=1.2.4 @@ -40,7 +40,6 @@ tests = iniconfig>=1.1.1 sphinx>=4.5 sentry-sdk[flask]>=1.0.0 -# Kept for backwards compatibility sentry_sdk = sentry-sdk[flask]>=1.0.0 diff --git a/tests/test_sentry.py b/tests/test_sentry.py index 9f5f885..85bd1bc 100644 --- a/tests/test_sentry.py +++ b/tests/test_sentry.py @@ -10,7 +10,6 @@ from __future__ import absolute_import, print_function - from flask import Flask from sentry_sdk.hub import Hub from sentry_sdk.integrations.celery import CeleryIntegration