Commit graph

102 commits

Author SHA1 Message Date
wiz
8a9cb53cf6 *: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
2022-01-04 20:52:30 +00:00
nia
acde260c8b databases: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes

The following distfiles could not be fetched (some may be only fetched
conditionally):

./databases/cstore/distinfo D6.data.ros.gz
./databases/cstore/distinfo cstore0.2.tar.gz
./databases/cstore/distinfo data4.tar.gz
2021-10-26 10:09:13 +00:00
nia
2946ea15ca databases: Remove SHA1 distfile hashes 2021-10-07 13:35:05 +00:00
david
c7564612bc Update to PyGreSQL version 5.1 (commit on behalf of darcy@) 2019-05-21 19:46:39 +00:00
adam
a713971e85 py-postgresql: updated to 5.0.6
Vesion 5.0.6:
This version officially supports the new Python 3.7.
Correct trove classifier for the PostgreSQL License.
2018-12-10 15:11:14 +00:00
wiz
e8a1d292d4 py-postgresql: update to 5.0.5.
Version 5.0.5 (2018-04-25)
------------------------------
- This version officially supports the new PostgreSQL 10.
- The memory for the string with the number of rows affected by a classic pg
  module query() was already freed (bug report and fix by Peifeng Qiu).

Ok OWNER.
2018-04-29 13:50:52 +00:00
darcy
e7d9bdff96 Version 5.0.4 (2017-07-23)
--------------------------
- This version officially supports the new Python 3.6 and PostgreSQL 9.6.
- query_formatted() can now be used without parameters.
- The automatic renaming of columns that are invalid as field names of
  named tuples now works more accurately in Python 2.6 and 3.0.
- Fixed error checks for unlink() and export() methods of large objects
  (bug report by Justin Pryzby).
- Fixed a compilation issue under OS X (bug report by Josh Johnston).
2017-08-15 12:22:06 +00:00
darcy
02ef7fbb0e Upgrade to 5.0.3.
- It is now possible to use a custom array cast function by changing
  the type caster for the 'anyarray' type.  For instance, by calling
  set_typecast('anyarray', lambda v, c: v) you can have arrays returned
  as strings instead of lists.  Note that in the pg module, you can also
  call set_array(False) in order to return arrays as strings.
- The namedtuple classes used for the rows of query results are now cached
  and reused internally, since creating namedtuples classes in Python is a
  somewhat expensive operation.  By default the cache has a size of 1024
  entries, but this can be changed with the set_row_factory_size() function.
  In certain cases this change can notably improve the performance.
2016-12-11 11:25:52 +00:00
wiz
982c8f22e9 Recursive bump for all users of pgsql now that the default is 95. 2016-10-09 21:41:55 +00:00
wiz
79a53c8f15 Updated py-postgresql to 5.0.2.
Ok from OWNER, darcy.

Version 5.0.2 (2016-09-08)
--------------------------
- Fixed an infinite recursion problem in the DB wrapper class of the classic
  module that could occur when the underlying connection could not be properly
  opened (bug report by Justin Pryzby).

Version 5.0.1 (2016-08-18)
--------------------------
- The update() and delete() methods of the DB wrapper now use the OID instead
  of the primary key if both are provided. This restores backward compatibility
  with PyGreSQL 4.x and allows updating the primary key itself if an OID exists.
- The connect() function of the DB API 2.0 module now accepts additional keyword
  parameters such as "application_name" which will be passed on to PostgreSQL.
- PyGreSQL now adapts some queries to be able to access older PostgreSQL 8.x
  databases (as suggested on the mailing list by Andres Mejia). However, these
  old versions of PostgreSQL are not officially supported and tested any more.
- Fixed an issue with Postgres types that have an OID >= 0x80000000 (reported
  on the mailing list by Justin Pryzby).
- Allow extra values that are not used in the command in the parameter dict
  passed to the query_formatted() method (as suggested by Justin Pryzby).
- Improved handling of empty arrays in the classic module.
- Unused classic connections were not properly garbage collected which could
  cause memory leaks (reported by Justin Pryzby).
