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-09-30 23:43:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-cloud-storage (Old)
and /work/SRC/openSUSE:Factory/.python-google-cloud-storage.new.2443 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-cloud-storage"
Thu Sep 30 23:43:44 2021 rev:10 rq:922325 version:1.38.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-google-cloud-storage/python-google-cloud-storage.changes 2021-06-22 20:45:09.158837209 +0200
+++ /work/SRC/openSUSE:Factory/.python-google-cloud-storage.new.2443/python-google-cloud-storage.changes 2021-09-30 23:45:02.312582263 +0200
@@ -1,0 +2,7 @@
+Thu Sep 30 09:04:12 UTC 2021 - Steve Kowalik
+
+- Copy the testsuite before we run it to avoid import problems.
+- Remove horrible workarounds creating __init__.py and then removing them.
+- Drop Requires on python-google-filesystem.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-cloud-storage.spec ++++++
--- /var/tmp/diff_new_pack.eo05M9/_old 2021-09-30 23:45:03.416583527 +0200
+++ /var/tmp/diff_new_pack.eo05M9/_new 2021-09-30 23:45:03.420583531 +0200
@@ -42,7 +42,6 @@
BuildRequires: python-rpm-macros
Requires: python-google-auth >= 1.11.0
Requires: python-google-cloud-core >= 1.4.1
-Requires: python-google-filesystem
Requires: python-google-resumable-media >= 1.2.0
Requires: python-googleapis-common-protos
Requires: python-requests >= 2.18.0
@@ -63,14 +62,13 @@
%install
%python_install
-%{python_expand touch %{buildroot}%{$python_sitelib}/google/cloud/__init__.py
-%fdupes %{buildroot}%{$python_sitelib}
-}
+%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
%check
-%{python_expand touch %{buildroot}%{$python_sitelib}/google/__init__.py}
-%pytest tests/unit -k 'not network'
-%{python_expand rm %{buildroot}%{$python_sitelib}/google/__init__.py}
+# 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'
%files %{python_files}
%license LICENSE