2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# spec file for package python-oci-sdk
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-03 10:05:58 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# Copyright (c) 2023 SUSE LLC
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00: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 12:37:53 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# Please submit bugfixes or comments via https://bugs.opensuse.org/
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-04-23 10:39:56 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%bcond_without python2
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Name:           python-oci-sdk
							 | 
						
					
						
							
								
									
										
										
										
											2023-02-08 11:46:41 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Version:        2.91.0
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Release:        0
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Summary:        Oracle Cloud Infrastructure Python SDK
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-12 18:50:29 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								License:        Apache-2.0 OR UPL-1.0
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Group:          Development/Languages/Python
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-07 12:37:53 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								URL:            https://github.com/oracle/oci-python-sdk
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-20 17:22:02 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Source:         %{url}/archive/v%{version}.tar.gz#/oci-python-sdk-%{version}.tar.gz
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Patch0:         ops_relax-python-depends.patch
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Patch1:         ops_fixture-order.patch
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module devel}
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module setuptools}
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-07 12:37:53 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  fdupes
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  python-rpm-macros
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Requires:       python-PyJWT
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Requires:       python-certifi
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-27 13:46:05 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Requires:       python-circuitbreaker >= 1.3.1
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-29 19:38:15 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Requires:       python-cryptography
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-07 12:37:53 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Requires:       python-httpsig_cffi
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-29 19:38:15 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Requires:       python-pyOpenSSL >= 17.5.0
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-07 12:37:53 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								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
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# SECTION test requirements
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-07 12:37:53 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module PyJWT}
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module certifi}
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-27 13:46:05 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module circuitbreaker >= 1.3.1}
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-29 19:38:15 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module cryptography}
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-07 12:37:53 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module httpsig_cffi}
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-29 19:38:15 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module pyOpenSSL >= 17.5.0}
							 | 
						
					
						
							
								
									
										
										
										
											2020-04-27 11:36:13 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module pytest > 4.1.0}
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module python-dateutil < 3.0.0}
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-07 12:37:53 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module python-dateutil >= 2.5.3}
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module pytz >= 2016.10}
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module requests}
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module six}
							 | 
						
					
						
							
								
									
										
										
										
											2020-04-27 11:36:13 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  %{python_module vcrpy >= 2.0.1}
							 | 
						
					
						
							
								
									
										
										
										
											2020-04-23 10:39:56 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%if %{with python2}
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-29 19:38:15 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								BuildRequires:  python-configparser
							 | 
						
					
						
							
								
									
										
										
										
											2020-02-07 12:37:53 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%endif
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# /SECTION
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								%ifpython2
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-29 19:38:15 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								Requires:       python-configparser
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								%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
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-03 09:17:12 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								find . -name "*.py" -exec sed -i 's/from oci._vendor //' \{\} +
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								sed -i 's/from \._vendor //' src/oci/*.py
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								sed -i 's/ oci._vendor.jwt as//' src/oci/auth/*.py
							 | 
						
					
						
							
								
									
										
										
										
											2023-02-08 11:46:41 +00: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 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								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
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-03 11:20:19 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								%{python_sitelib}/oci
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								%{python_sitelib}/oci-%{version}*-info
							 | 
						
					
						
							
								
									
										
										
										
											2020-01-29 21:39:52 +00:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								%changelog
							 |