1
0
python-oci-sdk/python-oci-sdk.spec

101 lines
4.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-oci-sdk
#
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
# Copyright (c) 2020 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.
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-oci-sdk
Accepting request 785580 from home:glaubitz:branches:devel:languages:python - Update to version 2.11.0 + Support for Events service integration with alerts in the Budgets service + The parameters sort_by and lifecycle_state type from Budgets service are changed from str to enum - from version 2.10.7 + Support for updating the shape of a Database System in the Database service + Support for generating CPE configurations for download in the Networking service + Support for private IPs and fault domains of cluster nodes in the Container Engine for Kubernetes service + Support for calling Oracle Cloud Infrastructure services in the ca-montreal-1 region + Fixed missed parameter when invoking request signing for delegation token - from version 2.10.6 + Support for restarting autonomous databases in the Database service + Support for private endpoints on autonomous databases in the Database service + Support for IP-based policies in the Identity service + Support for management of OAuth 2.0 client credentials in the Identity service + Support for OCI Functions as a subscription protocol in the Notifications service - from version 2.10.5 + Support for the NoSQL Database service + Support for filtering database versions by storage management type in the Database service + Support for specifying paid listing types within pricing models in the Marketplace service + Support for primary and non-primary instance types in the Content and Experience service - from version 2.10.4 + Support for listing supported database versions for Autonomous Database Serverless, and selecting a version at provisioning time in the Database service + Support for TCP proxy protocol versions on listener connection configurations in the Load Balancer service OBS-URL: https://build.opensuse.org/request/show/785580 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=5
2020-03-16 11:50:07 +01:00
Version: 2.11.0
Release: 0
Summary: Oracle Cloud Infrastructure Python SDK
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
License: UPL-1.0 OR Apache-2.0
Group: Development/Languages/Python
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
URL: https://github.com/oracle/oci-python-sdk
Source: https://github.com/oracle/oci-python-sdk/archive/v%{version}.tar.gz
Patch0: ops_relax-python-depends.patch
Patch1: ops_fixture-order.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyJWT
Requires: python-certifi
Requires: python-cryptography >= 2.1.4
Requires: python-httpsig_cffi
Requires: python-pyOpenSSL >= 17.5.0
Requires: python-python-dateutil < 3.0.0
Requires: python-python-dateutil >= 2.5.3
Requires: python-pytz >= 2016.10
Requires: python-requests
Requires: python-six
BuildArch: noarch
# SECTION test requirements
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
BuildRequires: %{python_module PyJWT}
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module cryptography >= 2.1.4}
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
BuildRequires: %{python_module httpsig_cffi}
BuildRequires: %{python_module pyOpenSSL >= 17.5.0}
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil < 3.0.0}
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
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 vcrpy}
%if %{with python2}
Accepting request 771560 from home:glaubitz:branches:devel:languages:python - Update to version 2.10.3 + Support for the Data Science service + Support for calling Oracle Cloud Infrastructure services in the ap-osaka-1 and ap-melbourne-1 regions - from version 2.10.2 + Support for the Application Migration service + Support for the Data Flow service + Support for the Data Catalog service + Support for cross-shape Data Guard in the Database service + Support for offline data export in the Data Transfer service - from version 2.10.1 + Support for getting DRG redundancy status in the Networking service + Support for cloning autonomous databases from backups in the Database service - from version 2.10.0 + Support for a description field on route rules and security rules in the Networking service + Support for starting and stopping Digital Assistant instances in the Digital Assistant service + Support for shared database homes on Exadata, bare metal, and virtual machine instances in the Database service + Support for tracking a number of Database service operations through the Work Requests service + Field db_home_id in list_databases from database service is changed from required to optional - Refresh patches for new version + ops_fixture-order.patch + ops_relax-python-depends.patch - Update file list to fix Python imports for unvendoring OBS-URL: https://build.opensuse.org/request/show/771560 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=3
2020-02-07 13:37:53 +01:00
BuildRequires: python-configparser >= 3.5.0
%endif
# /SECTION
%ifpython2
Requires: python-configparser >= 3.5.0
%endif
%python_subpackages
%description
Python SDK for Oracle Cloud Infrastructure. Python 2.7+ and 3.5+ are supported.
%prep
%setup -q -n oci-python-sdk-%{version}
%patch0 -p1
%patch1 -p1
# Remove vendored packages
rm -rf src/oci/_vendor/
# Fix includes
sed -i 's/from \._vendor //' src/oci/*.py
Accepting request 785580 from home:glaubitz:branches:devel:languages:python - Update to version 2.11.0 + Support for Events service integration with alerts in the Budgets service + The parameters sort_by and lifecycle_state type from Budgets service are changed from str to enum - from version 2.10.7 + Support for updating the shape of a Database System in the Database service + Support for generating CPE configurations for download in the Networking service + Support for private IPs and fault domains of cluster nodes in the Container Engine for Kubernetes service + Support for calling Oracle Cloud Infrastructure services in the ca-montreal-1 region + Fixed missed parameter when invoking request signing for delegation token - from version 2.10.6 + Support for restarting autonomous databases in the Database service + Support for private endpoints on autonomous databases in the Database service + Support for IP-based policies in the Identity service + Support for management of OAuth 2.0 client credentials in the Identity service + Support for OCI Functions as a subscription protocol in the Notifications service - from version 2.10.5 + Support for the NoSQL Database service + Support for filtering database versions by storage management type in the Database service + Support for specifying paid listing types within pricing models in the Marketplace service + Support for primary and non-primary instance types in the Content and Experience service - from version 2.10.4 + Support for listing supported database versions for Autonomous Database Serverless, and selecting a version at provisioning time in the Database service + Support for TCP proxy protocol versions on listener connection configurations in the Load Balancer service OBS-URL: https://build.opensuse.org/request/show/785580 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oci-sdk?expand=0&rev=5
2020-03-16 11:50:07 +01:00
sed -i 's/from oci._vendor //' src/oci/*.py src/oci/analytics/*.py src/oci/apigateway/*.py src/oci/application_migration/*.py src/oci/announcements_service/*.py src/oci/audit/*.py src/oci/auth/*.py src/oci/auth/signers/*.py src/oci/autoscaling/*.py src/oci/budget/*.py src/oci/container_engine/*.py src/oci/dns/*.py src/oci/core/*.py src/oci/database/*.py src/oci/data_catalog/*.py src/oci/data_flow/*.py src/oci/data_science/*.py src/oci/dts/*.py src/oci/email/*.py src/oci/events/*.py src/oci/file_storage/*.py src/oci/functions/*.py src/oci/healthchecks/*.py src/oci/integration/*.py src/oci/key_management/*.py src/oci/marketplace/*.py src/oci/limits/*.py src/oci/load_balancer/*.py src/oci/monitoring/*.py src/oci/nosql/*.py src/oci/oda/*.py src/oci/object_storage/*.py src/oci/oce/*.py src/oci/ons/*.py src/oci/object_storage/transfer/*.py src/oci/object_storage/transfer/internal/*.py src/oci/os_management/*.py src/oci/resource_manager/*.py src/oci/streaming/*.py src/oci/identity/*.py src/oci/resource_search/*.py src/oci/waas/*.py src/oci/work_requests/*.py tests/*.py
sed -i 's/ oci._vendor.jwt as//' src/oci/auth/*.py
sed -i 's/oci\._vendor\.//' src/oci/*.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
%python_build
%check
export PYTHONDONTWRITEBYTECODE=1
%pytest tests/unit tests/integ -s
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc CHANGELOG.rst README.rst
%license LICENSE.txt
%{python_sitelib}/*
%changelog