forked from pool/oci-cli
Accepting request 1186322 from home:glaubitz:branches:Cloud:Tools
- Update to version 3.44.1 * OCI Operations Insights Service * Support in OPSI Host Capacity Planning to analyze disabled/deleted resources * ``oci opsi host-insights list-host-configurations --status`` * ``oci opsi host-insights list-hosted-entities --status`` * ``oci opsi host-insights summarize-host-insight-disk-statistics --status`` * ``oci opsi host-insights summarize-host-insight-network-usage-trend --status`` * ``oci opsi host-insights summarize-host-insight-resource-capacity-trend --status`` * ``oci opsi host-insights summarize-host-insight-resource-forecast-trend --status`` * ``oci opsi host-insights summarize-host-insight-resource-statistics --status`` * ``oci opsi host-insights summarize-host-insight-resource-usage --status`` * ``oci opsi host-insights summarize-host-insight-resource-usage-trend --status`` * ``oci opsi host-insights summarize-host-insight-resource-utilization-insight --status`` * ``oci opsi host-insights summarize-host-insight-storage-usage-trend --status`` * ``oci opsi host-insights summarize-host-insight-top-processes-usage --status`` * ``oci opsi host-insights summarize-host-insight-top-processes-usage-trend --status`` * OCI File Storage Service * Support for deleting file system by first detaching child file system * ``oci fs file-system delete --can-detach-child-file-system`` * Support for determining whether the file system is attached to its parent file system * ``oci fs file-system create --clone-attach-status`` * Support for detaching a file sys from parent file system * ``oci fs file-system detach --file-system-id`` * OCI Database Migration Service * Support for dynamic list of ZDM parameters for Oracle<>Oracle migrations * ``oci database-migration migration-parameter-summary list-migration-parameters`` * OCI Exadata Database Service * Support for managing Exascale Database Storage Vault resources * ``oci db exascale-db-storage-vault`` * Support for managing VM Cluster resources on Exascale Infrastructure OBS-URL: https://build.opensuse.org/request/show/1186322 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/oci-cli?expand=0&rev=134
This commit is contained in:
commit
a08b95f891
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
121
oc_relax-python-depends.patch
Normal file
121
oc_relax-python-depends.patch
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
diff -Nru oci-cli-3.44.1.orig/requirements.txt oci-cli-3.44.1/requirements.txt
|
||||||
|
--- oci-cli-3.44.1.orig/requirements.txt 2024-07-02 15:35:28.000000000 +0200
|
||||||
|
+++ oci-cli-3.44.1/requirements.txt 2024-07-09 08:39:24.754099775 +0200
|
||||||
|
@@ -2,48 +2,48 @@
|
||||||
|
# (https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format),
|
||||||
|
# you may need to use the --extra-index-url option instead.
|
||||||
|
|
||||||
|
-appdirs==1.4.3
|
||||||
|
+appdirs>=1.4.3
|
||||||
|
arrow>=1.0.0
|
||||||
|
certifi
|
||||||
|
cffi>=1.9.1
|
||||||
|
-click==8.0.4
|
||||||
|
-coverage==4.5.2
|
||||||
|
-cryptography>=3.2.1,<43.0.0
|
||||||
|
-httpsig-cffi==15.0.0
|
||||||
|
-Jinja2==3.0.3
|
||||||
|
-jmespath==0.10.0
|
||||||
|
-ndg-httpsclient==0.4.2
|
||||||
|
-mock==2.0.0
|
||||||
|
-oci==2.129.1
|
||||||
|
-packaging==20.2
|
||||||
|
-pluggy==0.13.0
|
||||||
|
-py==1.11.0
|
||||||
|
-pyasn1==0.2.3
|
||||||
|
-pyOpenSSL>=17.5.0,<25.0.0
|
||||||
|
-pycparser==2.20
|
||||||
|
-pyparsing==2.2.0
|
||||||
|
-pytest==4.6.10; python_version <= '3.9'
|
||||||
|
-pytest==7.1.2; python_version >= '3.10'
|
||||||
|
-pytest-cov==2.5.1
|
||||||
|
-python-dateutil>=2.5.3,<3.0.0
|
||||||
|
+click>=8.0.4
|
||||||
|
+coverage>=4.5.2
|
||||||
|
+cryptography>=3.2.1
|
||||||
|
+httpsig-cffi>=15.0.0
|
||||||
|
+Jinja2>=3.0.3
|
||||||
|
+jmespath>=0.10.0
|
||||||
|
+ndg-httpsclient>=0.4.2
|
||||||
|
+mock>=2.0.0
|
||||||
|
+oci>=2.129.1
|
||||||
|
+packaging>=20.2
|
||||||
|
+pluggy>=0.13.0
|
||||||
|
+py>=1.11.0
|
||||||
|
+pyasn1>=0.2.3
|
||||||
|
+pyOpenSSL>=17.5.0
|
||||||
|
+pycparser>=2.20
|
||||||
|
+pyparsing>=2.2.0
|
||||||
|
+pytest>=4.6.10; python_version <= '3.9'
|
||||||
|
+pytest>=7.1.2; python_version >= '3.10'
|
||||||
|
+pytest-cov>=2.5.1
|
||||||
|
+python-dateutil>=2.5.3
|
||||||
|
pytz>=2016.10
|
||||||
|
-requests==2.21.0; python_version == '3.6'
|
||||||
|
-requests==2.31.0; python_version > '3.6'
|
||||||
|
+requests>=2.21.0; python_version == '3.6'
|
||||||
|
+requests>=2.31.0; python_version > '3.6'
|
||||||
|
six>=1.15.0
|
||||||
|
-sphinx==3.3.0
|
||||||
|
-sphinx-rtd-theme==0.4.3
|
||||||
|
-terminaltables==3.1.10
|
||||||
|
-tox==3.23.0
|
||||||
|
-vcrpy==1.13.0; python_version <= '3.9'
|
||||||
|
-vcrpy==4.2.1; python_version >= '3.10'
|
||||||
|
-virtualenv==20.13.0
|
||||||
|
-pytest-xdist==1.22.2
|
||||||
|
-pytest-forked==1.0.2
|
||||||
|
-PyYAML>=5.4,<=6.0.1
|
||||||
|
-docutils==0.15.2
|
||||||
|
-prompt-toolkit==3.0.29; python_version == '3.6'
|
||||||
|
+sphinx>=3.3.0
|
||||||
|
+sphinx-rtd-theme>=0.4.3
|
||||||
|
+terminaltables>=3.1.10
|
||||||
|
+tox>=3.23.0
|
||||||
|
+vcrpy>=1.13.0; python_version <= '3.9'
|
||||||
|
+vcrpy>=4.2.1; python_version >= '3.10'
|
||||||
|
+virtualenv>=20.13.0
|
||||||
|
+pytest-xdist>=1.22.2
|
||||||
|
+pytest-forked>=1.0.2
|
||||||
|
+PyYAML>=5.4
|
||||||
|
+docutils>=0.15.2
|
||||||
|
+prompt-toolkit>=3.0.29; python_version == '3.6'
|
||||||
|
prompt-toolkit>=3.0.38,<=3.0.43; python_version > '3.6'
|
||||||
|
setuptools>65.5.1; python_version > '3.6'
|
||||||
|
-setuptools==59.6.0; python_version == '3.6'
|
||||||
|
+setuptools>=59.6.0; python_version == '3.6'
|
||||||
|
# this is required because of python 3.6 requests dependency version bound
|
||||||
|
urllib3<=1.26.15
|
||||||
|
diff -Nru oci-cli-3.44.1.orig/setup.py oci-cli-3.44.1/setup.py
|
||||||
|
--- oci-cli-3.44.1.orig/setup.py 2024-07-02 15:35:28.000000000 +0200
|
||||||
|
+++ oci-cli-3.44.1/setup.py 2024-07-09 08:37:55.513854169 +0200
|
||||||
|
@@ -30,20 +30,20 @@
|
||||||
|
readme = f.read()
|
||||||
|
|
||||||
|
requires = [
|
||||||
|
- 'oci==2.129.1',
|
||||||
|
+ 'oci>=2.129.1',
|
||||||
|
'arrow>=1.0.0',
|
||||||
|
'certifi',
|
||||||
|
- 'click==8.0.4',
|
||||||
|
- 'cryptography>=3.2.1,<43.0.0',
|
||||||
|
- 'jmespath==0.10.0',
|
||||||
|
- 'python-dateutil>=2.5.3,<3.0.0',
|
||||||
|
+ 'click>=8.0.4',
|
||||||
|
+ 'cryptography>=3.2.1',
|
||||||
|
+ 'jmespath>=0.10.0',
|
||||||
|
+ 'python-dateutil>=2.5.3',
|
||||||
|
'pytz>=2016.10',
|
||||||
|
'six>=1.15.0',
|
||||||
|
- 'terminaltables==3.1.10',
|
||||||
|
- 'pyOpenSSL>=17.5.0,<25.0.0',
|
||||||
|
- 'PyYAML>=5.4,<=6.0.1',
|
||||||
|
+ 'terminaltables>=3.1.10',
|
||||||
|
+ 'pyOpenSSL>=17.5.0',
|
||||||
|
+ 'PyYAML>=5.4',
|
||||||
|
'prompt-toolkit>=3.0.38,<=3.0.43; python_version > "3.6"',
|
||||||
|
- 'prompt-toolkit==3.0.29; python_version == "3.6"'
|
||||||
|
+ 'prompt-toolkit>=3.0.29; python_version == "3.6"'
|
||||||
|
]
|
||||||
|
|
||||||
|
extras = {
|
3
oci-cli-3.44.1.tar.gz
Normal file
3
oci-cli-3.44.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3861a310eab3ba022c04a6d8eaa755ad1147f0c6e5e920097de9d181ff733f09
|
||||||
|
size 5358821
|
6892
oci-cli.changes
Normal file
6892
oci-cli.changes
Normal file
File diff suppressed because it is too large
Load Diff
143
oci-cli.spec
Normal file
143
oci-cli.spec
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
#
|
||||||
|
# spec file for package oci-cli
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# The testsuite currently requires an OCI account, see:
|
||||||
|
# https://github.com/oracle/oci-cli/issues/187,
|
||||||
|
# so we're not building the test flavor.
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1600
|
||||||
|
%define pythons %{primary_python}
|
||||||
|
%else
|
||||||
|
%define pythons python311
|
||||||
|
%endif
|
||||||
|
%global _sitelibdir %{%{pythons}_sitelib}
|
||||||
|
|
||||||
|
Name: oci-cli%{psuffix}
|
||||||
|
Version: 3.44.1
|
||||||
|
Release: 0
|
||||||
|
Summary: Oracle Cloud Infrastructure CLI
|
||||||
|
License: Apache-2.0
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
URL: https://docs.us-phoenix-1.oraclecloud.com/Content/API/SDKDocs/cli.htm
|
||||||
|
Source: https://github.com/oracle/oci-cli/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: oc_relax-python-depends.patch
|
||||||
|
BuildRequires: %{pythons}-PyJWT
|
||||||
|
BuildRequires: %{pythons}-PyYAML >= 5.4.1
|
||||||
|
BuildRequires: %{pythons}-arrow >= 1.0.0
|
||||||
|
BuildRequires: %{pythons}-certifi
|
||||||
|
BuildRequires: %{pythons}-click >= 8.0.4
|
||||||
|
BuildRequires: %{pythons}-cryptography >= 3.2.1
|
||||||
|
BuildRequires: %{pythons}-devel
|
||||||
|
BuildRequires: %{pythons}-jmespath >= 0.10.0
|
||||||
|
BuildRequires: %{pythons}-oci-sdk >= 2.129.1
|
||||||
|
BuildRequires: %{pythons}-pip
|
||||||
|
BuildRequires: %{pythons}-pyOpenSSL >= 22.1.0
|
||||||
|
BuildRequires: %{pythons}-python-dateutil >= 2.5.3
|
||||||
|
BuildRequires: %{pythons}-pytz >= 2016.10
|
||||||
|
BuildRequires: %{pythons}-setuptools
|
||||||
|
BuildRequires: %{pythons}-six >= 1.15.0
|
||||||
|
BuildRequires: %{pythons}-terminaltables >= 3.1.10
|
||||||
|
BuildRequires: %{pythons}-wheel
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{pythons}-Jinja2 >= 2.11.3
|
||||||
|
BuildRequires: %{pythons}-Sphinx >= 1.6.4
|
||||||
|
BuildRequires: %{pythons}-appdirs >= 1.4.3
|
||||||
|
BuildRequires: %{pythons}-cffi >= 1.9.1
|
||||||
|
BuildRequires: %{pythons}-coverage >= 4.5.2
|
||||||
|
BuildRequires: %{pythons}-ndg-httpsclient >= 0.4.2
|
||||||
|
BuildRequires: %{pythons}-packaging >= 20.2
|
||||||
|
BuildRequires: %{pythons}-pluggy >= 0.13.0
|
||||||
|
BuildRequires: %{pythons}-py >= 1.11.0
|
||||||
|
BuildRequires: %{pythons}-pyasn1 >= 0.2.3
|
||||||
|
BuildRequires: %{pythons}-pycparser >= 2.20
|
||||||
|
BuildRequires: %{pythons}-pyparsing >= 2.2.0
|
||||||
|
BuildRequires: %{pythons}-pytest-cov >= 2.5.1
|
||||||
|
BuildRequires: %{pythons}-pytest-forked >= 1.0.2
|
||||||
|
BuildRequires: %{pythons}-pytest-xdist >= 1.22.2
|
||||||
|
BuildRequires: %{pythons}-requests >= 2.21.0
|
||||||
|
BuildRequires: %{pythons}-sphinx_rtd_theme >= 0.4.3
|
||||||
|
BuildRequires: %{pythons}-tox >= 3.23.0
|
||||||
|
BuildRequires: %{pythons}-vcrpy >= 4.2.1
|
||||||
|
BuildRequires: %{pythons}-virtualenv >= 16.7.10
|
||||||
|
BuildRequires: (%{pythons}-vcrpy >= 1.13.0 if python-base <= 3.9)
|
||||||
|
BuildRequires: (%{pythons}-vcrpy >= 4.2.1 if python-base >= 3.10)
|
||||||
|
BuildRequires: (%{pythons}-vcrpy >= 4.6.10 if python-base <= 3.9)
|
||||||
|
BuildRequires: (%{pythons}-vcrpy >= 7.1.2 if python-base >= 3.10)
|
||||||
|
%endif
|
||||||
|
Requires: %{pythons}-PyYAML >= 5.4.1
|
||||||
|
Requires: %{pythons}-arrow >= 1.0.0
|
||||||
|
Requires: %{pythons}-certifi
|
||||||
|
Requires: %{pythons}-click >= 8.0.4
|
||||||
|
Requires: %{pythons}-cryptography >= 3.2.1
|
||||||
|
Requires: %{pythons}-jmespath >= 0.10.0
|
||||||
|
Requires: %{pythons}-oci-sdk >= 2.129.1
|
||||||
|
Requires: %{pythons}-prompt_toolkit >= 3.0.38
|
||||||
|
Requires: %{pythons}-pyOpenSSL >= 22.1.0
|
||||||
|
Requires: %{pythons}-python-dateutil >= 2.5.3
|
||||||
|
Requires: %{pythons}-pytz >= 2016.10
|
||||||
|
Requires: %{pythons}-six >= 1.15.0
|
||||||
|
Requires: %{pythons}-terminaltables >= 3.1.10
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
The CLI is a small footprint tool that you can use on its own or with the
|
||||||
|
Console to complete Oracle Cloud Infrastructure tasks. The CLI provides
|
||||||
|
the same core functionality as the Console, plus additional commands.
|
||||||
|
Some of these, such as the ability to run scripts, extend the Console's
|
||||||
|
functionality.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n oci-cli-%{version}
|
||||||
|
|
||||||
|
# Fix includes
|
||||||
|
find . -name "*.py" -exec sed -i 's/from oci\._vendor //' \{\} +
|
||||||
|
find . -name "*.py" -exec sed -i 's/oci\._vendor\.//' \{\} +
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
|
%check
|
||||||
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
export PYTHONPATH=%{buildroot}%{_sitelibdir}
|
||||||
|
py.test -s tests/unit
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%fdupes %{buildroot}%{_sitelibdir}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc CHANGELOG.rst README.rst
|
||||||
|
%license LICENSE.txt
|
||||||
|
%{_bindir}/oci
|
||||||
|
%{_bindir}/create_backup_from_onprem
|
||||||
|
%{_sitelibdir}/*
|
||||||
|
|
||||||
|
%changelog
|
Loading…
x
Reference in New Issue
Block a user