Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-aws-xray-sdk for
openSUSE:Factory checked in at 2022-10-15 16:38:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aws-xray-sdk (Old)
and /work/SRC/openSUSE:Factory/.python-aws-xray-sdk.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aws-xray-sdk"
Sat Oct 15 16:38:26 2022 rev:9 rq:1011112 version:2.10.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-aws-xray-sdk/python-aws-xray-sdk.changes
2021-08-02 15:41:06.539168460 +0200
+++
/work/SRC/openSUSE:Factory/.python-aws-xray-sdk.new.2275/python-aws-xray-sdk.changes
2022-10-15 16:41:02.518670250 +0200
@@ -1,0 +2,23 @@
+Fri Oct 14 21:49:44 UTC 2022 - Ben Greiner <[email protected]>
+
+- Update to 2.10.0
+ * bugfix: Only import future for py2. PR343.
+ * bugfix: Defensively copy context entities to async thread.
+ PR340.
+ * improvement: Added support for IGNORE_ERROR option when context
+ is missing. PR338.
+- Release 2.9.0
+ * bugfix: Change logging behavior to avoid overflow. PR302.
+ * improvement: Lazy load samplers to speed up cold start in
+ lambda. PR312.
+ * improvement: Replace slow json file name resolver. PR 306.
+- Remove aiobotocore from Tumbleweed -- gh#aio-libs/aiobotocore#971
+- Enable parts of the test suite
+ * multibuild: checks runtime requirements directly
+ * use github archive: contains the test files
+ * exclude tests which do not have compatible packages or require
+ network connection
+- Add extra subpackage for bottle
+- Fix mysql subpackage recommendation
+
+-------------------------------------------------------------------
Old:
----
aws-xray-sdk-2.8.0.tar.gz
New:
----
_multibuild
aws-xray-sdk-python-2.10.0-gh.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-aws-xray-sdk.spec ++++++
--- /var/tmp/diff_new_pack.byPej4/_old 2022-10-15 16:41:02.966671327 +0200
+++ /var/tmp/diff_new_pack.byPej4/_new 2022-10-15 16:41:02.970671337 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-aws-xray-sdk
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,23 +16,62 @@
#
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+
+%if 0%{?suse_version} >= 1550
+%bcond_with aiobotocore
+%else
+%bcond_without aiobotocore
+%endif
+
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-aws-xray-sdk
-Version: 2.8.0
+Version: 2.10.0
Release: 0
Summary: The AWS X-Ray SDK for Python
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/aws/aws-xray-sdk-python
-Source:
https://files.pythonhosted.org/packages/source/a/aws-xray-sdk/aws-xray-sdk-%{version}.tar.gz
+Source:
https://github.com/aws/aws-xray-sdk-python/archive/refs/tags/%{version}.tar.gz#/aws-xray-sdk-python-%{version}-gh.tar.gz
Source9: %{name}-rpmlintrc
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-botocore >= 1.11.3
-Requires: python-future
Requires: python-wrapt
+%ifpython2
+Requires: python-future
+%endif
+%if %{with test}
+BuildRequires: %pythons
+BuildRequires: %{python_module WebTest}
+BuildRequires: %{python_module aws-xray-sdk = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-Django = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-Flask-SQLAlchemy = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-SQLAlchemy = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-aiohttp = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-bottle = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-mysql-connector = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-psycopg2 = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-pymongo = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-pynamodb = %{version}}
+BuildRequires: %{python_module aws-xray-sdk-requests = %{version}}
+BuildRequires: %{python_module pytest-aiohttp}
+BuildRequires: %{python_module pytest-asyncio}
+BuildRequires: %{python_module pytest-benchmark}
+BuildRequires: %{python_module pytest}
+%if %{with aiobotocore}
+BuildRequires: %{python_module aws-xray-sdk-aiobotocore = %{version}}
+%endif
+%endif
BuildArch: noarch
%python_subpackages
@@ -59,7 +98,8 @@
Recommends: %{name}-SQLAlchemy = %{version}
Recommends: %{name}-aiobotocore = %{version}
Recommends: %{name}-aiohttp = %{version}
-Recommends: %{name}-mysql-connector-python = %{version}
+Recommends: %{name}-bottle = %{version}
+Recommends: %{name}-mysql-connector = %{version}
Recommends: %{name}-psycopg2 = %{version}
Recommends: %{name}-pymongo = %{version}
Recommends: %{name}-pynamodb = %{version}
@@ -109,6 +149,18 @@
This package provides the SQLAlchemy backend for %{name}.
+%package bottle
+Summary: bottle backend for the AWS X-Ray Python SDK
+Group: Development/Languages/Python
+Requires: %{name} = %{version}
+Requires: python-bottle >= 0.10
+
+%description bottle
+The AWS X-Ray SDK for Python enables Python developers to record and
+emit information from within their applications to the AWS X-Ray service.
+
+This package provides the bottle backend for %{name}.
+
%package mysql-connector
Summary: mysql backend for the AWS X-Ray Python SDK
Group: Development/Languages/Python
@@ -137,7 +189,7 @@
Summary: pynamodb backend for the AWS X-Ray Python SDK
Group: Development/Languages/Python
Requires: %{name} = %{version}
-Requires: python-pynamodb
+Requires: python-pynamodb >= 3.3.1
%description pynamodb
The AWS X-Ray SDK for Python enables Python developers to record and
@@ -185,7 +237,7 @@
Summary: aiohttp backend for the AWS X-Ray Python SDK
Group: Development/Languages/Python
Requires: %{name} = %{version}
-Requires: python-aiohttp >= 2.3
+Requires: python-aiohttp >= 3.0
%description aiohttp
The AWS X-Ray SDK for Python enables Python developers to record and
@@ -194,32 +246,66 @@
This package provides the aiohttp backend for %{name}.
%prep
-%setup -q -n aws-xray-sdk-%{version}
+%setup -q -n aws-xray-sdk-python-%{version}
+%if !%{with test}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%python_expand $python -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/aws_xray_sdk/ext/psycopg2/
-%python_expand $python -O -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/aws_xray_sdk/ext/psycopg2/
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+
+%if %{with test}
+%check
+export DJANGO_SETTINGS_MODULE=tests.ext.django.app.settings
+export AWS_SECRET_ACCESS_KEY=fake_key
+export AWS_ACCESS_KEY_ID=fake_id
+%if !%{with aiobotocore}
+ignore_tests+=" --ignore tests/ext/aiobotocore/test_aiobotocore.py"
+%endif
+#
+# See tox.ini:
+#
+# incompatibe pytest-aiohttp
+ignore_tests+=" --ignore tests/ext/aiohttp"
+# not packaged
+ignore_tests+=" --ignore tests/ext/pg8000/test_pg8000.py"
+# no testing.postgresql package
+ignore_tests+=" --ignore tests/ext/psycopg2/test_psycopg2.py"
+ignore_tests+=" --ignore tests/ext/sqlalchemy_core/test_postgres.py"
+# no testing.myssqld package
+ignore_tests+=" --ignore tests/ext/pymysql/test_pymysql.py"
+# no django-fake-model
+ignore_tests+=" --ignore tests/ext/django"
+# no connection to httpbin.org
+ignore_tests+=" --ignore tests/ext/httplib/test_httplib.py"
+ignore_tests+=" --ignore tests/ext/requests/test_requests.py"
+# tests by connecting to live aws hosts
+ignore_tests+=" --ignore tests/ext/pynamodb/test_pynamodb.py"
+# https://github.com/aws/aws-xray-sdk-python/issues/321
+python310_donttest=("-k" "not test_localstorage_isolation")
+%pytest $ignore_tests "${$python_donttest[@]}"
+%endif
+%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.md
-%{python_sitelib}/*
+%{python_sitelib}/aws_xray_sdk
+%{python_sitelib}/aws_xray_sdk-%{version}*-info
+%exclude %{python_sitelib}/aws_xray_sdk/ext/aiohttp/
+%exclude %{python_sitelib}/aws_xray_sdk/ext/aiobotocore/
+%exclude %{python_sitelib}/aws_xray_sdk/ext/bottle/
%exclude %{python_sitelib}/aws_xray_sdk/ext/django/
%exclude %{python_sitelib}/aws_xray_sdk/ext/flask_sqlalchemy/
-%exclude %{python_sitelib}/aws_xray_sdk/ext/sqlalchemy/
%exclude %{python_sitelib}/aws_xray_sdk/ext/mysql/
+%exclude %{python_sitelib}/aws_xray_sdk/ext/psycopg2/
%exclude %{python_sitelib}/aws_xray_sdk/ext/pymongo/
%exclude %{python_sitelib}/aws_xray_sdk/ext/pynamodb/
-%exclude %{python_sitelib}/aws_xray_sdk/ext/psycopg2/
%exclude %{python_sitelib}/aws_xray_sdk/ext/requests/
-%exclude %{python_sitelib}/aws_xray_sdk/ext/aiohttp/
-%exclude %{python_sitelib}/aws_xray_sdk/ext/aiobotocore/
+%exclude %{python_sitelib}/aws_xray_sdk/ext/sqlalchemy/
%files %{python_files all}
%license LICENSE
@@ -236,6 +322,10 @@
%license LICENSE
%{python_sitelib}/aws_xray_sdk/ext/sqlalchemy/
+%files %{python_files bottle}
+%license LICENSE
+%{python_sitelib}/aws_xray_sdk/ext/bottle/
+
%files %{python_files mysql-connector}
%license LICENSE
%{python_sitelib}/aws_xray_sdk/ext/mysql/
@@ -256,12 +346,15 @@
%license LICENSE
%{python_sitelib}/aws_xray_sdk/ext/requests/
+%if %{with aiobotocore}
%files %{python_files aiobotocore}
%license LICENSE
%{python_sitelib}/aws_xray_sdk/ext/aiobotocore/
+%endif
%files %{python_files aiohttp}
%license LICENSE
%{python_sitelib}/aws_xray_sdk/ext/aiohttp/
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>