15
0
Files
python-gspread/python-gspread.spec

69 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-gspread
#
Accepting request 1006789 from home:yarunachalam:branches:devel:languages:python - 5.5.0 (2022-08-31) Use pathlib by @lavigne958 in #1057 Migrate to drive API V3 by @lavigne958 in #1060 Implement __eq__ method for Cell by @chisvi in #1063 Add missing documentation on set_timeout by @lavigne958 in #1070 Add method to transfer / accept ownership of a spreadsheet by @lavigne958 in #1068 Add client_factory param to auth methods by @jlumbroso in #1075 Fix list_protected_ranges by @lavigne958 in #1076 Add function to convert column letter to column index by @lavigne958 in #1077 Fix docstring name of named_range() param by @dgilman in #1081 Fix grammar in docstring for client.export by @dgilman in #1080 Many typo fixes to worksheet docstrings by @dgilman in #1083 Fix function numericise_all by @lavigne958 in #1082 Fix documentation about oauth_from_dict by @lavigne958 in #1088 inherit_from_before option for insert_row/insert_rows by @yongrenjie in #1092 add method to change the color of a tab by @lavigne958 in #1095 docs: Fix a few typos by @timgates42 in #1094 Fix typo in Worksheet.batch_format method by @lavigne958 in #1101 ## New Contributors * @chisvi made their first contribution in #1063 * @jlumbroso made their first contribution in #1075 * @yongrenjie made their first contribution in #1092 - 5.4.0 (2022-06-01) fix typo by @joswlv in #1031 Fix error message in get_all_records by @lavigne958 in #1028 Added feature request #1022. Auto resizing is now available for rows … by @mketer1 in #1033 add new method to hide/show a worksheet by @lavigne958 in #1030 feat: Download PDF from Spreadsheet #1035 by @100paperkite in #1036 Add test on auto_resize_columns by @lavigne958 in #1039 Add method to unmerge cells by @lavigne958 in #1040 Add method to delete a protected range by @lavigne958 in #1042 Feature/clean organize documentation by @lavigne958 in #1043 Add warning about deprecated oauth flow by @lavigne958 in #1047 OBS-URL: https://build.opensuse.org/request/show/1006789 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gspread?expand=0&rev=15
2022-09-29 09:28:08 +00:00
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-gspread
Version: 5.7.2
Release: 0
Summary: Google Spreadsheets Python API
License: MIT
URL: https://github.com/burnash/gspread
Source: https://github.com/burnash/gspread/archive/v%{version}.tar.gz
BuildRequires: %{python_module betamax}
- Update to 3.7.0: * Add `Worksheet.insert_note()`, `Worksheet.update_note()`, `Worksheet.clear_note()` (#818 by @lavigne958) * Add `Worksheet.insert_cols()` (#802 by @AlexeyDmitriev) * Add `value_render_option` parameter to `Worksheet.get_all_records()` (#776 by @damgad) * Remove `requests` from `install_requires` (#801) * Simplify implementation of `Worksheet.insert_rows()` (#799 by @AlexeyDmitriev) * Add `auth.service_account_from_dict()` (#785 b7 @mahenzon) * Fix `ValueRange.from_json()` (#791 by @erakli) * Allow `auth` to be `None`. Fix #773 (#774 by @lepture) * Add `Worksheet.insert_rows()` (#734 by @tr-fi) * Add `Worksheet.copy_to()` (#758 by @JoachimKoenigslieb) * Add ability to create a cell instance using A1 notation (#765 by @tivaliy) * Add `auth.service_account()` (#768) * Add Authlib usage (#552 by @lepture) * Simplified OAuth2 flow (#762) * Fix `Worksheet.delete_rows()` index error (#760 by @rafa-guillermo) * Deprecate `Worksheet.delete_row()` (#766) * Scope `Worksheet.find()` to a specific row or a column (#739 by @alfonsocv12) * Add `Worksheet.add_protected_range()` #447 (#720 by @KesterChan01) * Add ability to fetch cell address in A1 notation (#763 by @tivaliy) * Add `Worksheet.delete_columns()` (#761 by @rafa-guillermo) * Ignore numericising specific columns in `get_all_records` (#701 by @benjamindhimes) * Add option ``folder_id`` when creating a spreadsheet (#754 by @Abdellam1994) * Add `insertDataOption` to `Worksheet.append_row()` and `Worksheet.append_rows()` (#719 by @lobatt) * Fix `TypeError` when using gspread in google colab (#750) * Remove `oauth2client` in favor of `google-auth` #472, #529 (#637 by @BigHeadGeorge) * Convert `oauth2client` credentials to `google-auth` (#711 by @aiguofer) * Remove unnecessary `login()` from `gspread.authorize` * Fix sheet name quoting issue (#554, #636, #716): + Add quotes to worksheet title for get_all_values (#640 by @grlbrwrg, #717 by @zynaxsoft) + Escaping title containing single quotes with double quotes (#730 by @vijay-shanker) + Use `utils.absolute_range_name()` to handle range names (#748) * Fix `numericise()`: add underscores test to work in python2 and <python3.6 (#622 by @epicfaace) * Add `supportsAllDrives` to Drive API requests (#709 by @justinr1234) * Add `Worksheet.merge_cells()` (#713 by @lavigne958) * Improve `Worksheet.merge_cells()` and add `merge_type` parameter (#742 by @aiguofer) * Add `Worksheet.sort()` (#639 by @kirillgashkov) * Add ability to reorder worksheets #570 (#571 by @robin900) + Add `Spreadsheet.reorder_worksheets()` + Add `Worksheet.update_index()` * Add `test_update_cell_objects` (#698 by @ogroleg) * Add `Worksheet.append_rows()` (#556 by @martinwarby, #694 by @fabytm) * Add `Worksheet.delete_rows()` (#615 by @deverlex) * Speed up `Client.open()` by querying files by title in Google Drive (#684 by @aiguofer) * Add `freeze`, `set_basic_filter` and `clear_basic_filter` methods to `Worksheet` (#574 by @aiguofer) * Use Drive API v3 for creating and deleting spreadsheets (#573 by @aiguofer) * Implement `value_render_option` in `get_all_values` (#648 by @mklaber) * Set position of a newly added worksheet (#688 by @djmgit) * Add url properties for `Spreadsheet` and `Worksheet` (#725 by @CrossNox) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gspread?expand=0&rev=13
2021-03-19 05:27:28 +00:00
BuildRequires: %{python_module google-auth-oauthlib >= 0.4.1}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
- Update to 3.7.0: * Add `Worksheet.insert_note()`, `Worksheet.update_note()`, `Worksheet.clear_note()` (#818 by @lavigne958) * Add `Worksheet.insert_cols()` (#802 by @AlexeyDmitriev) * Add `value_render_option` parameter to `Worksheet.get_all_records()` (#776 by @damgad) * Remove `requests` from `install_requires` (#801) * Simplify implementation of `Worksheet.insert_rows()` (#799 by @AlexeyDmitriev) * Add `auth.service_account_from_dict()` (#785 b7 @mahenzon) * Fix `ValueRange.from_json()` (#791 by @erakli) * Allow `auth` to be `None`. Fix #773 (#774 by @lepture) * Add `Worksheet.insert_rows()` (#734 by @tr-fi) * Add `Worksheet.copy_to()` (#758 by @JoachimKoenigslieb) * Add ability to create a cell instance using A1 notation (#765 by @tivaliy) * Add `auth.service_account()` (#768) * Add Authlib usage (#552 by @lepture) * Simplified OAuth2 flow (#762) * Fix `Worksheet.delete_rows()` index error (#760 by @rafa-guillermo) * Deprecate `Worksheet.delete_row()` (#766) * Scope `Worksheet.find()` to a specific row or a column (#739 by @alfonsocv12) * Add `Worksheet.add_protected_range()` #447 (#720 by @KesterChan01) * Add ability to fetch cell address in A1 notation (#763 by @tivaliy) * Add `Worksheet.delete_columns()` (#761 by @rafa-guillermo) * Ignore numericising specific columns in `get_all_records` (#701 by @benjamindhimes) * Add option ``folder_id`` when creating a spreadsheet (#754 by @Abdellam1994) * Add `insertDataOption` to `Worksheet.append_row()` and `Worksheet.append_rows()` (#719 by @lobatt) * Fix `TypeError` when using gspread in google colab (#750) * Remove `oauth2client` in favor of `google-auth` #472, #529 (#637 by @BigHeadGeorge) * Convert `oauth2client` credentials to `google-auth` (#711 by @aiguofer) * Remove unnecessary `login()` from `gspread.authorize` * Fix sheet name quoting issue (#554, #636, #716): + Add quotes to worksheet title for get_all_values (#640 by @grlbrwrg, #717 by @zynaxsoft) + Escaping title containing single quotes with double quotes (#730 by @vijay-shanker) + Use `utils.absolute_range_name()` to handle range names (#748) * Fix `numericise()`: add underscores test to work in python2 and <python3.6 (#622 by @epicfaace) * Add `supportsAllDrives` to Drive API requests (#709 by @justinr1234) * Add `Worksheet.merge_cells()` (#713 by @lavigne958) * Improve `Worksheet.merge_cells()` and add `merge_type` parameter (#742 by @aiguofer) * Add `Worksheet.sort()` (#639 by @kirillgashkov) * Add ability to reorder worksheets #570 (#571 by @robin900) + Add `Spreadsheet.reorder_worksheets()` + Add `Worksheet.update_index()` * Add `test_update_cell_objects` (#698 by @ogroleg) * Add `Worksheet.append_rows()` (#556 by @martinwarby, #694 by @fabytm) * Add `Worksheet.delete_rows()` (#615 by @deverlex) * Speed up `Client.open()` by querying files by title in Google Drive (#684 by @aiguofer) * Add `freeze`, `set_basic_filter` and `clear_basic_filter` methods to `Worksheet` (#574 by @aiguofer) * Use Drive API v3 for creating and deleting spreadsheets (#573 by @aiguofer) * Implement `value_render_option` in `get_all_values` (#648 by @mklaber) * Set position of a newly added worksheet (#688 by @djmgit) * Add url properties for `Spreadsheet` and `Worksheet` (#725 by @CrossNox) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gspread?expand=0&rev=13
2021-03-19 05:27:28 +00:00
Requires: python-google-auth >= 1.12.0
Requires: python-google-auth-oauthlib >= 0.4.1
BuildArch: noarch
%python_subpackages
%description
A Python module to access Google Spreadsheets.
Features
--------
* Google Sheets API v4.
* Open a spreadsheet by its *title*, *url* or *key*.
* Select cells by labels, e.g. 'A1'.
* Extract range, entire row or column values.
* Python 3 support.
%prep
%setup -q -n gspread-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# needs betamax-json-body-serializer that does not exist on pypi anywhere
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v
%files %{python_files}
%doc README.md
%license LICENSE.txt
%{python_sitelib}/*
%changelog