Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-gspread for openSUSE:Factory 
checked in at 2022-10-30 18:29:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gspread (Old)
 and      /work/SRC/openSUSE:Factory/.python-gspread.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gspread"

Sun Oct 30 18:29:15 2022 rev:9 rq:1032321 version:5.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gspread/python-gspread.changes    
2022-09-29 18:15:01.295450614 +0200
+++ /work/SRC/openSUSE:Factory/.python-gspread.new.2275/python-gspread.changes  
2022-10-30 18:29:39.914653239 +0100
@@ -1,0 +2,13 @@
+Fri Oct 28 17:30:18 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com>
+
+- Update to version 5.6.2 (2022-10-23)
+  * update parent folder for client.copy method by @lavigne958 in #1123
+- Update to version 5.6.0 (2022-09-10)
+  * Fix clear_note method when using numeric boundaries by @lavigne958 in #1106
+  * Fix a typo in the permissions:create API payload by @jiananma in #1107
+  * Fix spreadsheet URL by @lavigne958 in #1110
+  * Return created permission on Spreadsheet.share() by @lavigne958 in #1111
+  * (fixed #1113) Supply correct Google API v3 permission for domains by 
@NickCrews in #1115
+  * Bugfix/numericese all by @lavigne958 in #1119
+ 
+-------------------------------------------------------------------

Old:
----
  v5.5.0.tar.gz

New:
----
  v5.6.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gspread.spec ++++++
--- /var/tmp/diff_new_pack.0PPRpi/_old  2022-10-30 18:29:40.366655681 +0100
+++ /var/tmp/diff_new_pack.0PPRpi/_new  2022-10-30 18:29:40.370655702 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-gspread
-Version:        5.5.0
+Version:        5.6.2
 Release:        0
 Summary:        Google Spreadsheets Python API
 License:        MIT

++++++ v5.5.0.tar.gz -> v5.6.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gspread-5.5.0/HISTORY.rst 
new/gspread-5.6.2/HISTORY.rst
--- old/gspread-5.5.0/HISTORY.rst       2022-08-31 17:03:14.000000000 +0200
+++ new/gspread-5.6.2/HISTORY.rst       2022-10-23 23:58:23.000000000 +0200
@@ -1,6 +1,24 @@
 Release History
 ===============
 
+5.6.2 (2022-10-23)
+------------------
+* update parent folder for `client.copy` method by @lavigne958 in 
https://github.com/burnash/gspread/pull/1123
+
+5.6.0 (2022-09-10)
+------------------
+* Fix `clear_note` method when using numeric boundaries by @lavigne958 in 
https://github.com/burnash/gspread/pull/1106
+* Fix a typo in the permissions:create API payload by @jiananma in 
https://github.com/burnash/gspread/pull/1107
+* Fix spreadsheet URL by @lavigne958 in 
https://github.com/burnash/gspread/pull/1110
+* Return created permission on `Spreadsheet.share()` by @lavigne958 in 
https://github.com/burnash/gspread/pull/1111
+* (fixed #1113) Supply correct Google API v3 permission for domains by 
@NickCrews in https://github.com/burnash/gspread/pull/1115
+* Bugfix/numericese all by @lavigne958 in 
https://github.com/burnash/gspread/pull/1119
+
+New Contributors
+****************
+* @jiananma made their first contribution in 
https://github.com/burnash/gspread/pull/1107
+* @NickCrews made their first contribution in 
https://github.com/burnash/gspread/pull/1115
+
 5.5.0 (2022-08-31)
 ------------------
 * Use pathlib by @lavigne958 in https://github.com/burnash/gspread/pull/1057
@@ -21,7 +39,8 @@
 * docs: Fix a few typos by @timgates42 in 
https://github.com/burnash/gspread/pull/1094
 * Fix typo in `Worksheet.batch_format` method by @lavigne958 in 
https://github.com/burnash/gspread/pull/1101
 
-## New Contributors
+New Contributors
+****************
 * @chisvi made their first contribution in 
https://github.com/burnash/gspread/pull/1063
 * @jlumbroso made their first contribution in 
https://github.com/burnash/gspread/pull/1075
 * @yongrenjie made their first contribution in 
https://github.com/burnash/gspread/pull/1092
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gspread-5.5.0/gspread/__init__.py 
new/gspread-5.6.2/gspread/__init__.py
--- old/gspread-5.5.0/gspread/__init__.py       2022-08-31 17:03:14.000000000 
+0200
+++ new/gspread-5.6.2/gspread/__init__.py       2022-10-23 23:58:23.000000000 
+0200
@@ -9,7 +9,7 @@
 """
 
 
-__version__ = "5.5.0"
+__version__ = "5.6.2"
 __author__ = "Anton Burnashev"
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gspread-5.5.0/gspread/client.py 
new/gspread-5.6.2/gspread/client.py
--- old/gspread-5.5.0/gspread/client.py 2022-08-31 17:03:14.000000000 +0200
+++ new/gspread-5.6.2/gspread/client.py 2022-10-23 23:58:23.000000000 +0200
@@ -312,7 +312,7 @@
         }
 
         if folder_id is not None:
-            payload["parents"] = [{"id": folder_id}]
+            payload["parents"] = [folder_id]
 
         params = {"supportsAllDrives": True}
         r = self.request("post", url, json=payload, params=params)
@@ -491,20 +491,26 @@
         """
 
         url = "{}/{}/permissions".format(DRIVE_FILES_API_V3_URL, file_id)
-
         payload = {
-            "emailAddress": value,
             "type": perm_type,
             "role": role,
             "withLink": with_link,
         }
-
         params = {
-            "sendNotificationEmails": notify,
-            "emailMessage": email_message,
             "supportsAllDrives": "true",
         }
 
+        if perm_type == "domain":
+            payload["domain"] = value
+        elif perm_type in {"user", "group"}:
+            payload["emailAddress"] = value
+            params["sendNotificationEmail"] = notify
+            params["emailMessage"] = email_message
+        elif perm_type == "anyone":
+            pass
+        else:
+            raise ValueError("Invalid permission type: {}".format(perm_type))
+
         return self.request("post", url, json=payload, params=params)
 
     def remove_permission(self, file_id, permission_id):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gspread-5.5.0/gspread/spreadsheet.py 
new/gspread-5.6.2/gspread/spreadsheet.py
--- old/gspread-5.5.0/gspread/spreadsheet.py    2022-08-31 17:03:14.000000000 
+0200
+++ new/gspread-5.6.2/gspread/spreadsheet.py    2022-10-23 23:58:23.000000000 
+0200
@@ -509,7 +509,7 @@
             # Give Otto's family a read permission on this spreadsheet
             sh.share('otto-fami...@example.com', perm_type='group', 
role='reader')
         """
-        self.client.insert_permission(
+        return self.client.insert_permission(
             self.id,
             value=email_address,
             perm_type=perm_type,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gspread-5.5.0/gspread/urls.py 
new/gspread-5.6.2/gspread/urls.py
--- old/gspread-5.5.0/gspread/urls.py   2022-08-31 17:03:14.000000000 +0200
+++ new/gspread-5.6.2/gspread/urls.py   2022-10-23 23:58:23.000000000 +0200
@@ -29,4 +29,4 @@
 )
 
 SPREADSHEET_DRIVE_URL = "https://docs.google.com/spreadsheets/d/%s";
-WORKSHEET_DRIVE_URL = SPREADSHEET_URL + "#gid=%s"
+WORKSHEET_DRIVE_URL = SPREADSHEET_DRIVE_URL + "#gid=%s"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gspread-5.5.0/gspread/utils.py 
new/gspread-5.6.2/gspread/utils.py
--- old/gspread-5.5.0/gspread/utils.py  2022-08-31 17:03:14.000000000 +0200
+++ new/gspread-5.6.2/gspread/utils.py  2022-10-23 23:58:23.000000000 +0200
@@ -201,6 +201,9 @@
     :param list ignore: List of ints of indices of the row (index 1) to ignore
         numericising.
     """
+    # in case someone explicitly passes `None` as ignored list
+    ignore = ignore or []
+
     numericised_list = [
         values[index]
         if index + 1 in ignore
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gspread-5.5.0/gspread/worksheet.py 
new/gspread-5.6.2/gspread/worksheet.py
--- old/gspread-5.5.0/gspread/worksheet.py      2022-08-31 17:03:14.000000000 
+0200
+++ new/gspread-5.6.2/gspread/worksheet.py      2022-10-23 23:58:23.000000000 
+0200
@@ -2060,19 +2060,13 @@
         if not isinstance(content, str):
             raise TypeError("Only string allowed as content for a note.")
 
-        (startRow, startColumn) = a1_to_rowcol(cell)
+        grid_range = a1_range_to_grid_range(cell, self.id)
 
         body = {
             "requests": [
                 {
                     "updateCells": {
-                        "range": {
-                            "sheetId": self.id,
-                            "startRowIndex": startRow - 1,
-                            "endRowIndex": startRow,
-                            "startColumnIndex": startColumn - 1,
-                            "endColumnIndex": startColumn,
-                        },
+                        "range": grid_range,
                         "rows": [{"values": [{"note": content}]}],
                         "fields": "note",
                     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gspread-5.5.0/lint-requirements.txt 
new/gspread-5.6.2/lint-requirements.txt
--- old/gspread-5.5.0/lint-requirements.txt     2022-08-31 17:03:14.000000000 
+0200
+++ new/gspread-5.6.2/lint-requirements.txt     2022-10-23 23:58:23.000000000 
+0200
@@ -1,5 +1,5 @@
 bandit==1.7.0
 black==22.3.0
 codespell==2.1.0
-flake8==3.9.2
+flake8==5.0.4
 isort==5.9.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gspread-5.5.0/tests/utils_test.py 
new/gspread-5.6.2/tests/utils_test.py
--- old/gspread-5.5.0/tests/utils_test.py       2022-08-31 17:03:14.000000000 
+0200
+++ new/gspread-5.6.2/tests/utils_test.py       2022-10-23 23:58:23.000000000 
+0200
@@ -93,6 +93,9 @@
         expected + ["5", 5]
         self.assertEqual(utils.numericise_all(inputs, ignore=[5]), expected)
 
+        # provide explicit `None` as ignored list
+        self.assertEqual(utils.numericise_all(inputs, ignore=None), expected)
+
     def test_a1_to_grid_range_simple(self):
         expected_single_dimension = {
             "startRowIndex": 0,

Reply via email to