forked from pool/python-oci-sdk
* Support for database backups to Amazon S3 as default option for
all databases running on Exa@AWS in the Database service
* Support for customer-managed encryption keys in hosted environments
in the NoSQL Database service
* Support for upgrading a fleet of Grid Infrastructure and Databases to
23ai for ExaCS and ExaCC in the Exadata Fleet Update service
* Support for Bring Your Own IPv6 (BYOIPv6) in the Load Balancer service
- from version 2.154.2
* Support for node cycling (reboot/replaceBootVolume) for worker nodes
in the Kubernetes Engine service
* Support for the WebLogic Management service
* Support for the Privileged API Access Control service
* Support for Role Based Access Control List in the OCI Cache service
* Support for integrating native Redis authentication with OCI Identity/IAM
in the OCI Cache service
* Support for Command String in Runcommand API in the Instance Agent service
* Support for new fields capacitySummary and computeBareMetalHostId in the API
response when fetching Dedicated Virtual Machine Hosts in the Compute service
- from version 2.154.1
* Support for performing an explicit Data Guard pre-check by setting new optional
dry-run parameter when creating a database in the Database service
- from version 2.154.0
* Support for creating auto Autonomous Container Database backups in a remote
region in the Database service
* Support for creating new Autonomous Container Databases from a backup in the
remote region in the Database service
* Support for input/output token usage information in the Generative AI Agent service
* Support for standby connection in the Database Management service
* Support for additional metrics, including replication metrics,
in the Database Management service
* Support for replication dashboard in the Database Management service
* Support for soft-deleting backups in the HeatWave service
* Support for additional connections types for Oracle Rest Data Services (ORDS),
Apache Iceberg, and IBM Db2 for i in the Golden Gate service
* Constants `SERVICE_LEVEL_AGREEMENT_TYPE_STANDARD`, `SERVICE_LEVEL_AGREEMENT_TYPE_AUTONOMOUS_DATAGUARD`,
`PROTECTION_MODE_MAXIMUM_AVAILABILITY`, `PROTECTION_MODE_MAXIMUM_PERFORMANCE`,
`PATCH_MODEL_RELEASE_UPDATES`, `PATCH_MODEL_RELEASE_UPDATE_REVISIONS`,
`VERSION_PREFERENCE_NEXT_RELEASE_UPDATE`, `VERSION_PREFERENCE_LATEST_RELEASE_UPDATE`,
`DISTRIBUTION_AFFINITY_MINIMUM_DISTRIBUTION`, `DISTRIBUTION_AFFINITY_MAXIMUM_DISTRIBUTION`,
`NET_SERVICES_ARCHITECTURE_DEDICATED`, `NET_SERVICES_ARCHITECTURE_SHARED`
moved from model `CreateAutonomousContainerDatabaseDetails` to `CreateAutonomousContainerDatabaseBase`
in the Database service
* Properties `customer_contacts`, `display_name`, `db_unique_name`, `db_name`,
`service_level_agreement_type`, `autonomous_exadata_infrastructure_id`, `db_version`,
`database_software_image_id`, `peer_autonomous_exadata_infrastructure_id`,
`peer_autonomous_container_database_display_name`, `protection_mode`,
`fast_start_fail_over_lag_limit_in_seconds`, `is_automatic_failover_enabled`,
`peer_cloud_autonomous_vm_cluster_id`, `peer_autonomous_vm_cluster_id`,
`peer_autonomous_container_database_compartment_id`, `peer_autonomous_container_database_backup_config`,
`peer_db_unique_name`, `autonomous_vm_cluster_id`, `cloud_autonomous_vm_cluster_id`,
`compartment_id`, `patch_model`, `maintenance_window_details`, `standby_maintenance_buffer_in_days`,
`version_preference`, `is_dst_file_update_enabled`, `freeform_tags`, `defined_tags`, `backup_config`,
`kms_key_id`, `kms_key_version_id`, `vault_id`, `key_store_id`, `db_split_threshold`,
`vm_failover_reservation`, `distribution_affinity`, `net_services_architecture` moved from model
`CreateAutonomousContainerDatabaseDetails` to `CreateAutonomousContainerDatabaseBase`
in the Database service
* Property `user_id` changed from required to optional for model `OracleNosqlConnectionSummary`
in the Golden Gate service
- from version 2.153.0
* Support for List and Get APIs for out-of-box management dashboard
resources in the Management Dashboard service
* Support for REST option in the HeatWave MySQL service
* Support for warnings in list-application-dependency-vulnerability
response for vulnerability audits in the Adm service
* Support for HostGroups in the Compute service
* Support for ENTERPRISE_EDITION_DEVELOPER enum in Db System Launch
and Create DB external backup commands in the Database service
* Support for databaseEditionQueryParam in dbSystemInitialStorageSizes, dbSystemStoragePerformance,
quotaDefinitions, and internalQuotaDefinitions in the Database service
* Support for EmissionType parameter in UsageCarbonEmissionSummary and EmissionCalculationMethod,
EmissionType, Granularity parameters in UsageCarbonEmissionsReportQuery in the Usage Api service
* Support for querying capacity report under BDSs tenancy in the Big Data service
* Support for installing Dataplane Software and python packages updates in the Big Data service
* Support for triggering a dry run with OS patch in the Big Data service
* Support for NAT on firewall feature in the Network Firewall service
* Support for Predictable OIDC Discovery in the OKE service
* Support for SQL and FTP monitoring, creating and updating in the
Application Performance Monitoring Synthetic service
* Support for Demand signal feature in the Capacity Management service
* Support for Targeted Launch in the Launch Instance API service
* Constants `LIFECYCLE_STATE_ATTACHING` and `LIFECYCLE_STATE_DETACHING` are removed from models
`NetworkFirewallPolicySummary`, `NetworkFirewallPolicy`, `NetworkFirewallSummary` and
`NetworkFirewall` in the Network Firewall service
- from version 2.152.1
* Support for the Globally Distributed Database service
* Support for listing the available upgrades (OS & GI) for
VirtualMachine DB systems in the Database service
* Support for running dry-run operations in the Database service
* Support for Network Security Groups in MySQL HeatWave service
110 lines
3.7 KiB
RPMSpec
110 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package python-oci-sdk
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%bcond_without python2
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-oci-sdk
|
|
Version: 2.154.3
|
|
Release: 0
|
|
Summary: Oracle Cloud Infrastructure Python SDK
|
|
License: Apache-2.0 OR UPL-1.0
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/oracle/oci-python-sdk
|
|
Source: %{url}/archive/v%{version}.tar.gz#/oci-python-sdk-%{version}.tar.gz
|
|
Source99: python-oci-sdk.rpmlintrc
|
|
Patch0: ops_relax-python-depends.patch
|
|
# PATCH-FIX-OPENSUSE pytest-740.patch gh#oracle/oci-python-sdk#566
|
|
Patch1: pytest-740.patch
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-certifi
|
|
Requires: python-circuitbreaker >= 1.3.1
|
|
Requires: python-cryptography >= 3.2.1
|
|
Requires: python-pyOpenSSL >= 17.5.0
|
|
Requires: python-python-dateutil >= 2.5.3
|
|
Requires: python-pytz >= 2016.10
|
|
# SECTION devendored packages
|
|
Requires: python-PyJWT
|
|
Requires: python-httpsig_cffi
|
|
Requires: python-requests
|
|
Requires: python-six
|
|
Requires: python-sseclient
|
|
Requires: python-urllib3 < 2
|
|
# /SECTION
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module PyJWT}
|
|
BuildRequires: %{python_module certifi}
|
|
BuildRequires: %{python_module circuitbreaker >= 1.3.1}
|
|
BuildRequires: %{python_module cryptography >= 3.2.1}
|
|
BuildRequires: %{python_module httpsig_cffi}
|
|
BuildRequires: %{python_module pyOpenSSL >= 17.5.0}
|
|
BuildRequires: %{python_module pytest > 4.1.0}
|
|
BuildRequires: %{python_module python-dateutil >= 2.5.3}
|
|
BuildRequires: %{python_module pytz >= 2016.10}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: %{python_module sseclient}
|
|
BuildRequires: %{python_module urllib3 < 2}
|
|
BuildRequires: %{python_module vcrpy >= 2.0.1}
|
|
%if %{with python2}
|
|
BuildRequires: python-configparser >= 4.0.2
|
|
%endif
|
|
# /SECTION
|
|
%ifpython2
|
|
Requires: python-configparser >= 4.0.2
|
|
%endif
|
|
# The PyPI name is just oci
|
|
Provides: python-oci = %{version}-%{release}
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python SDK for Oracle Cloud Infrastructure. Python 2.7+ and 3.5+ are supported.
|
|
|
|
%prep
|
|
%autosetup -p1 -n oci-python-sdk-%{version}
|
|
# Remove vendored packages
|
|
rm -rf src/oci/_vendor/
|
|
# Fix includes
|
|
find . -name "*.py" -exec sed -i 's/from oci._vendor //' \{\} +
|
|
sed -i 's/from \._vendor //' src/oci/*.py
|
|
sed -i 's/ oci._vendor.jwt as//' src/oci/auth/*.py
|
|
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
|
|
sed -i 's/from . import vcr_mods//' tests/test_config_container.py
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%check
|
|
%pytest tests/unit tests/integ -s -rs
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%doc CHANGELOG.rst README.rst
|
|
%license LICENSE.txt
|
|
%{python_sitelib}/oci
|
|
%{python_sitelib}/oci-%{version}*-info
|
|
|
|
%changelog
|