From 4d368ae980d40983aa3bff7bee28a9fd973cc4c3 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Thu, 13 Sep 2018 13:38:37 -0600 Subject: [PATCH] Preparing to release cx_Oracle 7.0. --- README.md | 10 ++++---- doc/src/conf.py | 2 +- doc/src/index.rst | 3 ++- doc/src/installation.rst | 2 +- doc/src/license.rst | 2 +- doc/src/releasenotes.rst | 50 ++++++++++++++++++++++++++++++++++++++++ odpi | 2 +- setup.py | 2 +- 8 files changed, 62 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index bdcd032..a32aa03 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# cx_Oracle version 6.4 +# cx_Oracle version 7.0 cx_Oracle is a Python extension module that enables access to Oracle Database. It conforms to the [Python database API 2.0 @@ -7,11 +7,11 @@ of exclusions. See the [homepage](https://oracle.github.io/python-cx_Oracle/index.html) for a feature list. -cx_Oracle 6 has been tested with Python version 2.7, and with versions -3.4 and higher. You can use cx_Oracle with Oracle 11.2, 12.1 and 12.2 -client libraries. Oracle's standard client-server version +cx_Oracle 7 has been tested with Python version 2.7, and with versions +3.5 and higher. You can use cx_Oracle with Oracle 11.2 and higher client +libraries (including Oracle 18.3). Oracle's standard client-server version interoperability allows connection to both older and newer databases, -for example Oracle 12.2 client libraries can connect to Oracle +for example Oracle 18.3 client libraries can connect to Oracle Database 11.2. ## Installation diff --git a/doc/src/conf.py b/doc/src/conf.py index 5ac4a41..6d50760 100644 --- a/doc/src/conf.py +++ b/doc/src/conf.py @@ -42,7 +42,7 @@ author = 'Oracle' # The short X.Y version. version = '7.0' # The full version, including alpha/beta/rc tags. -release = '7.0.0-dev' +release = '7.0.0' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: diff --git a/doc/src/index.rst b/doc/src/index.rst index 3b2594b..e65df71 100644 --- a/doc/src/index.rst +++ b/doc/src/index.rst @@ -4,7 +4,8 @@ Welcome to cx_Oracle's documentation! **cx_Oracle** is a module that enables access to Oracle Database and conforms to the Python database API specification. This module is currently tested -against Oracle Client 11.2, 12.1 and 12.2 and Python 2.7, 3.4, 3.5 and 3.6. +against Oracle Client 11.2, 12.1, 12.2 and 18.3 and Python 2.7, 3.5, 3.6 and +3.7. **cx_Oracle** is distributed under an open-source :ref:`license ` (the BSD license). diff --git a/doc/src/installation.rst b/doc/src/installation.rst index d30751c..4412180 100644 --- a/doc/src/installation.rst +++ b/doc/src/installation.rst @@ -570,7 +570,7 @@ which the following commands should be run:: Upgrading from cx_Oracle 6 ========================== -Review the `releasenotes +Review the `release notes `__ for deprecations and modify any affected code. diff --git a/doc/src/license.rst b/doc/src/license.rst index 2f73676..a95758c 100644 --- a/doc/src/license.rst +++ b/doc/src/license.rst @@ -8,7 +8,7 @@ License .. centered:: **LICENSE AGREEMENT FOR CX_ORACLE** -Copyright |copy| 2016-2018, Oracle and/or its affiliates. All rights reserved. +Copyright |copy| 2016, 2018, Oracle and/or its affiliates. All rights reserved. Copyright |copy| 2007-2015, Anthony Tuininga. All rights reserved. diff --git a/doc/src/releasenotes.rst b/doc/src/releasenotes.rst index 49c21f2..4c6889f 100644 --- a/doc/src/releasenotes.rst +++ b/doc/src/releasenotes.rst @@ -3,6 +3,56 @@ cx_Oracle Release Notes ======================= +7.x releases +############ + +.. _releasenotes70: + +Version 7.0 (September 2018) +---------------------------- + +#) Update to `ODPI-C 3.0 + `__. +#) Added support for Oracle Client 18 libraries. +#) Added support for SODA (as preview). See :ref:`SODA Database `, + :ref:`SODA Collection ` and :ref:`SODA Document ` for + more information. +#) Added support for call timeouts available in Oracle Client 18.1 and + higher. See :attr:`Connection.callTimeout`. +#) Added support for getting the contents of a SQL collection object as a + dictionary, where the keys are the indices of the collection and the values + are the elements of the collection. See function :meth:`Object.asdict()`. +#) Added support for closing a session pool via the function + :meth:`SessionPool.close()`. Once closed, further attempts to use any + connection that was acquired from the pool will result in the error + "DPI-1010: not connected". +#) Added support for setting a LOB attribute of an object with a string or + bytes (instead of requiring a temporary LOB to be created). +#) Added support for the packed decimal type used by object attributes with + historical types DECIMAL and NUMERIC + (`issue 212 `__). +#) On Windows, first attempt to load oci.dll from the same directory as + the cx_Oracle module. +#) SQL objects that are created or fetched from the database are now tracked + and marked unusable when a connection is closed. This was done in order + to avoid a segfault under certain circumstances. +#) Re-enabled pool pinging functionality for Oracle Client 12.2 and higher + to handle classes of connection errors such as resource profile limits. +#) Improved error messages when the Oracle Client or Oracle Database need to + be at a minimum version in order to support a particular feature. +#) When a connection is used as a context manager, the connection is now + closed when the block ends. Attempts to set + ``cx_Oracle.__future__.ctx_mgr_close`` are now ignored. +#) When a DML returning statement is executed, variables bound to it will + return an array when calling :meth:`Variable.getvalue()`. Attempts to set + ``cx_Oracle.__future__.dml_ret_array_val`` are now ignored. +#) Support for Python 3.4 has been dropped. +#) Added additional test cases. +#) Improved documentation. + + + 6.x releases ############ diff --git a/odpi b/odpi index b201849..9902a60 160000 --- a/odpi +++ b/odpi @@ -1 +1 @@ -Subproject commit b201849a71d5d8b71b0a48dab3b4c7c75175df76 +Subproject commit 9902a60068042e7409b7806b5e73fe7e66200cae diff --git a/setup.py b/setup.py index 6cc9c56..4a84fba 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ except: from distutils.extension import Extension # define build constants -BUILD_VERSION = "7.0.0-dev" +BUILD_VERSION = "7.0.0" # setup extra link and compile args extraLinkArgs = []