2020-01-29 22:39:52 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-oci-sdk
|
|
|
|
#
|
2024-01-03 15:37:38 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-01-29 22:39:52 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-02-07 13:37:53 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2020-01-29 22:39:52 +01:00
|
|
|
|
|
|
|
|
2020-04-23 12:39:56 +02:00
|
|
|
%bcond_without python2
|
2024-03-06 15:47:59 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
2020-01-29 22:39:52 +01:00
|
|
|
Name: python-oci-sdk
|
2024-05-31 23:28:17 +02:00
|
|
|
Version: 2.127.0
|
2020-01-29 22:39:52 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Oracle Cloud Infrastructure Python SDK
|
2021-05-12 20:50:29 +02:00
|
|
|
License: Apache-2.0 OR UPL-1.0
|
2020-01-29 22:39:52 +01:00
|
|
|
Group: Development/Languages/Python
|
2020-02-07 13:37:53 +01:00
|
|
|
URL: https://github.com/oracle/oci-python-sdk
|
2021-05-20 19:22:02 +02:00
|
|
|
Source: %{url}/archive/v%{version}.tar.gz#/oci-python-sdk-%{version}.tar.gz
|
2023-05-20 23:59:47 +02:00
|
|
|
Source99: python-oci-sdk.rpmlintrc
|
2020-01-29 22:39:52 +01:00
|
|
|
Patch0: ops_relax-python-depends.patch
|
- Add pytest-740.patch to fix compatibility issues with pytest 7.4.0
gh#oracle/oci-python-sdk#566
- Update to version 2.110.0
- Support for backup retention on autonomous database create operations in the Database service
- Support for exclude tables for replication in the Database Migration service
- Support for adding and updating auto failover maximum data loss limits for local autonomous data guards in the Database service
- Support for limiting networking diagram ingestion in the Networking Monitoring service
- Support for new operations for deployment upgrades in the GoldenGate service
- Support for getting model type information and base model versions while creating language custom models in the AI Language service
- Support for support field in class metric in the AI Language service
- Support for Compute Cloud at Customer resource type in the Operator Access Control service
- Support for managing account management info, account recovery settings, app roles, apps, app status changers, grants, identity propagation trusts and settings, request-able groups, requests, security questions, OAuth tokens, and user attribute settings in the Identity Domains service
- Property ipv6_cidr_block is removed from models Vcn and CreateVcnDetails in the Networking Monitoring service
- Property ipv6_public_cidr_block is removed from models Vcn and Subnet in the Networking Monitoring service
- Property is_internet_access_allowed is removed from models UpdateIpv6Details, Ipv6 and CreateIpv6Details in the Networking Monitoring service
- Property public_ip_address is removed from model Ipv6 in the Networking Monitoring service
- Support for retries by default on operations of the Operator Access Control service
- 2.109.0
- Support for the Exadata Fleet Update service
- Support for REST-based log collection, multi-conditional labels,
and collection properties in the Logging Analytics service
- Support for Kubernetes cluster credential rotation in the
Container Engine for Kubernetes service
- Support for zero-downtime features in the Fusion Apps as a Service
service
- Support for news reports in the Operations Insights service
- Allowed value ACCELERATION_MAINTENANCE was removed from the
property task_type in the models StandardTask,
ScheduledTaskSummary and ScheduledTask in the Logging Analytics
service
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=111
2023-08-09 12:34:34 +02:00
|
|
|
# PATCH-FIX-OPENSUSE pytest-740.patch gh#oracle/oci-python-sdk#566
|
2024-04-04 23:17:42 +02:00
|
|
|
Patch1: pytest-740.patch
|
2023-05-20 23:59:47 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-01-29 22:39:52 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-05-20 23:59:47 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-02-07 13:37:53 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-certifi
|
2021-10-27 15:46:05 +02:00
|
|
|
Requires: python-circuitbreaker >= 1.3.1
|
2023-05-20 23:59:47 +02:00
|
|
|
Requires: python-cryptography >= 3.2.1
|
2021-11-29 20:38:15 +01:00
|
|
|
Requires: python-pyOpenSSL >= 17.5.0
|
2020-02-07 13:37:53 +01:00
|
|
|
Requires: python-python-dateutil >= 2.5.3
|
|
|
|
Requires: python-pytz >= 2016.10
|
2023-05-20 23:59:47 +02:00
|
|
|
# SECTION devendored packages
|
|
|
|
Requires: python-PyJWT
|
|
|
|
Requires: python-httpsig_cffi
|
2020-02-07 13:37:53 +01:00
|
|
|
Requires: python-requests
|
|
|
|
Requires: python-six
|
2024-02-16 17:45:57 +01:00
|
|
|
Requires: python-sseclient
|
2023-05-19 19:04:52 +02:00
|
|
|
Requires: python-urllib3 < 2
|
2023-05-20 23:59:47 +02:00
|
|
|
# /SECTION
|
2020-02-07 13:37:53 +01:00
|
|
|
BuildArch: noarch
|
2020-01-29 22:39:52 +01:00
|
|
|
# SECTION test requirements
|
2020-02-07 13:37:53 +01:00
|
|
|
BuildRequires: %{python_module PyJWT}
|
2020-01-29 22:39:52 +01:00
|
|
|
BuildRequires: %{python_module certifi}
|
2021-10-27 15:46:05 +02:00
|
|
|
BuildRequires: %{python_module circuitbreaker >= 1.3.1}
|
2023-05-20 23:59:47 +02:00
|
|
|
BuildRequires: %{python_module cryptography >= 3.2.1}
|
2020-02-07 13:37:53 +01:00
|
|
|
BuildRequires: %{python_module httpsig_cffi}
|
2021-11-29 20:38:15 +01:00
|
|
|
BuildRequires: %{python_module pyOpenSSL >= 17.5.0}
|
2020-04-27 13:36:13 +02:00
|
|
|
BuildRequires: %{python_module pytest > 4.1.0}
|
2020-02-07 13:37:53 +01:00
|
|
|
BuildRequires: %{python_module python-dateutil >= 2.5.3}
|
2020-01-29 22:39:52 +01:00
|
|
|
BuildRequires: %{python_module pytz >= 2016.10}
|
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
BuildRequires: %{python_module six}
|
2024-02-16 17:45:57 +01:00
|
|
|
BuildRequires: %{python_module sseclient}
|
2023-05-19 19:04:52 +02:00
|
|
|
BuildRequires: %{python_module urllib3 < 2}
|
2020-04-27 13:36:13 +02:00
|
|
|
BuildRequires: %{python_module vcrpy >= 2.0.1}
|
2020-04-23 12:39:56 +02:00
|
|
|
%if %{with python2}
|
2023-05-20 23:59:47 +02:00
|
|
|
BuildRequires: python-configparser >= 4.0.2
|
2020-02-07 13:37:53 +01:00
|
|
|
%endif
|
2020-01-29 22:39:52 +01:00
|
|
|
# /SECTION
|
|
|
|
%ifpython2
|
2023-05-20 23:59:47 +02:00
|
|
|
Requires: python-configparser >= 4.0.2
|
2020-01-29 22:39:52 +01:00
|
|
|
%endif
|
2023-05-20 23:59:47 +02:00
|
|
|
# The PyPI name is just oci
|
|
|
|
Provides: python-oci = %{version}-%{release}
|
2020-01-29 22:39:52 +01:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python SDK for Oracle Cloud Infrastructure. Python 2.7+ and 3.5+ are supported.
|
|
|
|
|
|
|
|
%prep
|
- Add pytest-740.patch to fix compatibility issues with pytest 7.4.0
gh#oracle/oci-python-sdk#566
- Update to version 2.110.0
- Support for backup retention on autonomous database create operations in the Database service
- Support for exclude tables for replication in the Database Migration service
- Support for adding and updating auto failover maximum data loss limits for local autonomous data guards in the Database service
- Support for limiting networking diagram ingestion in the Networking Monitoring service
- Support for new operations for deployment upgrades in the GoldenGate service
- Support for getting model type information and base model versions while creating language custom models in the AI Language service
- Support for support field in class metric in the AI Language service
- Support for Compute Cloud at Customer resource type in the Operator Access Control service
- Support for managing account management info, account recovery settings, app roles, apps, app status changers, grants, identity propagation trusts and settings, request-able groups, requests, security questions, OAuth tokens, and user attribute settings in the Identity Domains service
- Property ipv6_cidr_block is removed from models Vcn and CreateVcnDetails in the Networking Monitoring service
- Property ipv6_public_cidr_block is removed from models Vcn and Subnet in the Networking Monitoring service
- Property is_internet_access_allowed is removed from models UpdateIpv6Details, Ipv6 and CreateIpv6Details in the Networking Monitoring service
- Property public_ip_address is removed from model Ipv6 in the Networking Monitoring service
- Support for retries by default on operations of the Operator Access Control service
- 2.109.0
- Support for the Exadata Fleet Update service
- Support for REST-based log collection, multi-conditional labels,
and collection properties in the Logging Analytics service
- Support for Kubernetes cluster credential rotation in the
Container Engine for Kubernetes service
- Support for zero-downtime features in the Fusion Apps as a Service
service
- Support for news reports in the Operations Insights service
- Allowed value ACCELERATION_MAINTENANCE was removed from the
property task_type in the models StandardTask,
ScheduledTaskSummary and ScheduledTask in the Logging Analytics
service
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=111
2023-08-09 12:34:34 +02:00
|
|
|
%autosetup -p1 -n oci-python-sdk-%{version}
|
2020-01-29 22:39:52 +01:00
|
|
|
# Remove vendored packages
|
|
|
|
rm -rf src/oci/_vendor/
|
|
|
|
# Fix includes
|
2021-06-03 11:17:12 +02:00
|
|
|
find . -name "*.py" -exec sed -i 's/from oci._vendor //' \{\} +
|
2020-01-29 22:39:52 +01:00
|
|
|
sed -i 's/from \._vendor //' src/oci/*.py
|
|
|
|
sed -i 's/ oci._vendor.jwt as//' src/oci/auth/*.py
|
2023-02-08 12:46:41 +01:00
|
|
|
sed -i 's/oci\._vendor\.//' src/oci/*.py src/oci/auth/*.py src/oci/auth/signers/*.py src/oci/retry/*.py src/oci/object_storage/transfer/internal/*.py tests/*.py
|
2020-01-29 22:39:52 +01:00
|
|
|
sed -i 's/from . import vcr_mods//' tests/test_config_container.py
|
|
|
|
|
|
|
|
%build
|
2023-05-20 23:59:47 +02:00
|
|
|
%pyproject_wheel
|
2020-01-29 22:39:52 +01:00
|
|
|
|
|
|
|
%check
|
2023-05-20 23:59:47 +02:00
|
|
|
%pytest tests/unit tests/integ -s -rs
|
2020-01-29 22:39:52 +01:00
|
|
|
|
|
|
|
%install
|
2023-05-20 23:59:47 +02:00
|
|
|
%pyproject_install
|
2020-01-29 22:39:52 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc CHANGELOG.rst README.rst
|
|
|
|
%license LICENSE.txt
|
2023-01-03 12:20:19 +01:00
|
|
|
%{python_sitelib}/oci
|
|
|
|
%{python_sitelib}/oci-%{version}*-info
|
2020-01-29 22:39:52 +01:00
|
|
|
|
|
|
|
%changelog
|