Skip to content

Commit

Permalink
Bump version and update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jan 29, 2022
1 parent 5a7684b commit a3f93da
Show file tree
Hide file tree
Showing 23 changed files with 43 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 5.2.2
current_version = 5.2.3
commit = False
tag = False

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Copyright (c) 1995, Pascal Andre

Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain

Further modifications copyright (c) 2009-2020 by the PyGreSQL Development Team
Further modifications copyright (c) 2009-2022 by the PyGreSQL Development Team

PyGreSQL is released under the PostgreSQL License, a liberal Open Source
license, similar to the BSD or MIT licenses:
Expand Down
6 changes: 3 additions & 3 deletions docs/about.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PostgreSQL features from a Python script.

| This software is copyright © 1995, Pascal Andre.
| Further modifications are copyright © 1997-2008 by D'Arcy J.M. Cain.
| Further modifications are copyright © 2009-2020 by the PyGreSQL team.
| Further modifications are copyright © 2009-2022 by the PyGreSQL team.
| For licensing details, see the full :doc:`copyright`.

**PostgreSQL** is a highly scalable, SQL compliant, open source
Expand Down Expand Up @@ -36,7 +36,7 @@ on the PyGres95 code written by Pascal Andre (andre@chimay.via.ecp.fr).
D'Arcy (darcy@druid.net) renamed it to PyGreSQL starting with
version 2.0 and serves as the "BDFL" of PyGreSQL.

The current version PyGreSQL 5.2.2 needs PostgreSQL 9.0 to 9.6 or 10 to 13, and
Python 2.7 or 3.5 to 3.9. If you need to support older PostgreSQL versions or
The current version PyGreSQL 5.2.3 needs PostgreSQL 9.0 to 9.6 or 10 to 14, and
Python 2.7 or 3.5 to 3.10. If you need to support older PostgreSQL versions or
older Python 2.x versions, you can resort to the PyGreSQL 4.x versions that
still support them.
8 changes: 4 additions & 4 deletions docs/announce.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ PyGreSQL Announcements
======================

---------------------------------
Release of PyGreSQL version 5.2.2
Release of PyGreSQL version 5.2.3
---------------------------------

Release 5.2.2 of PyGreSQL.
Release 5.2.3 of PyGreSQL.

It is available at: https://pypi.org/project/PyGreSQL/.

Expand All @@ -22,8 +22,8 @@ This version has been built and unit tested on:
- openSUSE
- Ubuntu
- Windows 7 and 10 with both MinGW and Visual Studio
- PostgreSQL 9.0 to 9.6 and 10 to 13 (32 and 64bit)
- Python 2.7 and 3.5 to 3.9 (32 and 64bit)
- PostgreSQL 9.0 to 9.6 and 10 to 14 (32 and 64bit)
- Python 2.7 and 3.5 to 3.10 (32 and 64bit)

| D'Arcy J.M. Cain
| darcy@PyGreSQL.org
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
# General information about the project.
project = 'PyGreSQL'
author = 'The PyGreSQL team'
copyright = '2020, ' + author
copyright = '2022, ' + author

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The full version, including alpha/beta/rc tags.
version = release = '5.2.2'
version = release = '5.2.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
9 changes: 9 additions & 0 deletions docs/contents/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ ChangeLog

