14
0
Files
python-qcs-api-client/python-qcs-api-client.spec
Matej Cepl 2985559d97 Accepting request 1061894 from home:bnavigator:branches:devel:languages:python
- Update to 0.21.3
  * Chore: QCS Schema
  * Upgrade: attrs 21
  * Update: httpx to 0.23.0
- Fix switch-to-pyrfc39999.patch: format datetime objects as
  strings, not parse them!
- Drop support-new-respx.patch

OBS-URL: https://build.opensuse.org/request/show/1061894
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-qcs-api-client?expand=0&rev=3
2023-01-30 06:38:23 +00:00

84 lines
2.8 KiB
RPMSpec

#
# spec file for package python-qcs-api-client
#
# Copyright (c) 2023 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-qcs-api-client
Version: 0.21.3
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-OPENSUSE Use pyRFC3339 rather than rfc3339 which is not packaged
Patch0: switch-to-pyrfc3339.patch
BuildRequires: %{python_module base >= 3.7}
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 dateutil}
BuildRequires: %{python_module httpx}
BuildRequires: %{python_module iso8601 >= 1.0.2}
BuildRequires: %{python_module pyRFC3339 >= 1.1}
BuildRequires: %{python_module pydantic}
BuildRequires: %{python_module retrying}
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-dateutil >= 2.8.1
Requires: python-httpx >= 0.23
Requires: python-iso8601 >= 1.0.2
Requires: python-pyRFC3339 >= 1.1
Requires: python-pydantic >= 1.7.2
Requires: python-retrying >= 1.3.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 -k 'not test_sync_client'
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/qcs_api_client-%{version}*.dist-info
%{python_sitelib}/qcs_api_client
%changelog