|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
#
|
|
|
|
|
# spec file for package python-pydrive2
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
@@ -25,26 +25,11 @@ URL: https://github.com/iterative/PyDrive2
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/P/PyDrive2/PyDrive2-%{version}.tar.gz
|
|
|
|
|
# PATCH-FIX-UPSTREAM https://github.com/iterative/PyDrive2/pull/221 Migrating to Google Auth Library
|
|
|
|
|
Patch1: migrate-to-google-auth.patch
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
## tests fail in OBS environment
|
|
|
|
|
# SECTION test requirements
|
|
|
|
|
#BuildRequires: %{python_module google-api-python-client >= 1.12.5}
|
|
|
|
|
#BuildRequires: %{python_module PyYAML >= 3.0}
|
|
|
|
|
#BuildRequires: %{python_module black}
|
|
|
|
|
#BuildRequires: %{python_module flake8-docstrings}
|
|
|
|
|
#BuildRequires: %{python_module flake8}
|
|
|
|
|
#BuildRequires: %{python_module fsspec}
|
|
|
|
|
BuildRequires: %{python_module google-auth-oauthlib >= 0.5.1}
|
|
|
|
|
BuildRequires: %{python_module google-auth >= 2.6.6}
|
|
|
|
|
BuildRequires: %{python_module google-auth-httplib2 >= 0.1.0}
|
|
|
|
|
#BuildRequires: %{python_module pyOpenSSL >= 19.1.0}
|
|
|
|
|
#BuildRequires: %{python_module pytest-mock}
|
|
|
|
|
#BuildRequires: %{python_module pytest}
|
|
|
|
|
#BuildRequires: %{python_module timeout-decorator}
|
|
|
|
|
#BuildRequires: %{python_module tqdm}
|
|
|
|
|
# /SECTION
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-PyYAML >= 3.0
|
|
|
|
|
Requires: python-google-api-python-client >= 1.12.5
|
|
|
|
|
Requires: python-google-auth >= 2.6.6
|
|
|
|
@@ -52,6 +37,23 @@ Requires: python-google-auth-httplib2 >= 0.1.0
|
|
|
|
|
Requires: python-google-auth-oauthlib >= 0.5.1
|
|
|
|
|
Requires: python-pyOpenSSL >= 19.1.0
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
## tests fail in OBS environment
|
|
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module google-auth >= 2.6.6}
|
|
|
|
|
BuildRequires: %{python_module google-auth-httplib2 >= 0.1.0}
|
|
|
|
|
BuildRequires: %{python_module google-auth-oauthlib >= 0.5.1}
|
|
|
|
|
#BuildRequires: %{python_module google-api-python-client >= 1.12.5}
|
|
|
|
|
#BuildRequires: %{python_module PyYAML >= 3.0}
|
|
|
|
|
#BuildRequires: %{python_module black}
|
|
|
|
|
#BuildRequires: %{python_module flake8-docstrings}
|
|
|
|
|
#BuildRequires: %{python_module flake8}
|
|
|
|
|
#BuildRequires: %{python_module fsspec}
|
|
|
|
|
#BuildRequires: %{python_module pyOpenSSL >= 19.1.0}
|
|
|
|
|
#BuildRequires: %{python_module pytest-mock}
|
|
|
|
|
#BuildRequires: %{python_module pytest}
|
|
|
|
|
#BuildRequires: %{python_module timeout-decorator}
|
|
|
|
|
#BuildRequires: %{python_module tqdm}
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@@ -64,10 +66,10 @@ By the authors and maintainers of the Git for Data - DVC project.
|
|
|
|
|
%autopatch -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@@ -76,7 +78,7 @@ By the authors and maintainers of the Git for Data - DVC project.
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc CHANGES README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python_sitelib}/PyDrive2*-info
|
|
|
|
|
%{python_sitelib}/[Pp]y[Dd]rive2*-info
|
|
|
|
|
%{python_sitelib}/pydrive2
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|