Commit graph

37 commits

Author SHA1 Message Date
adam
1ab43a036f Massive revbump after updating graphics/ilmbase, graphics/openexr, textproc/icu. 2013-05-09 07:39:04 +00:00
gdt
be5306b185 Add explanations to DESCR for sqlite packages because it is quite
boggling that, e.g., py-sqlite2 is a wrapper for sqlite3.
2013-02-21 15:14:45 +00:00
adam
f4c3b89da7 Revbump after graphics/jpeg and textproc/icu 2013-01-26 21:36:13 +00:00
asau
354ee694fd Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-02 21:25:15 +00:00
obache
a6d5ad9edc Recursive bump from icu shlib major bumped to 49. 2012-04-27 12:31:32 +00:00
wiz
6dc4abe4b7 Reset maintainer, developer has left the building 2012-04-15 22:00:58 +00:00
obache
bdaafb17c0 python24 had been removed, no need to take care about it anymore. 2012-04-09 09:24:01 +00:00
wiz
c595076396 All supported python versions in pkgsrc support eggs, so remove
${PLIST.eggfile} from PLISTs and support code from lang/python.
2012-04-08 20:21:41 +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
obache
f90a6ecd95 conditional EGG_FILE installation, fixes for python24. 2011-09-29 08:35:18 +00:00
obache
9572f6d892 recursive bump from textproc/icu shlib major bump. 2011-06-10 09:39:41 +00:00
adam
9e5760b6c5 Changes 2.6.3:
Bug fixes.
2011-05-16 13:43:07 +00:00
gdt
1da3e8fcd7 Use distutils.mk instead of extension.mk, so that egg file is installed. 2011-01-27 16:49:32 +00:00
obache
9d1522530c back conditional PLIST for python<2.5, it was lost at updated to 2.6.0. 2010-10-02 06:11:03 +00:00
adam
3d82d498eb Changes 2.6.0:
No release notes available.
2010-09-16 11:31:16 +00:00
drochner
9c0803a621 update to 2.5.5
changes: many bugfixes and compatibility fixes

The 2.5.0 version in pkgsrc was broken:
>>> from pysqlite2 import dbapi2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/pkg/lib/python2.5/site-packages/pysqlite2/dbapi2.py", line 27, in <module>
from pysqlite2._sqlite import *
ImportError: /usr/pkg/lib/python2.5/site-packages/pysqlite2/_sqlite.so: Undefined PLT symbol "sqlite3_enable_load_extension" (symnum = 158)
2009-07-09 19:02:58 +00:00
joerg
0268c554bd Remove @dirrm entries from PLISTs 2009-06-14 17:38:38 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
wiz
532151230c Update to 2.5.0a:
Mostly documentation changes.
2008-11-10 22:36:49 +00:00
obache
f32e20da11 The self test put testdb on current directory, cd ${WRKDIR} first. 2008-09-21 09:24:52 +00:00
wiz
f7408464c8 Fix typo. 2008-09-10 12:40:58 +00:00
joerg
0fda7b3dd9 Be slightly more defensive in case an unsupported Python version is
requested.
2008-09-10 11:33:01 +00:00
joerg
22ca0ff1bf Don't try to build and install the Python 2.5+ tests on 2.3 and 2.4 to
unbreak PLIST for those versions. Bump revision.
2008-09-10 10:47:31 +00:00
wiz
92208d78bf Found a new homepage, and an even newer version, including changelogs:
2.5.0:
- Windows binaries are now cross-built using mingw on Linux
- import various fixes from Python 2.6 version
- Connection has new method iterdump() that allows you to create a script file
  that can be used to clone a database
- the docs are now built using Sphinx and were imported from Python 2.6's
  sqlite3 module
- Connection.enable_load_extension(enabled) to allow/disallow extension
  loading. Allows you to use fulltext search extension, for example ;-)
- Give the remaining C functions used in multiple .c source files the pysqlite_
  prefix.
- Release GIL during sqlite3_prepare() calls for better concurrency.
- Automatically download the SQLite amalgamation when building statically.

2.4.1:
- Made unicode strings for the database parameter in connect() work again
- Removed bad defaults from setup.cfg

