diff --git a/python-rollbar-no-unittest2.patch b/python-rollbar-no-unittest2.patch index e3d935f..eb4971c 100644 --- a/python-rollbar-no-unittest2.patch +++ b/python-rollbar-no-unittest2.patch @@ -1,7 +1,7 @@ -Index: pyrollbar-0.16.2/rollbar/test/__init__.py +Index: pyrollbar-0.16.3/rollbar/test/__init__.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/__init__.py -+++ pyrollbar-0.16.2/rollbar/test/__init__.py +--- pyrollbar-0.16.3.orig/rollbar/test/__init__.py ++++ pyrollbar-0.16.3/rollbar/test/__init__.py @@ -1,13 +1,13 @@ -import unittest2 +import unittest @@ -19,10 +19,10 @@ Index: pyrollbar-0.16.2/rollbar/test/__init__.py def discover(): - return unittest2.defaultTestLoader.discover(__name__) + return unittest.defaultTestLoader.discover(__name__) -Index: pyrollbar-0.16.2/rollbar/test/test_lib.py +Index: pyrollbar-0.16.3/rollbar/test/test_lib.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/test_lib.py -+++ pyrollbar-0.16.2/rollbar/test/test_lib.py +--- pyrollbar-0.16.3.orig/rollbar/test/test_lib.py ++++ pyrollbar-0.16.3/rollbar/test/test_lib.py @@ -2,6 +2,8 @@ from rollbar.lib import dict_merge from rollbar.test import BaseTest @@ -38,10 +38,10 @@ Index: pyrollbar-0.16.2/rollbar/test/test_lib.py self.assertIn('y', result['a']) - self.assertRegex(result['a']['y'], r'Uncopyable obj') + six.assertRegex(self, result['a']['y'], r'Uncopyable obj') -Index: pyrollbar-0.16.2/rollbar/test/test_rollbar.py +Index: pyrollbar-0.16.3/rollbar/test/test_rollbar.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/test_rollbar.py -+++ pyrollbar-0.16.2/rollbar/test/test_rollbar.py +--- pyrollbar-0.16.3.orig/rollbar/test/test_rollbar.py ++++ pyrollbar-0.16.3/rollbar/test/test_rollbar.py @@ -17,6 +17,7 @@ except ImportError: import mock @@ -116,10 +116,10 @@ Index: pyrollbar-0.16.2/rollbar/test/test_rollbar.py def test_filter_ip_no_user_ip(self): request_data = {'something': 'but no ip'} -Index: pyrollbar-0.16.2/rollbar/test/test_scruburl_transform.py +Index: pyrollbar-0.16.3/rollbar/test/test_scruburl_transform.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/test_scruburl_transform.py -+++ pyrollbar-0.16.2/rollbar/test/test_scruburl_transform.py +--- pyrollbar-0.16.3.orig/rollbar/test/test_scruburl_transform.py ++++ pyrollbar-0.16.3/rollbar/test/test_scruburl_transform.py @@ -1,4 +1,5 @@ import copy +import six @@ -134,10 +134,10 @@ Index: pyrollbar-0.16.2/rollbar/test/test_scruburl_transform.py - self.assertNotRegex(result['link'][0]['url'], r'^-+$') + six.assertNotRegex(self, result['url'][0]['link'], r'^-+$') + six.assertNotRegex(self, result['link'][0]['url'], r'^-+$') -Index: pyrollbar-0.16.2/rollbar/test/test_serializable_transform.py +Index: pyrollbar-0.16.3/rollbar/test/test_serializable_transform.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/test_serializable_transform.py -+++ pyrollbar-0.16.2/rollbar/test/test_serializable_transform.py +--- pyrollbar-0.16.3.orig/rollbar/test/test_serializable_transform.py ++++ pyrollbar-0.16.3/rollbar/test/test_serializable_transform.py @@ -10,6 +10,8 @@ except ImportError: # Python 2.7 from collections import Mapping @@ -180,10 +180,10 @@ Index: pyrollbar-0.16.2/rollbar/test/test_serializable_transform.py result = transforms.transform(start, serializable) - self.assertRegex(result['custom'], "") + six.assertRegex(self, result['custom'], "") -Index: pyrollbar-0.16.2/setup.py +Index: pyrollbar-0.16.3/setup.py =================================================================== ---- pyrollbar-0.16.2.orig/setup.py -+++ pyrollbar-0.16.2/setup.py +--- pyrollbar-0.16.3.orig/setup.py ++++ pyrollbar-0.16.3/setup.py @@ -19,7 +19,6 @@ with open(INIT_PATH) as fd: tests_require = [ 'webob', @@ -192,19 +192,19 @@ Index: pyrollbar-0.16.2/setup.py 'mock<=3.0.5; python_version < "3.3"', 'enum34; python_version < "3.4"', 'httpx; python_version >= "3.6"', -@@ -90,7 +89,7 @@ setup( - 'requests<1.2,>=0.12.1; python_version == "3.2"', - 'requests<1.2,>=0.12.1; python_version == "3.1"', - 'requests<1.2,>=0.12.1; python_version == "3.0"', +@@ -85,7 +84,7 @@ setup( + 'requests>=0.12.1; python_version >= "3.6"', + 'requests<2.26,>=0.12.1; python_version == "3.5"', + 'requests<2.22,>=0.12.1; python_version == "3.4"', - 'six>=1.9.0' + 'six>=1.14.0' ], tests_require=tests_require, ) -Index: pyrollbar-0.16.2/shell.nix +Index: pyrollbar-0.16.3/shell.nix =================================================================== ---- pyrollbar-0.16.2.orig/shell.nix -+++ pyrollbar-0.16.2/shell.nix +--- pyrollbar-0.16.3.orig/shell.nix ++++ pyrollbar-0.16.3/shell.nix @@ -20,7 +20,7 @@ python = let }; in python36.override { inherit packageOverrides; }; @@ -214,10 +214,10 @@ Index: pyrollbar-0.16.2/shell.nix in -Index: pyrollbar-0.16.2/rollbar/test/starlette_tests/__init__.py +Index: pyrollbar-0.16.3/rollbar/test/starlette_tests/__init__.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/starlette_tests/__init__.py -+++ pyrollbar-0.16.2/rollbar/test/starlette_tests/__init__.py +--- pyrollbar-0.16.3.orig/rollbar/test/starlette_tests/__init__.py ++++ pyrollbar-0.16.3/rollbar/test/starlette_tests/__init__.py @@ -1,9 +1,9 @@ import sys -import unittest2 @@ -230,10 +230,10 @@ Index: pyrollbar-0.16.2/rollbar/test/starlette_tests/__init__.py if sys.version_info < (3, 6): -Index: pyrollbar-0.16.2/rollbar/test/starlette_tests/test_middleware.py +Index: pyrollbar-0.16.3/rollbar/test/starlette_tests/test_middleware.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/starlette_tests/test_middleware.py -+++ pyrollbar-0.16.2/rollbar/test/starlette_tests/test_middleware.py +--- pyrollbar-0.16.3.orig/rollbar/test/starlette_tests/test_middleware.py ++++ pyrollbar-0.16.3/rollbar/test/starlette_tests/test_middleware.py @@ -14,7 +14,7 @@ try: except ImportError: STARLETTE_INSTALLED = False @@ -270,10 +270,10 @@ Index: pyrollbar-0.16.2/rollbar/test/starlette_tests/test_middleware.py sys.version_info >= (3, 6), 'Global request access is supported in Python 3.6+' ) def test_should_return_current_request(self): -Index: pyrollbar-0.16.2/rollbar/test/starlette_tests/test_requests.py +Index: pyrollbar-0.16.3/rollbar/test/starlette_tests/test_requests.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/starlette_tests/test_requests.py -+++ pyrollbar-0.16.2/rollbar/test/starlette_tests/test_requests.py +--- pyrollbar-0.16.3.orig/rollbar/test/starlette_tests/test_requests.py ++++ pyrollbar-0.16.3/rollbar/test/starlette_tests/test_requests.py @@ -7,14 +7,14 @@ try: except ImportError: STARLETTE_INSTALLED = False @@ -291,10 +291,10 @@ Index: pyrollbar-0.16.2/rollbar/test/starlette_tests/test_requests.py STARLETTE_INSTALLED and ALLOWED_PYTHON_VERSION, 'Global request access requires Python3.6+', ) -Index: pyrollbar-0.16.2/rollbar/test/starlette_tests/test_logger.py +Index: pyrollbar-0.16.3/rollbar/test/starlette_tests/test_logger.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/starlette_tests/test_logger.py -+++ pyrollbar-0.16.2/rollbar/test/starlette_tests/test_logger.py +--- pyrollbar-0.16.3.orig/rollbar/test/starlette_tests/test_logger.py ++++ pyrollbar-0.16.3/rollbar/test/starlette_tests/test_logger.py @@ -13,7 +13,7 @@ try: except ImportError: STARLETTE_INSTALLED = False @@ -313,10 +313,10 @@ Index: pyrollbar-0.16.2/rollbar/test/starlette_tests/test_logger.py STARLETTE_INSTALLED and ALLOWED_PYTHON_VERSION, 'Starlette LoggerMiddleware requires Python3.6+', ) -Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/__init__.py +Index: pyrollbar-0.16.3/rollbar/test/fastapi_tests/__init__.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/fastapi_tests/__init__.py -+++ pyrollbar-0.16.2/rollbar/test/fastapi_tests/__init__.py +--- pyrollbar-0.16.3.orig/rollbar/test/fastapi_tests/__init__.py ++++ pyrollbar-0.16.3/rollbar/test/fastapi_tests/__init__.py @@ -1,9 +1,9 @@ import sys -import unittest2 @@ -329,10 +329,10 @@ Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/__init__.py if sys.version_info < (3, 6): -Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_logger.py +Index: pyrollbar-0.16.3/rollbar/test/fastapi_tests/test_logger.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/fastapi_tests/test_logger.py -+++ pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_logger.py +--- pyrollbar-0.16.3.orig/rollbar/test/fastapi_tests/test_logger.py ++++ pyrollbar-0.16.3/rollbar/test/fastapi_tests/test_logger.py @@ -13,7 +13,7 @@ try: except ImportError: FASTAPI_INSTALLED = False @@ -351,10 +351,10 @@ Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_logger.py FASTAPI_INSTALLED and ALLOWED_PYTHON_VERSION, 'FastAPI LoggerMiddleware requires Python3.6+', ) -Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_middleware.py +Index: pyrollbar-0.16.3/rollbar/test/fastapi_tests/test_middleware.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/fastapi_tests/test_middleware.py -+++ pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_middleware.py +--- pyrollbar-0.16.3.orig/rollbar/test/fastapi_tests/test_middleware.py ++++ pyrollbar-0.16.3/rollbar/test/fastapi_tests/test_middleware.py @@ -14,7 +14,7 @@ try: except ImportError: FASTAPI_INSTALLED = False @@ -391,10 +391,10 @@ Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_middleware.py sys.version_info >= (3, 6), 'Global request access is supported in Python 3.6+' ) def test_should_return_current_request(self): -Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_routing.py +Index: pyrollbar-0.16.3/rollbar/test/fastapi_tests/test_routing.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/fastapi_tests/test_routing.py -+++ pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_routing.py +--- pyrollbar-0.16.3.orig/rollbar/test/fastapi_tests/test_routing.py ++++ pyrollbar-0.16.3/rollbar/test/fastapi_tests/test_routing.py @@ -17,7 +17,7 @@ except ImportError: FASTAPI_INSTALLED = False ALLOWED_FASTAPI_VERSION = False @@ -444,10 +444,10 @@ Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_routing.py sys.version_info >= (3, 6), 'Global request access is supported in Python 3.6+' ) def test_should_return_current_request(self): -Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_utils.py +Index: pyrollbar-0.16.3/rollbar/test/fastapi_tests/test_utils.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/fastapi_tests/test_utils.py -+++ pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_utils.py +--- pyrollbar-0.16.3.orig/rollbar/test/fastapi_tests/test_utils.py ++++ pyrollbar-0.16.3/rollbar/test/fastapi_tests/test_utils.py @@ -7,14 +7,14 @@ try: except ImportError: FASTAPI_INSTALLED = False @@ -474,10 +474,10 @@ Index: pyrollbar-0.16.2/rollbar/test/fastapi_tests/test_utils.py FASTAPI_INSTALLED and ALLOWED_PYTHON_VERSION, 'FastAPI requires Python3.6+' ) class UtilsBareRoutingTest(BaseTest): -Index: pyrollbar-0.16.2/rollbar/test/asgi_tests/__init__.py +Index: pyrollbar-0.16.3/rollbar/test/asgi_tests/__init__.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/asgi_tests/__init__.py -+++ pyrollbar-0.16.2/rollbar/test/asgi_tests/__init__.py +--- pyrollbar-0.16.3.orig/rollbar/test/asgi_tests/__init__.py ++++ pyrollbar-0.16.3/rollbar/test/asgi_tests/__init__.py @@ -1,9 +1,9 @@ import sys -import unittest2 @@ -490,10 +490,10 @@ Index: pyrollbar-0.16.2/rollbar/test/asgi_tests/__init__.py if sys.version_info < (3, 5): -Index: pyrollbar-0.16.2/rollbar/test/asgi_tests/test_middleware.py +Index: pyrollbar-0.16.3/rollbar/test/asgi_tests/test_middleware.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/asgi_tests/test_middleware.py -+++ pyrollbar-0.16.2/rollbar/test/asgi_tests/test_middleware.py +--- pyrollbar-0.16.3.orig/rollbar/test/asgi_tests/test_middleware.py ++++ pyrollbar-0.16.3/rollbar/test/asgi_tests/test_middleware.py @@ -7,7 +7,7 @@ try: except ImportError: import mock @@ -539,10 +539,10 @@ Index: pyrollbar-0.16.2/rollbar/test/asgi_tests/test_middleware.py @mock.patch('logging.Logger.warning') @mock.patch('rollbar.lib._async.report_exc_info', new_callable=AsyncMock) @mock.patch('rollbar.report_exc_info') -Index: pyrollbar-0.16.2/rollbar/test/asgi_tests/test_spec.py +Index: pyrollbar-0.16.3/rollbar/test/asgi_tests/test_spec.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/asgi_tests/test_spec.py -+++ pyrollbar-0.16.2/rollbar/test/asgi_tests/test_spec.py +--- pyrollbar-0.16.3.orig/rollbar/test/asgi_tests/test_spec.py ++++ pyrollbar-0.16.3/rollbar/test/asgi_tests/test_spec.py @@ -1,14 +1,14 @@ import inspect import sys @@ -560,10 +560,10 @@ Index: pyrollbar-0.16.2/rollbar/test/asgi_tests/test_spec.py class ASGISpecTest(BaseTest): def test_asgi_v3_middleware_is_single_callable_coroutine(self): from rollbar.contrib.asgi import ReporterMiddleware -Index: pyrollbar-0.16.2/rollbar/test/async_tests/__init__.py +Index: pyrollbar-0.16.3/rollbar/test/async_tests/__init__.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/async_tests/__init__.py -+++ pyrollbar-0.16.2/rollbar/test/async_tests/__init__.py +--- pyrollbar-0.16.3.orig/rollbar/test/async_tests/__init__.py ++++ pyrollbar-0.16.3/rollbar/test/async_tests/__init__.py @@ -1,9 +1,9 @@ import sys -import unittest2 @@ -576,10 +576,10 @@ Index: pyrollbar-0.16.2/rollbar/test/async_tests/__init__.py if sys.version_info < (3, 6): -Index: pyrollbar-0.16.2/rollbar/test/async_tests/test_async.py +Index: pyrollbar-0.16.3/rollbar/test/async_tests/test_async.py =================================================================== ---- pyrollbar-0.16.2.orig/rollbar/test/async_tests/test_async.py -+++ pyrollbar-0.16.2/rollbar/test/async_tests/test_async.py +--- pyrollbar-0.16.3.orig/rollbar/test/async_tests/test_async.py ++++ pyrollbar-0.16.3/rollbar/test/async_tests/test_async.py @@ -6,7 +6,7 @@ try: except ImportError: import mock diff --git a/python-rollbar.changes b/python-rollbar.changes index f542c30..c113134 100644 --- a/python-rollbar.changes +++ b/python-rollbar.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Feb 20 12:16:51 UTC 2023 - Daniel Garcia + +- Update to 0.16.3: + * Pinned Python 2 CI tests to legacy version of dependencies. See #408 + * Add PyPI badge for supported Python versions. See #408 + * Add Django 4.0+ compatibility. See #408 + * Update PR template. See #408 + * SC-95272: Remove support for Python 3.3. See #408 +- Disable broken tests in python 3.11, test_encode_empty_tuple + ------------------------------------------------------------------- Mon Jan 24 01:54:43 UTC 2022 - Steve Kowalik diff --git a/python-rollbar.spec b/python-rollbar.spec index 912943b..ab1a403 100644 --- a/python-rollbar.spec +++ b/python-rollbar.spec @@ -1,7 +1,7 @@ # # spec file for package python-rollbar # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,9 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-rollbar -Version: 0.16.2 +Version: 0.16.3 Release: 0 Summary: Report exceptions, errors, and log messages to Rollbar License: MIT @@ -64,7 +63,7 @@ Send messages and exceptions with arbitrary context, get back aggregates, and de %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest -k 'not test_shorten_array' +%pytest -k 'not (test_shorten_array or test_encode_empty_tuple)' %post %python_install_alternative rollbar @@ -76,6 +75,7 @@ Send messages and exceptions with arbitrary context, get back aggregates, and de %doc README.md %license LICENSE %python_alternative %{_bindir}/rollbar -%{python_sitelib}/* +%{python_sitelib}/rollbar +%{python_sitelib}/rollbar-%{version}*-info %changelog diff --git a/v0.16.2.tar.gz b/v0.16.2.tar.gz deleted file mode 100644 index e06f913..0000000 --- a/v0.16.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:614d61148ac347771f471f6dee1d1ab1eb80e082c0be4b7bbc717769e04389ae -size 80103 diff --git a/v0.16.3.tar.gz b/v0.16.3.tar.gz new file mode 100644 index 0000000..dfbf8e8 --- /dev/null +++ b/v0.16.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79635a2ca8c36b504fc8a3943154256c39b7369e67c01a79aabb283541330d35 +size 80545