* Switch to pydantic v2, including pydantic-settings. * Use tenacity rather than retrying. - Drop patch continue-to-use-pydantic-1.patch, no longer required. - Refresh switch-to-pyrfc3339.patch, make it smaller and easier to rebase. - Add patches: * switch-to-poetry-core.patch * support-new-pydantic-settings.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-qcs-api-client?expand=0&rev=9
90 lines
3.2 KiB
RPMSpec
90 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package python-qcs-api-client
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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-qcs-api-client
|
|
Version: 0.26.5
|
|
Release: 0
|
|
Summary: Python client library for accessing the Rigetti QCS API
|
|
License: MIT
|
|
URL: https://github.com/rigetti/qcs-api-client-python
|
|
Source: https://github.com/rigetti/qcs-api-client-python/archive/refs/tags/v%{version}.tar.gz#/qcs-api-client-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM gh#rigetti/qcs-api-client-python#11
|
|
Patch0: switch-to-poetry-core.patch
|
|
# PATCH-FIX-OPENSUSE Use pyRFC3339 rather than rfc3339 which is not packaged
|
|
Patch1: switch-to-pyrfc3339.patch
|
|
# PATCH-FIX-UPSTREAM gh#rigetti/qcs-api-client-python#17
|
|
Patch2: support-new-pydantic-settings.patch
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module poetry-core}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION runtime
|
|
BuildRequires: %{python_module PyJWT >= 2.4.0}
|
|
BuildRequires: %{python_module attrs >= 21.3}
|
|
BuildRequires: %{python_module httpx}
|
|
BuildRequires: %{python_module iso8601 >= 1.0.2}
|
|
BuildRequires: %{python_module pyRFC3339 >= 1.1}
|
|
BuildRequires: %{python_module pydantic >= 2.6.3}
|
|
BuildRequires: %{python_module pydantic-settings >= 2.2.1}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module tenacity >= 8.3}
|
|
BuildRequires: %{python_module toml >= 0.10.2}
|
|
# /SECTION
|
|
# SECTION test
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module respx >= 0.20}
|
|
# /SECTION
|
|
Requires: python-PyJWT >= 2.4.0
|
|
Requires: python-attrs >= 21.3
|
|
Requires: python-httpx >= 0.23
|
|
Requires: python-iso8601 >= 1.0.2
|
|
Requires: python-pyRFC3339 >= 1.1
|
|
Requires: python-pydantic >= 2.6.3
|
|
Requires: python-pydantic-settings >= 2.2.1
|
|
Requires: python-python-dateutil >= 2.8.1
|
|
Requires: python-tenacity >= 8.3
|
|
Requires: python-toml >= 0.10.2
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Allows access to the Rigetti Quantum Computing System API
|
|
|
|
%prep
|
|
%autosetup -p1 -n qcs-api-client-python-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest --ignore tests/test_client/test_auth.py --asyncio-mode=auto -k 'not test_sync_client_api_call'
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python_sitelib}/qcs_api_client-%{version}.dist-info
|
|
%{python_sitelib}/qcs_api_client
|
|
|
|
%changelog
|