2.4.0:
- Implemented context managers. pysqlite's connections can now be used as
  context managers with Python 2.5 or later:

        from __future__ import with_statement
        from pysqlite2 import dbapi2 as sqlite

        con = sqlite.connect(":memory:")
        con.execute("create table person (id integer primary key, firstname varchar unique)")

        # Successful, con.commit() is called automatically afterwards
        with con:
            con.execute("insert into person(firstname) values (?)", ("Joe",))

        # con.rollback() is called after the with block finishes with an exception, the
        # exception is still raised and must be catched
        try:
            with con:
                con.execute("insert into person(firstname) values (?)", ("Joe",))
        except sqlite.IntegrityError:
            print "couldn't add Joe twice"

- pysqlite connections can now be created from APSW connections. This enables
  users to use APSW functionality in applications using the DB-API from
  pysqlite:

        from pysqlite2 import dbapi2 as sqlite
        import apsw

        apsw_con = apsw.Connection(":memory:")
        apsw_con.createscalarfunction("times_two", lambda x: 2*x, 1)

        # Create pysqlite connection from APSW connection
        con = sqlite.connect(apsw_con)
        result = con.execute("select times_two(15)").fetchone()[0]
        assert result == 30
        con.close()

  Caveat: This will only work if both pysqlite and APSW are dynamically
  linked against the same SQLite shared library. Otherwise you will
  experience a segfault.

- Fixed shuffled docstrings for fetchXXX methods.

- Workaround for SQLite 3.5.x versions which apparently return NULL for
  "no-operation" statements.

- Disable the test for rollback detection on old SQLite versions. This prevents
  test failures on systems that ship outdated SQLite libraries like MacOS X.

- Implemented set_progress_handler for progress callbacks from SQLite. This is
  particularly useful to update GUIs during long-running queries.  Thanks to
  exarkun for the original patch.
2008-09-06 16:12:44 +00:00
wiz
279a309d61 Update to 2.4.1, changes undocumented. 2008-09-06 16:03:09 +00:00
ghen
a5b4e85890 Fix typo. 2008-09-05 15:18:28 +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
abs
e346e4ec0a Switch from PYTHON_VERSIONS_ACCEPTED= to PYTHON_VERSIONS_INCOMPATIBLE= (and enable 25) 2008-04-11 15:27:22 +00:00
rillig
dfccb7888c The self-test requires the package to be installed, and this is not the
case with the standard do-test target.
2007-11-19 23:10:18 +00:00
drochner
e44754831d update to 2.3.5
changes:
-pysqlite is now easy_install-able
-misc bugfixes
-Allow the size parameter for fetchmany() for better DB-API compliance
-Allow a static build of pysqlite using the SQLite amalgamation
-improve concurrency
-Using mappings and sequences as parameters works now
-Performance optimizations
2007-08-13 17:37:58 +00:00
wiz
78bb72f5d9 Update to 2.3.3:
- self->statement was not checked while fetching data, which could
  lead to crashes if you used the pysqlite API in unusual ways.
  Closing the cursor and continuing to fetch data was enough.

- Converters are stored in a converters dictionary. The converter name
  is uppercased first. The old upper-casing algorithm was wrong and
  was replaced by a simple call to the Python string's upper() method
  instead.

- Applied patch by Glyph Lefkowitz that fixes the problem with
  subsequent SQLITE_SCHEMA errors.

- Improvement to the row type: rows can now be iterated over and have a keys()
  method. This improves compatibility with both tuple and dict a lot.

- A bugfix for the subsecond resolution in timestamps.

- Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are
  checked for. Now they work as documented.

- gcc on Linux sucks. It exports all symbols by default in shared
  libraries, so if symbols are not unique it can lead to problems with
  symbol lookup.  pysqlite used to crash under Apache when mod_cache
  was enabled because both modules had the symbol cache_init. I fixed
  this by applying the prefix pysqlite_ almost everywhere. Sigh.
2007-01-20 17:28:37 +00:00
joerg
358c0ce1ab Needs Python 2.3+ 2007-01-13 00:47:56 +00:00
drochner
4d0a440d83 add a "test" target again 2007-01-11 19:03:37 +00:00
drochner
cc51ebe5ad update to 2.3.2
This is a major update (since 2.0.7), involving an API rework

add a bl3 file
2007-01-10 10:39:18 +00:00
joerg
809fa1f13f Follow py-setuptools move. 2006-11-14 13:39:17 +00:00
drochner
a35e788c97 import pysqlite-2.0.7, an (incompatible) redesign of pysqlite 2006-03-14 20:17:59 +00:00