File python-b2sdk.spec of Package python-b2sdk
#
# spec file for package python-b2sdk
#
# 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
# 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/
#
Name: python-b2sdk
Version: 2.10.4
Release: 0
Summary: Backblaze B2 SDK
License: MIT
URL: https://github.com/Backblaze/b2-sdk-python
Source: b2-sdk-python-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module pip}
# SECTION test requirements
BuildRequires: %{python_module annotated-types >= 0.5.0}
BuildRequires: %{python_module logfury >= 1.0.1}
BuildRequires: %{python_module requests >= 2.9.1}
BuildRequires: %{python_module typing-extensions >= 4.7.1}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-lazy-fixtures}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module tqdm}
BuildRequires: %{python_module pydantic}
BuildRequires: %{python_module tenacity}
# /SECTION
BuildRequires: fdupes
Requires: python-annotated-types >= 0.5.0
Requires: python-logfury >= 1.0.1
Requires: python-requests >= 2.9.1
%if "%{python_flavor}" == "python311"
Requires: python-typing-extensions >= 4.7.1
%endif
BuildArch: noarch
%python_subpackages
%description
This repository contains a client library and a few handy utilities for
easy access to all of the capabilities of B2 Cloud Storage.
%prep
%autosetup -p1 -n b2-sdk-python-%{version}
%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest test/unit test/static
%files %{python_files}
%doc README.md CHANGELOG.md
%license LICENSE
%{python_sitelib}/b2sdk
%{python_sitelib}/b2sdk-%{version}.dist-info
%changelog