Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d75ed09

Browse files
committed
Bump version to 3.3. Mostly this is because there is some confusion about
the latest version and I wanted to make sure that there was a clean release. I also change the build files as I discussed in my letter of Nov 6, 2001. At the time I was asked to hold off until after the release.
1 parent ae8a9b8 commit d75ed09

File tree

5 files changed

+34
-13
lines changed

5 files changed

+34
-13
lines changed

src/interfaces/python/Announce

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

2-
Announce: Release of PyGreSQL version 3.2
2+
Announce: Release of PyGreSQL version 3.3
33
=========================================
44

5-
PyGreSQL v3.2 has been released.
5+
PyGreSQL v3.3 has been released.
66
It is available at: ftp://ftp.druid.net/pub/distrib/PyGreSQL.tgz. If
77
you are running NetBSD, look in the packages directory under databases.
88
There is also a package in the FreeBSD ports collection.
@@ -44,6 +44,10 @@ the code to use full ANSI style prototypes and changed the order of
4444
arguments to connect. Later versions are fixes and enhancements to that.
4545
The latest version of PyGreSQL works with Python 1.5.2 and PostgreSQL 7.0.x
4646

47+
Important changes from PyGreSQL 3.2 to PyGreSQL 3.3
48+
- Added NUMERICOID to list of returned types. This fixes a bug when
49+
returning aggregates in the latest version of PostgreSQL.
50+
4751
Important changes from PyGreSQL 3.1 to PyGreSQL 3.2
4852
Note that there are very few changes to PostgreSQL between 3.1 and
4953
3.2. The main reason for the release is the move into the PostgreSQL

src/interfaces/python/ChangeLog

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ This software is copyright (c) 1995, Pascal Andre (andre@via.ecp.fr)
55
Further copyright 1997, 1998 and 1999 by D'Arcy J.M. Cain (darcy@druid.net)
66
See file README for copyright information.
77

8+
Version 3.3
9+
A few cleanups. Mostly there was some confusion about the latest version
10+
and so I am bumping the number to keep it straight.
11+
- Added NUMERICOID to list of returned types. This fixes a bug when
12+
returning aggregates.
13+
814
Version 3.2
915
- Add WIN32 support (gerhard@bigfoot.de)
1016
- Fix some DB-API quoting problems (niall.smart@ebeon.com)
1117
- Moved development into PostgreSQL development tree.
12-
- Added NUMERICOID to list of returned types.
1318

1419
Version 3.1
1520
- Fix some quoting functions. In particular handle NULLs better.

src/interfaces/python/GNUmakefile

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.11 2001/08/24 14:07:50 petere Exp $
1+
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.12 2001/12/03 12:39:44 darcy Exp $
22

33
subdir = src/interfaces/python
44
top_builddir = ../../..
@@ -19,10 +19,23 @@ include $(top_srcdir)/src/Makefile.shlib
1919

2020
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS) $(python_includespec)
2121

22-
all: all-lib
22+
PY_SCRIPTS = pg.py pgdb.py
23+
ifeq ($(with_python_compile), yes)
24+
PY_COMPILED_SCRIPTS = $(PY_SCRIPTS:%.py=%.pyc) $(PY_SCRIPTS:%.py=%.pyo)
25+
else
26+
PY_COMPILED_SCRIPTS =
27+
endif
28+
29+
all: all-lib $(PY_COMPILED_SCRIPTS)
2330

2431
all-lib: libpq-all
2532

33+
%.pyc: %.py
34+
$(PYTHON) -c "import py_compile; py_compile.compile(\"$<\")"
35+
36+
%.pyo: %.py
37+
$(PYTHON) -O -c "import py_compile; py_compile.compile(\"$<\")"
38+
2639
.PHONY: libpq-all
2740
libpq-all:
2841
$(MAKE) -C $(libpq_builddir) all
@@ -38,11 +51,10 @@ install: all installdirs
3851
echo "$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduleexecdir)/_pgmodule$(DLSUFFIX)"; \
3952
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(python_moduleexecdir)/_pgmodule$(DLSUFFIX); \
4053
\
41-
echo "$(INSTALL_DATA) $(srcdir)/pg.py $(DESTDIR)$(python_moduledir)/pg.py"; \
42-
$(INSTALL_DATA) $(srcdir)/pg.py $(DESTDIR)$(python_moduledir)/pg.py; \
43-
\
44-
echo "$(INSTALL_DATA) $(srcdir)/pgdb.py $(DESTDIR)$(python_moduledir)/pgdb.py"; \
45-
$(INSTALL_DATA) $(srcdir)/pgdb.py $(DESTDIR)$(python_moduledir)/pgdb.py; \
54+
for i in $(PY_SCRIPTS) $(PY_COMPILED_SCRIPTS); do \
55+
echo $(INSTALL_DATA) $$i $(python_moduledir); \
56+
$(INSTALL_DATA) $$i $(python_moduledir); \
57+
done \
4658
else \
4759
$(install-warning-msg); \
4860
fi

src/interfaces/python/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

2-
PyGreSQL - v3.2: PostgreSQL module for Python
2+
PyGreSQL - v3.3: PostgreSQL module for Python
33
==============================================
44

55
0. Copyright notice
66
===================
77

8-
PyGreSQL, version 3.2
8+
PyGreSQL, version 3.3
99
A Python interface for PostgreSQL database.
1010
Written by D'Arcy J.M. Cain, darcy@druid.net<BR>
1111
Based heavily on code written by Pascal Andre, andre@chimay.via.ecp.fr.

src/interfaces/python/pgmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <string.h>
3737

3838
static PyObject *PGError;
39-
static const char *PyPgVersion = "3.2";
39+
static const char *PyPgVersion = "3.3";
4040

4141
/* taken from fileobject.c */
4242
#define BUF(v) PyString_AS_STRING((PyStringObject *)(v))

0 commit comments

Comments
 (0)