2018-05-24 21:05:46 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-gspread
|
|
|
|
|
#
|
2024-01-13 21:08:30 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-05-24 21:05:46 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-12-04 13:31:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-24 21:05:46 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-gspread
|
2024-10-29 21:39:04 +00:00
|
|
|
Version: 6.1.4
|
2018-05-24 21:05:46 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Google Spreadsheets Python API
|
|
|
|
|
License: MIT
|
2019-03-15 12:51:45 +00:00
|
|
|
URL: https://github.com/burnash/gspread
|
|
|
|
|
Source: https://github.com/burnash/gspread/archive/v%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module betamax}
|
2024-01-13 21:08:30 +00:00
|
|
|
BuildRequires: %{python_module flit-core}
|
2021-03-19 05:27:28 +00:00
|
|
|
BuildRequires: %{python_module google-auth-oauthlib >= 0.4.1}
|
2024-01-13 21:08:30 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2018-05-24 21:05:46 +00:00
|
|
|
BuildRequires: %{python_module xml}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-01-30 12:15:55 +00:00
|
|
|
Requires: python-StrEnum >= 0.4.15
|
2021-03-19 05:27:28 +00:00
|
|
|
Requires: python-google-auth >= 1.12.0
|
|
|
|
|
Requires: python-google-auth-oauthlib >= 0.4.1
|
2018-05-24 21:05:46 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2018-07-27 08:24:11 +00:00
|
|
|
A Python module to access Google Spreadsheets.
|
2018-05-24 21:05:46 +00:00
|
|
|
|
|
|
|
|
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
|
2024-01-13 21:08:30 +00:00
|
|
|
%pyproject_wheel
|
2018-05-24 21:05:46 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-01-13 21:08:30 +00:00
|
|
|
%pyproject_install
|
2018-05-24 21:05:46 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2019-03-15 12:51:45 +00:00
|
|
|
%check
|
|
|
|
|
# needs betamax-json-body-serializer that does not exist on pypi anywhere
|
|
|
|
|
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v
|
|
|
|
|
|
2018-05-24 21:05:46 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|