14
0
Files
python-oci-sdk/python-oci-sdk.spec
John Paul Adrian Glaubitz cd6e129891 - Update to version 1.152.0
* Support for the Model Deployment service
  * Support for enabling and monitoring Pluggable Databases(PDB)
    in the Database Management service
  * Support for additional unit shapes in AI clusters in the
    Generative AI service
  * Support for node search details and node shape details on create
    and update cluster operations in the OpenSearch service
  * Models `DisableExternalMysqlAssociatedServiceDetails` and
    `EnableExternalMysqlAssociatedServiceDetails` removed from
    the Database Management service
  * Property `lifecycle_state` removed from model
    `ExadataInfrastructureLifecycleStateValues` in the Database Management service
  * Operations `disable_external_mysql_associated_service` and
    `enable_external_mysql_associated_service` removed from `ManagedMySqlDatabasesClient`
    in the Database Management service
  * Default retries disabled for operations `get_named_credential` and
    `list_named_credentials` from `DbManagementClient` in the Database Management service
  * Operation `modify_external_container_database_management_feature`
    removed from `DbManagementClient` in the Database Management service
- from version 2.151.0
  * Support for dry run while creating cloud exadata Infrastructure and VM
    clusters in the Database service
  * Support for filters to get latest versions on list system versions API
    in the Database service
  * Support for generic fleets without fleet type in the Fleet Application
    Management service
  * Support for creating resources and changing compartment in the Fleet
    Application Management service
  * Support for infrastructure management via provisioning with terraform based
    catalog items and deployments in the Fleet Application Management service
  * Support for platform configuration metadata management in the Fleet
    Application Management service
  * Support for managing runbook versions in the Fleet Application Management service
  * Support for provisioning runbooks in the Fleet Application Management service
  * Support for resource inventory in the Fleet Application Management service
  * Support for changing compartment for fleets, platforms configurations, properties,
    patches, runbooks and task resources in the Fleet Application Management service
  * Support for new migration phase in the Database migration service
  * Models `Associations` and `NotificationPreferences` were removed from the
    Fleet Application Management service
  * Properties `resource_id` ,`name`, `type`, `application_type`, `runbook_id` are
    removed from model `ActionGroupDetails` in the Fleet Application Management service
  * Properties `resource_id`, `type`, `application_type`, `product`, `lifecycle_operation`,
    `runbook_id`, `target_id`, `subjects` are removed from model `ActionGroup` in the
    Fleet Application Management service
  * Property `tenancy_id` is removed from model `AssociatedSchedulerDefinition` in the
    Fleet Application Management service
  * Property `patch_type` is removed from models `CompliancePolicyRuleSummary` and
    `CompliancePolicyRule` in the Fleet Application Management service
  * Property `condition` is removed from model `ComponentProperties` in the Fleet
    Application Management service
  * Properties `patch_type` and `compartment_id` are removed from model
    `CreateCompliancePolicyRuleDetails` in the Fleet Application Management service
  * Property `compartment_id` is removed from models `CreateFleetCredentialDetails`
    `CreateFleetPropertyDetails`, `UpdatePatchDetails` in the Fleet Application Management service
  * Properties `fleet_type` ,`application_type`, `group_type`, `resource_selection_type`,
    `rule_selection_criteria` are removed from model `CreateFleetDetails` in the Fleet Application
    Management service
  * Properties `maintenance_window_type` and `task_initiation_cutoff` are removed from models
    `CreateMaintenanceWindowDetails`, `MaintenanceWindowSummary`, `MaintenanceWindow`,
    `UpdateMaintenanceWindowDetails` in the Fleet Application Management service
  * Properties `runbook_relevance` and `associations` are removed from models `CreateRunbookDetails`
    and `Runbook` in the Fleet Application Management service
  * Property `activity_initiation_cut_off` is removed from model `CreateSchedulerDefinitionDetails`
    in the Fleet Application Management service
  * Property `application_type` is removed from models `FleetResource` and `FleetResourceSummary`
    in the Fleet Application Management service
  * Property `fleet_type` is removed from model `FleetSummary` in the Fleet Application Management service
  * Properties `application_type`, `group_type`, `resource_selection_type`, `rule_selection_criteria`
    are removed from model `Fleet` in the Fleet Application Management service
  * Property `id` is removed from model `OperationRunbook` in the Fleet Application Management service
  * Property `on_upcoming_schedule` is removed from model `Preferences` in the Fleet Application Management service
  * Property `runbook_relevance` is removed from model `RunbookSummary` in the Fleet Application Management service
  * Properties `maintenance_window_id`, `recurrences`, `duration` are removed from model `Schedule`
    in the Fleet Application Management service
  * Properties `tenancy_id`, `action_group_types`, `application_types` are removed from model `ScheduledFleetSummary`
    in the Fleet Application Management service
  * Properties `action_group_types`, `application_types` are removed from models `ScheduledFleetSummary`,
    `SchedulerDefinitionSummary`, `SchedulerDefinition` in the Fleet Application Management service
  * Properties `action_group_types`, `application_types`, `associated_schedule_definition` are removed
    from models `SchedulerJob`, `SchedulerJobSummary` in the Fleet Application Management service
  * Property `value` is removed from model `TaskArgument` in the Fleet Application Management service
  * Property `association_type` is removed from model `Task` in the Fleet Application Management service
  * Property `patch_type` is removed from model `UpdateCompliancePolicyRuleDetails`
    in the Fleet Application Management service
  * Property `rule_selection_criteria` is removed from model `UpdateFleetDetails`
    in the Fleet Application Management service
  * Properties `associations`, `runbook_relevance` are removed from model `UpdateRunbookDetails`
    in the Fleet Application Management service
  * Property `activity_initiation_cut_off` is removed from model `UpdateSchedulerDefinitionDetails`
    in the Fleet Application Management service
  * Property `display_name` changed from optional to required in models `CreatePlatformConfigurationDetails`,
    `CreateTaskRecordDetails` and `CreatePropertyDetails` in the Fleet Application Management service
  * Type of property `content` changed to `PatchFileContentDetails` from `ContentDetails` in models
    `GenericArtifact` and `PlatformSpecificArtifact` in the Fleet Application Management service
  * Return type for property `notification_preferences` changed to `list[NotificationPreference]` from
    `NotificationPreferences` in model `UpdateFleetDetails` in the Fleet Application Management service
  * Operations `get_work_request` , `list_work_request_errors` , `list_work_requests` , `list_work_request_logs`
    are removed from `FleetAppsManagementClient` in the Fleet Application Management service
  * Parameter `compartment_id` is removed from operation `list_fleet_properties` in the
    `FleetAppsManagementClient` in the Fleet Application Management service
  * Parameter `tenancy_id` is removed from operation `list_fleet_resources` in the
    `FleetAppsManagementClient` in the Fleet Application Management service
  * Parameter `compartment_id` is removed from operation `list_scheduled_fleets` in the
    `FleetAppsManagementOperationsClient` in the Fleet Application Management service
  * Parameters `sub_state` and `defintion_id` are removed from operation `list_scheduler_jobs`
    in the `FleetAppsManagementOperationsClient` in the Fleet Application Management service
  * Parameter `runbook_relevance` is removed from operation `list_runbooks` in the
    `FleetAppsManagementRunbooksClient` in the Fleet Application Management service
2025-05-15 08:42:10 +02:00

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.152.0
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