- Made C extension compatible with MSVC 9 again (this was needed to compile for
  Python 2 on Windows).
2016-09-13 23:59:37 +00:00
wiz
dd26381b33 Set DIST_SUBDIR.
The previous commit replaced the distfile with a new one with the same
name. In pkgsrc, we have rules for that; apply them.
2016-03-23 21:51:25 +00:00
darcy
69e93a32bc The distribution had the wrong tar file. Fixed checksums for correct one.
Bumped PKGREVISION in case anyone already built the wrong one.
2016-03-23 16:30:12 +00:00
darcy
07a3c746fd Release 5.0 of PyGreSQL.
The biggest change here is Python 3.x compatibility.  Other changes are too
numerous to list.  See http://www.pygresql.org/ for all the changes.
2016-03-20 22:01:22 +00:00
darcy
0084da757b Upgrade to 4.2.1.
Minor documentation and installation fixes.
2016-02-18 18:38:38 +00:00
richard
34485b09d9 update dist checksum for py-postgresql 2016-01-24 07:35:04 +00:00
darcy
e8e1971bd1 Documentation is via the web. 2016-01-22 19:57:05 +00:00
darcy
ffe0fb5c21 The distribution file was listed incorrectly. This is the correct one. 2016-01-22 19:53:59 +00:00
darcy
9eb6c74f31 Update to version 4.2.
This is the last version before adding support for Python 3.x.  Only bug
fixes will be added to this branch.  From the changelog:

Version 4.2
-----------
- The supported Python versions are 2.4 to 2.7.
- PostgreSQL is supported in all versions from 8.3 to 9.5.
- Set a better default for the user option "escaping-funcs".
- Force build to compile with no errors.
- New methods get_parameters() and set_parameters() in the classic interface
  which can be used to get or set run-time parameters.
- New method truncate() in the classic interface that can be used to quickly
  empty a table or a set of tables.
- Fix decimal point handling.
- Add option to return boolean values as bool objects.
- Add option to return money values as string.
- get_tables() does not list information schema tables any more.
- Fix notification handler (Thanks Patrick TJ McPhee).
- Fix a small issue with large objects.
- Minor improvements in the NotificationHandler.
- Converted documentation to Sphinx and added many missing parts.
- The tutorial files have become a chapter in the documentation.
- Greatly improved unit testing, tests run with Python 2.4 to 2.7 again.
2016-01-21 22:17:55 +00:00
adam
7f3b4730ad Extend PYTHON_VERSIONS_INCOMPATIBLE to 35 2015-12-05 21:25:27 +00:00
agc
d549bff9a5 Add SHA512 digests for distfiles for databases category
Problems found with existing distfiles:
	distfiles/D6.data.ros.gz
	distfiles/cstore0.2.tar.gz
	distfiles/data4.tar.gz
	distfiles/sphinx-2.2.7-release.tar.gz
No changes made to the cstore or mariadb55-client distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 01:56:09 +00:00
wiz
c1b44346cd Mark packages that are not ready for python-3.3 also not ready for 3.4,
until proven otherwise.
2014-05-09 07:36:53 +00:00
darcy
f8ce40aa7a Allow PyGreSQL to work with PostgreSQL < 9.0.
PR: pkg/48567
2014-03-05 11:14:00 +00:00
wiz
aa67e11089 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:29:56 +00:00
darcy
8107bdbe4b Upgrade to version 4.1.1
Mainly a bug fix.  Also adds a preplacement for the functionality of
databases/py-pgnotify which no longer works with new versions of
PyGreSQL and PostgreSQL.
2013-01-08 15:09:59 +00:00
darcy
4815ea112d Fix hard coded PLIST entries. Thanks Ryo ONODERA. 2013-01-03 16:56:22 +00:00
darcy
565f5e0f9c Upgrade to version 4.1.
Changes since 4.0:
- Dropped support for Python below 2.5 and PostgreSQL below 8.3.
- Added support for Python up to 2.7 and PostgreSQL up to 9.2.
- Particularly, support PQescapeLiteral() and PQescapeIdentifier().
- The query method of the classic API now supports positional parameters.
  This an effective way to pass arbitrary or unknown data without worrying
  about SQL injection or syntax errors (contribution by Patrick TJ McPhee).
