14
0
2025-06-04 10:16:28 +00:00
committed by Git OBS Bridge
parent 4791df932a
commit 682b64f93e
2 changed files with 28 additions and 21 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 10:13:50 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 26 20:28:13 UTC 2023 - Dirk Müller <dmueller@suse.com> Tue Dec 26 20:28:13 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pydrive2 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 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 # PATCH-FIX-UPSTREAM https://github.com/iterative/PyDrive2/pull/221 Migrating to Google Auth Library
Patch1: migrate-to-google-auth.patch Patch1: migrate-to-google-auth.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros BuildRequires: %{python_module wheel}
## 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: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML >= 3.0 Requires: python-PyYAML >= 3.0
Requires: python-google-api-python-client >= 1.12.5 Requires: python-google-api-python-client >= 1.12.5
Requires: python-google-auth >= 2.6.6 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-google-auth-oauthlib >= 0.5.1
Requires: python-pyOpenSSL >= 19.1.0 Requires: python-pyOpenSSL >= 19.1.0
BuildArch: noarch 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 %python_subpackages
%description %description
@@ -64,10 +66,10 @@ By the authors and maintainers of the Git for Data - DVC project.
%autopatch -p1 %autopatch -p1
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check