Version 5.2.3 (to be released)
------------------------------
- This version officially supports the new Python 3.10 and PostgreSQL 14.
- Some improvements and fixes in the `inserttable()` method of the `pg` module:
- Sync with `PQendcopy()` when there was an error (#60)
- Improved check for internal result (#62)
- Catch buffer overflows when building the copy command
- Data can now be passed as an iterable, not just list or tuple (#66)
- Some more fixes in the `pg` module:
- Fix argument handling of `is/set_non_blocking()`.
- Add missing `get/set_typecasts` in list of exports.
- Fixed a reference counting issue when casting JSON columns (#57).

Version 5.2.2 (2020-12-09)
Expand Down
2 changes: 1 addition & 1 deletion docs/contents/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ On Windows, you also need to make sure that the directory that contains
``libpq.dll`` is part of your ``PATH`` environment variable.

The current version of PyGreSQL has been tested with Python versions
2.7 and 3.5 to 3.9, and PostgreSQL versions 9.0 to 9.6 and 10 to 13.
2.7 and 3.5 to 3.10, and PostgreSQL versions 9.0 to 9.6 and 10 to 14.

PyGreSQL will be installed as three modules, a shared library called
``_pg.so`` (on Linux) or a DLL called ``_pg.pyd`` (on Windows), and two pure
Expand Down
2 changes: 1 addition & 1 deletion docs/contents/pg/adaptation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ With PostgreSQL we can easily calculate that these two circles overlap::
True

However, calculating the intersection points between the two circles using the
``#`` operator does not work (at least not as of PostgreSQL version 13).
``#`` operator does not work (at least not as of PostgreSQL version 14).
So let's resort to SymPy to find out. To ease importing circles from
PostgreSQL to SymPy, we create and register the following typecast function::

Expand Down
2 changes: 1 addition & 1 deletion docs/copyright.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Copyright (c) 1995, Pascal Andre
Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain
(darcy@PyGreSQL.org)

Further modifications copyright (c) 2009-2020 by the PyGreSQL team.
Further modifications copyright (c) 2009-2022 by the PyGreSQL team.

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose, without fee, and without a written agreement
Expand Down
2 changes: 1 addition & 1 deletion pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# This file contains the classic pg module.
#
# Copyright (c) 2020 by the PyGreSQL Development Team
# Copyright (c) 2022 by the PyGreSQL Development Team
#
# The notification handler is based on pgnotify which is
# Copyright (c) 2001 Ng Pheng Siong. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion pgconn.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The connection object - this file is part a of the C extension module.
*
* Copyright (c) 2020 by the PyGreSQL Development Team
* Copyright (c) 2022 by the PyGreSQL Development Team
*
* Please see the LICENSE.TXT file for specific restrictions.
*/
Expand Down
2 changes: 1 addition & 1 deletion pgdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# This file contains the DB-API 2 compatible pgdb module.
#
# Copyright (c) 2020 by the PyGreSQL Development Team
# Copyright (c) 2022 by the PyGreSQL Development Team
#
# Please see the LICENSE.TXT file for specific restrictions.

Expand Down
2 changes: 1 addition & 1 deletion pginternal.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Internal functions - this file is part a of the C extension module.
*
* Copyright (c) 2020 by the PyGreSQL Development Team
* Copyright (c) 2022 by the PyGreSQL Development Team
*
* Please see the LICENSE.TXT file for specific restrictions.
*/
Expand Down
2 changes: 1 addition & 1 deletion pglarge.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Large object support - this file is part a of the C extension module.
*
* Copyright (c) 2020 by the PyGreSQL Development Team
* Copyright (c) 2022 by the PyGreSQL Development Team
*
* Please see the LICENSE.TXT file for specific restrictions.
*/
Expand Down
2 changes: 1 addition & 1 deletion pgmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is the main file for the C extension module.
*
* Copyright (c) 2020 by the PyGreSQL Development Team
* Copyright (c) 2022 by the PyGreSQL Development Team
*
* Please see the LICENSE.TXT file for specific restrictions.
*/
Expand Down
2 changes: 1 addition & 1 deletion pgnotice.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The notice object - this file is part a of the C extension module.
*
* Copyright (c) 2020 by the PyGreSQL Development Team
* Copyright (c) 2022 by the PyGreSQL Development Team
*
* Please see the LICENSE.TXT file for specific restrictions.
*/
Expand Down
2 changes: 1 addition & 1 deletion pgquery.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The query object - this file is part a of the C extension module.
*
* Copyright (c) 2020 by the PyGreSQL Development Team
* Copyright (c) 2022 by the PyGreSQL Development Team
*
* Please see the LICENSE.TXT file for specific restrictions.
*/
Expand Down
2 changes: 1 addition & 1 deletion pgsource.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* The source object - this file is part a of the C extension module.
*
* Copyright (c) 2020 by the PyGreSQL Development Team
* Copyright (c) 2022 by the PyGreSQL Development Team
*
* Please see the LICENSE.TXT file for specific restrictions.
*/
Expand Down
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
#
# PyGreSQL - a Python interface for the PostgreSQL database.
#
# Copyright (c) 2020 by the PyGreSQL Development Team
# Copyright (c) 2022 by the PyGreSQL Development Team
#
# Please see the LICENSE.TXT file for specific restrictions.

"""Setup script for PyGreSQL version 5.2.2
"""Setup script for PyGreSQL version 5.2.3
PyGreSQL is an open-source Python module that interfaces to a
PostgreSQL database. It embeds the PostgreSQL query library to allow
Expand All @@ -26,8 +26,8 @@
* PostgreSQL pg_config tool (usually included in the devel package)
(the Windows installer has it as part of the database server feature)
PyGreSQL currently supports Python versions 2.7 and 3.5 to 3.9,
and PostgreSQL versions 9.0 to 9.6 and 10 to 13.
PyGreSQL currently supports Python versions 2.7 and 3.5 to 3.10,
and PostgreSQL versions 9.0 to 9.6 and 10 to 14.
Use as follows:
python setup.py build_ext # to build the module
Expand All @@ -52,7 +52,7 @@
from distutils.ccompiler import get_default_compiler
from distutils.sysconfig import get_python_inc, get_python_lib

version = '5.2.2'
version = '5.2.3'

if not (sys.version_info[:2] == (2, 7)
or (3, 5) <= sys.version_info[:2] < (4, 0)):
Expand Down Expand Up @@ -251,6 +251,7 @@ def finalize_options(self):
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
"Programming Language :: SQL",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_classic_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def testAttributeProtocolVersion(self):
def testAttributeServerVersion(self):
server_version = self.connection.server_version
self.assertIsInstance(server_version, int)
self.assertTrue(90000 <= server_version < 140000)
self.assertTrue(90000 <= server_version < 150000)

def testAttributeSocket(self):
socket = self.connection.socket
Expand Down
2 changes: 1 addition & 1 deletion tests/test_classic_dbwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def testAttributeProtocolVersion(self):
def testAttributeServerVersion(self):
server_version = self.db.server_version
self.assertIsInstance(server_version, int)
self.assertTrue(90000 <= server_version < 140000)
self.assertTrue(90000 <= server_version < 150000)
self.assertEqual(server_version, self.db.db.server_version)

def testAttributeSocket(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_classic_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def testPqlibVersion(self):
v = pg.get_pqlib_version()
self.assertIsInstance(v, long)
self.assertGreater(v, 90000)
self.assertLess(v, 140000)
self.assertLess(v, 150000)


class TestParseArray(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ envlist = py{27,35,36,37,38,39,310},flake8,docs

[testenv:flake8]
basepython = python3.9
deps = flake8>=3.8,<4
deps = flake8>=4,<5
commands =
flake8 setup.py pg.py pgdb.py tests

[testenv:docs]
basepython = python3.9
deps =
sphinx>=3.2,<4
sphinx>=3.5,<4
cloud_sptheme>=1.10,<2
commands =
sphinx-build -b html -nEW docs docs/_build/html
Expand Down

0 comments on commit a3f93da

Please sign in to comment.