Skip to content

Commit 63bd8f7

Browse files
Added optional dependencies [oci_config], [azure_config], [oci_auth] and
[azure_auth] to simplify installation of required packages for centralized configuration providers and cloud native authentication plugins.
1 parent 23ac320 commit 63bd8f7

File tree

3 files changed

+45
-11
lines changed

3 files changed

+45
-11
lines changed

doc/src/release_notes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ Common Changes
3535
:attr:`oracledb.defaults.fetch_lobs <Defaults.fetch_lobs>` and
3636
:attr:`oracledb.defaults.fetch_decimals <Defaults.fetch_decimals>` are now
3737
stored with the operation and used during pipeline execution.
38+
#) Added optional dependencies [oci_config], [azure_config], [oci_auth] and
39+
[azure_auth] to simplify installation of required packages for
40+
:ref:`Centralized Configuration Provider <configprovidermodules>`
41+
support and :ref:`Cloud Native Authentication <cloudnativemodules>`
42+
support.
3843
#) Fixed bug when attempting to execute an empty statement
3944
(`issue 525 <https://github.com/oracle/python-oracledb/issues/525>`__).
4045
#) API documentation is now generated from the source code.

doc/src/user_guide/installation.rst

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,13 @@ Install Modules for the OCI Object Storage Centralized Configuration Provider
10801080

10811081
For python-oracledb to use an :ref:`Oracle Cloud Infrastructure (OCI) Object
10821082
Storage configuration provider <ociobjstorageprovider>`, you must install the
1083-
`OCI <https://pypi.org/project/oci/>`__ package::
1083+
`OCI <https://pypi.org/project/oci/>`__ package. This can be done:
1084+
1085+
- By using the recommended optional [oci_config] dependency::
1086+
1087+
python -m pip install oracledb[oci_config]
1088+
1089+
- Or, by installing the package manually::
10841090

10851091
python -m pip install oci
10861092

@@ -1094,21 +1100,24 @@ Install Modules for the Azure App Centralized Configuration Provider
10941100

10951101
For python-oracledb to use an :ref:`Azure App Configuration Provider
10961102
<azureappstorageprovider>`, you must install the `Azure App Configuration
1097-
<https://pypi.org/project/azure-appconfiguration/>`__, `Azure Core
1098-
<https://pypi.org/project/azure-core/>`__, and `Azure Identity
1099-
<https://pypi.org/project/azure-identity/>`__ packages::
1103+
<https://pypi.org/project/azure-appconfiguration/>`__, `Azure Identity
1104+
<https://pypi.org/project/azure-identity/>`__, and `Azure Key Vault Secrets
1105+
<https://pypi.org/project/azure-keyvault-secrets/>`__ packages.
1106+
This can be done:
11001107

1101-
python -m pip install azure-appconfiguration azure-core azure-identity
1108+
- By using the recommended optional [azure_config] dependency::
11021109

1103-
If your password is stored in the Azure Key vault, then you additionally need
1104-
to install the `Azure Key Vault Secrets <https://pypi.org/project/azure-
1105-
keyvault-secrets/>`__ package::
1110+
python -m pip install oracledb[azure_config]
11061111

1107-
python -m pip install azure-keyvault-secrets
1112+
- Or, by installing the packages manually::
1113+
1114+
python -m pip install azure-appconfiguration azure-identity azure-keyvault-secrets
11081115

11091116
See :ref:`azureappstorageprovider` for information on using this configuration
11101117
provider with python-oracledb.
11111118

1119+
.. _cloudnativemodules:
1120+
11121121
Installing Cloud Native Authentication Modules for python-oracledb
11131122
==================================================================
11141123

@@ -1122,7 +1131,13 @@ Install Modules for the OCI Cloud Native Authentication Plugin
11221131

11231132
For python-oracledb to use the OCI Cloud Native Authentication Plugin, you must
11241133
install the `Python SDK for Oracle Cloud Infrastructure
1125-
<https://pypi.org/project/oci/>`__ package::
1134+
<https://pypi.org/project/oci/>`__ package. This can be done:
1135+
1136+
- By using the recommended optional [oci_auth] dependency::
1137+
1138+
python -m pip install oracledb[oci_auth]
1139+
1140+
- Or, by installing the package manually::
11261141

11271142
python -m pip install oci
11281143

@@ -1140,7 +1155,13 @@ Install Modules for the Azure Cloud Native Authentication Plugin
11401155

11411156
For python-oracledb to use the Azure Cloud Native Authentication Plugin, you
11421157
must install the `Microsoft Authentication Library (MSAL) for Python
1143-
<https://pypi.org/project/msal/>`__ package::
1158+
<https://pypi.org/project/msal/>`__ package. This can be done:
1159+
1160+
- By using the recommended optional [azure_auth] dependency::
1161+
1162+
python -m pip install oracledb[azure_auth]
1163+
1164+
- Or, by installing the package manually::
11441165

11451166
python -m pip install msal
11461167

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,11 @@ test = [
8383
"pandas",
8484
"pyarrow",
8585
]
86+
oci_config = ["oci"]
87+
oci_auth = ["oci"]
88+
azure_config = [
89+
"azure-appconfiguration",
90+
"azure-identity",
91+
"azure-keyvault-secrets"
92+
]
93+
azure_auth = ["msal"]

0 commit comments

Comments
 (0)