Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-google-cloud-storage for
openSUSE:Factory checked in at 2021-10-26 20:14:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-cloud-storage (Old)
and /work/SRC/openSUSE:Factory/.python-google-cloud-storage.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-cloud-storage"
Tue Oct 26 20:14:14 2021 rev:11 rq:927534 version:1.38.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-google-cloud-storage/python-google-cloud-storage.changes
2021-09-30 23:45:02.312582263 +0200
+++
/work/SRC/openSUSE:Factory/.python-google-cloud-storage.new.1890/python-google-cloud-storage.changes
2021-10-26 20:14:58.818050583 +0200
@@ -1,0 +2,5 @@
+Thu Sep 30 09:19:18 UTC 2021 - Matej Cepl <[email protected]>
+
+- Add no-relative-imports.patch to fix relative imports.
+
+-------------------------------------------------------------------
New:
----
no-relative-imports.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-cloud-storage.spec ++++++
--- /var/tmp/diff_new_pack.92Gj8z/_old 2021-10-26 20:14:59.402050891 +0200
+++ /var/tmp/diff_new_pack.92Gj8z/_new 2021-10-26 20:14:59.406050894 +0200
@@ -30,14 +30,19 @@
# PATCH-FIX-UPSTREAM no-network.patch gh#googleapis/python-storage#457
[email protected]
# mark tests as requiring network
Patch1: no-network.patch
+# PATCH-FIX-UPSTREAM no-relative-imports.patch bsc#[0-9]+ [email protected]
+# fix relative imports
+Patch2: no-relative-imports.patch
BuildRequires: %{python_module google-auth >= 1.11.0}
BuildRequires: %{python_module google-cloud-core >= 1.4.1}
BuildRequires: %{python_module google-resumable-media >= 1.2.0}
BuildRequires: %{python_module mock >= 3.0.0}
BuildRequires: %{python_module packaging}
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.18.0}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-google-auth >= 1.11.0
@@ -58,17 +63,15 @@
%autosetup -p1 -n google-cloud-storage-%{version}
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
-%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
+%pyproject_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-# We shouldn't be running tests from the BUILD/*/ directory, where pytest
finds another google/ subdirectory
-trap 'rm -rf -- ~/tests' INT TERM HUP EXIT
-cp -r tests ~/ && cd
-%pytest tests/unit -m 'not network'
+export PYTEST_ADDOPTS="--import-mode=importlib"
+%pytest tests/unit -k 'not network'
%files %{python_files}
%license LICENSE
++++++ no-relative-imports.patch ++++++
---
tests/unit/test__signing.py | 5 ++++-
tests/unit/test_client.py | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
--- a/tests/unit/test__signing.py
+++ b/tests/unit/test__signing.py
@@ -19,7 +19,9 @@ import binascii
import calendar
import datetime
import json
+import os.path
import time
+import sys
import unittest
import mock
@@ -27,7 +29,8 @@ import pytest
import six
from six.moves import urllib_parse
-from . import _read_local_json
+sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..')))
+from unit import _read_local_json
_SERVICE_ACCOUNT_JSON = _read_local_json("url_signer_v4_test_account.json")
--- a/tests/unit/test_client.py
+++ b/tests/unit/test_client.py
@@ -16,8 +16,10 @@ import base64
import io
import json
import mock
+import os.path
import pytest
import re
+import sys
import requests
import unittest
from six.moves import http_client
@@ -26,10 +28,11 @@ from six.moves.urllib import parse as ur
from google.api_core import exceptions
from google.oauth2.service_account import Credentials
-from . import _read_local_json
from google.cloud.storage.retry import DEFAULT_RETRY
+sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..')))
+from unit import _read_local_json
_SERVICE_ACCOUNT_JSON = _read_local_json("url_signer_v4_test_account.json")
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")[