From 682b64f93e5e6e8c49e5067866088068ef45f2604988451ea738a2af13279a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 4 Jun 2025 10:16:28 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydrive2?expand=0&rev=12 --- python-pydrive2.changes | 5 +++++ python-pydrive2.spec | 44 +++++++++++++++++++++-------------------- 2 files changed, 28 insertions(+), 21 deletions(-) diff --git a/python-pydrive2.changes b/python-pydrive2.changes index eff922d..ec55dfe 100644 --- a/python-pydrive2.changes +++ b/python-pydrive2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 10:13:50 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Dec 26 20:28:13 UTC 2023 - Dirk Müller diff --git a/python-pydrive2.spec b/python-pydrive2.spec index 5e509cf..37d3dc0 100644 --- a/python-pydrive2.spec +++ b/python-pydrive2.spec @@ -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