- The classic API now supports a method namedresult() in addition to
  getresult() and dictresult(), which returns the rows of the result
  as named tuples if these are supported (Python 2.6 or higher).
- The classic API has got the new methods begin(), commit(), rollback(),
  savepoint() and release() for handling transactions.
- Both classic and DBAPI 2 connections can now be used as context
  managers for encapsulating transactions.
- The execute() and executemany() methods now return the cursor object,
  so you can now write statements like "for row in cursor.execute(...)"
  (as suggested by Adam Frederick).
- Binary objects are now automatically escaped and unescaped.
- Bug in money quoting fixed.  Amounts of $0.00 handled correctly.
- Proper handling of date and time objects as input.
- Proper handling of floats with 'nan' or 'inf' values as input.
- Fixed the set_decimal() function.
- All DatabaseError instances now have a sqlstate attribute.
- The getnotify() method can now also return payload strings (#15).
- Better support for notice processing with the new methods
  set_notice_receiver() and get_notice_receiver()
  (as suggested by Michael Filonenko, see #12 and #37).
- Open transactions are rolled back when pgdb connections are closed
  (as suggested by Peter Harris, see #46).
- Connections and cursors can now be used with the "with" statement
  (as suggested by Peter Harris, see #46).
- New method use_regtypes() that can be called to let getattnames()
  return regular type names instead of the simplified classic types (#44).
2013-01-03 13:58:35 +00:00
asau
354ee694fd Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-02 21:25:15 +00:00
obache
ab4e71d90b Bump PKGREVISION for change of PostgreSQL default version to 9.1. 2012-08-05 10:02:09 +00:00
wiz
8065ce3782 Replace python interpreter in two files. Bump PKGREVISION. 2012-06-09 09:41:05 +00:00
wiz
aada88e659 Remove python24 and all traces of it from pkgsrc.
Remove devel/py-ctypes (only needed by and supporting python24).
Remove PYTHON_VERSIONS_ACCEPTED and PYTHON_VERSIONS_INCOMPATIBLE
lines that just mirror defaults now.
Miscellaneous cleanup while editing all these files.
2012-04-08 19:08:44 +00:00
darcy
1d31df92ae Location of distribution file has changed. 2012-02-24 02:19:05 +00:00
joerg
6d9fef8314 Remove Python 2.3 from the list of supported versions 2011-09-29 12:53:58 +00:00
darcy
709294fa54 PyGreSQL doesn't work on Python 3 yet. 2011-08-27 22:06:31 +00:00
joerg
3b5d2041bb Bump revision for change of PostgreSQL default version. 2010-02-10 19:34:05 +00:00
joerg
e0d4ecdfc2 Retire Python 2.3 support. 2009-09-07 19:02:13 +00:00
joerg
0268c554bd Remove @dirrm entries from PLISTs 2009-06-14 17:38:38 +00:00
darcy
32a689f153 Change MAINTAINER to OWNER on some of my packages. 2009-03-18 18:37:59 +00:00
joerg
25a80fb4ab Remove PYBINMODULE. All it did was mark some packages as not available
on some platforms that lacked shared library support in the past. The
list hasn't been maintained at all and the gain is very limited, so just
get rid of it.
2009-03-05 18:51:26 +00:00
darcy
02ff57e902 Upgrade to 4.0. This is a major release and may risk some backwards
incompatibilities.  Here are the major changes.

- Dropped support for Python below 2.3 and PostgreSQL below 7.4.
- Improved performance of fetchall() for large result sets
  by speeding up the type casts (as suggested by Peter Schuller).
- Exposed exceptions as attributes of the connection object.
- Exposed connection as attribute of the cursor object.
- Cursors now support the iteration protocol.
- Added new method to get parameter settings.
- Added customizable row_factory as suggested by Simon Pamies.
- Separated between mandatory and additional type objects.
- Added keyword args to insert, update and delete methods.
- Added exception handling for direct copy.
- Release the GIL while making a connection
  (as suggested by Peter Schuller).
- If available, use decimal.Decimal for numeric types.
- Allow DB wrapper to be used with DB-API 2 connections
  (as suggested by Chris Hilton).
- Made private attributes of DB wrapper accessible.
- Dropped dependence on mx.DateTime module.
- Support for PQescapeStringConn() and PQescapeByteaConn();
  these are now also used by the internal _quote() functions.
- Added 'int8' to INTEGER types. New SMALLINT type.
- Added a way to find the number of rows affected by a query()
  with the classic pg module by returning it as a string.
  For single inserts, query() still returns the oid as an integer.
  The pgdb module already provides the "rowcount" cursor attribute
  for the same purpose.
- Improved getnotify() by calling PQconsumeInput() instead of
  submitting an empty command.
- Removed compatibility code for old OID munging style.
- The insert() and update() methods now use the "returning" clause
  if possible to get all changed values, and they also check in advance
  whether a subsequent select is possible, so that ongoing transactions
  won't break if there is no select privilege.
- Added "protocol_version" and "server_version" attributes.
- Revived the "user" attribute.
- The pg module now works correctly with composite primary keys;
  these are represented as frozensets.
- Removed the undocumented and actually unnecessary "view" parameter
  from the get() method.
- get() raises a nicer ProgrammingError instead of a KeyError
  if no primary key was found.
- delete() now also works based on the primary key if no oid available
  and returns whether the row existed or not.
2009-01-01 13:21:44 +00:00
joerg
ba171a91fa Add DESTDIR support. 2008-06-12 02:14:13 +00:00
joerg
a77e7015fe Update PYTHON_VERSIONS_COMPATIBLE
- assume that Python 2.4 and 2.5 are compatible and allow checking for
fallout.
- remove PYTHON_VERSIONS_COMPATIBLE that are obsoleted by the 2.3+
default. Modify the others to deal with the removals.
2008-04-25 20:39:06 +00:00
joerg
2a7055907f Make PostgreSQL 8.2 the default version. Bump all packages using it.
Remove PostgreSQL 8.0 as choice.
2008-03-13 17:38:48 +00:00
joerg
331e2615fa Change PostgreSQL default version to 8.1 and bump revision of all
packages which have it active by default.
2006-12-28 12:12:57 +00:00
obache
e896edb7fe Rename variable MAKEFILE to MAKE_FILE. 2006-09-09 02:41:53 +00:00
rillig
9c8533ec5a Fixed pkglint warnings. 2006-06-16 10:58:23 +00:00
darcy
ac0e8c908d Update package to 3.8.1.
Mostly bug fixes from 3.8.

- Use string methods instead of deprecated string functions.
- Only use SQL-standard way of escaping quotes.
- Added the functions escape_string() and escape/unescape_bytea()
  (as suggested by Charlie Dyson and Kavous Bojnourdi a long time ago).
- Reverted code in clear() method that set date to current.
- Added code for backwards compatibility in OID munging code.
- Reorder attnames tests so that "interval" is checked for before "int."
- If caller supplies key dictionary, make sure that all has a namespace.
2006-06-11 00:58:39 +00:00
joerg
de916195b9 Needs Python 2.2+ 2006-06-07 12:54:55 +00:00
darcy
20ab768aaa Update to version 3.8.
- Installed new favicon.ico from Matthew Sporleder <mspo@mspo.com>
- Replaced snprintf by PyOS_snprintf.
- Removed NO_SNPRINTF switch which is not needed any longer
- Clean up some variable names and namespace
- Add get_relations() method to get any type of relation
- Rewrite get_tables() to use get_relations()
- Use new method in get_attnames method to get attributes of views as well
- Add Binary type
- Number of rows is now -1 after executing no-result statements
- Fix some number handling
- Non-simple types do not raise an error any more
- Improvements to documentation framework
- Take into account that nowadays not every table must have an oid column
- Simplification and improvement of the inserttable() function
- Fix up unit tests
- The usual assortment of minor fixes and enhancements
2006-02-17 17:58:02 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00