Added support for Python 3.11.

This commit is contained in:
Anthony Tuininga 2022-11-01 14:31:42 -06:00
parent 164767bf27
commit dd62aeef25
5 changed files with 13 additions and 12 deletions

View File

@ -16,7 +16,7 @@ See [python-oracledb Installation][installation].
## Dependencies and Interoperability ## Dependencies and Interoperability
- Python versions 3.6 through 3.10. - Python versions 3.6 through 3.11.
Prebuilt packages are available on Windows for Python 3.7 or later, on macOS Prebuilt packages are available on Windows for Python 3.7 or later, on macOS
for Python 3.7 or later, and on Linux for Python 3.6 or later. for Python 3.7 or later, and on Linux for Python 3.6 or later.

View File

@ -8,7 +8,7 @@ Database. It conforms to the `Python Database API v2.0 Specification
<https://www.python.org/dev/peps/pep-0249/>`__ with a considerable number of <https://www.python.org/dev/peps/pep-0249/>`__ with a considerable number of
additions and a couple of exclusions. additions and a couple of exclusions.
This module is currently tested with Python 3.6, 3.7, 3.8, 3.9, and 3.10 This module is currently tested with Python 3.6, 3.7, 3.8, 3.9, 3.10 and 3.11
against Oracle Database 21c, 19c, 18c, 12c, and 11.2. against Oracle Database 21c, 19c, 18c, 12c, and 11.2.
**python-oracledb** is distributed under an open-source **python-oracledb** is distributed under an open-source

View File

@ -25,6 +25,7 @@ Thick Mode Changes
Common Changes Common Changes
++++++++++++++ ++++++++++++++
#) Added support for Python 3.11.
#) Added attribute :attr:`DbObjectType.package_name` which contains the name #) Added attribute :attr:`DbObjectType.package_name` which contains the name
of the package if the type is a PL/SQL type (otherwise, it will be `None`). of the package if the type is a PL/SQL type (otherwise, it will be `None`).
#) Improved test suite and documentation. #) Improved test suite and documentation.

View File

@ -35,9 +35,9 @@ quickly.
1. Install `Python 3 <https://www.python.org/downloads>`__, if it is not already 1. Install `Python 3 <https://www.python.org/downloads>`__, if it is not already
available. The version of Python to be used depends on the operating system (OS): available. The version of Python to be used depends on the operating system (OS):
- On Windows, use Python 3.7 to 3.10 - On Windows, use Python 3.7 to 3.11
- On macOS, use Python 3.7 to 3.10 - On macOS, use Python 3.7 to 3.11
- On Linux, use Python 3.6 to 3.10 - On Linux, use Python 3.6 to 3.11
By default, python-oracledb connects directly to Oracle Database. This lets By default, python-oracledb connects directly to Oracle Database. This lets
it be used when Oracle Client libraries are not available (such Apple M1 or it be used when Oracle Client libraries are not available (such Apple M1 or
@ -150,11 +150,11 @@ Installation Requirements
To use python-oracledb, you need: To use python-oracledb, you need:
- Python 3.6, 3.7, 3.8, 3.9 or 3.10 depending on the operating system: - Python 3.6, 3.7, 3.8, 3.9, 3.10 or 3.11 depending on the operating system:
- Windows: Use Python 3.7 to 3.10 - Windows: Use Python 3.7 to 3.11
- macOS: Use Python 3.7 to 3.10 - macOS: Use Python 3.7 to 3.11
- Linux: Use Python 3.6 to 3.10 - Linux: Use Python 3.6 to 3.11
- The Python cryptography package. This package is automatically installed as a - The Python cryptography package. This package is automatically installed as a
dependency of python-oracledb. It is strongly recommended that you keep the dependency of python-oracledb. It is strongly recommended that you keep the

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py{36,37,38,39,310}-{thin,thick} envlist = py{36,37,38,39,310,311}-{thin,thick}
[testenv] [testenv]
commands = {envpython} -m unittest discover -v -s tests commands = {envpython} -m unittest discover -v -s tests
@ -17,10 +17,10 @@ passenv =
DPI_DEBUG_LEVEL DPI_DEBUG_LEVEL
ORACLE_HOME ORACLE_HOME
[testenv:py{36,37,38,39,310}-thick] [testenv:py{36,37,38,39,310,311}-thick]
setenv = setenv =
PYO_TEST_DRIVER_MODE=thick PYO_TEST_DRIVER_MODE=thick
[testenv:py{36,37,38,39,310}-thin] [testenv:py{36,37,38,39,310,311}-thin]
setenv = setenv =
PYO_TEST_DRIVER_MODE=thin PYO_TEST_DRIVER_MODE=thin