/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/version.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/version.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2088 by bh, Wed Feb 25 10:33:24 2004 UTC revision 2729 by bernhard, Tue Feb 20 10:52:38 2007 UTC
# Line 27  __version__ = "$Revision$" Line 27  __version__ = "$Revision$"
27  # E.g. given  # E.g. given
28  #  #
29  #  thuban_branch = "1.1"  #  thuban_branch = "1.1"
30  #  thuban_release = "cvs"  #  thuban_release = "svn"
31  #  #
32  # the version string will be "Thuban 1.1 cvs 2004-02-24" (obviously the  # the version string will be "Thuban 1.1 svn-20040224" (obviously the
33  # actual date might differ :) ).  OTOH, given  # actual date might differ :) ).  OTOH, given
34  #  #
35  #  thuban_branch = "1.0"  #  thuban_branch = "1.0"
# Line 38  __version__ = "$Revision$" Line 38  __version__ = "$Revision$"
38  # the version string will be "Thuban 1.0.1"  # the version string will be "Thuban 1.0.1"
39  #  #
40    
41  thuban_branch = "1.1"  thuban_branch = "1.2"
42  thuban_release = "cvs"  thuban_release = "0"
43    
44    
45    
# Line 91  def get_changelog_date(): Line 91  def get_changelog_date():
91    
92  versions = {}  versions = {}
93    
94  if thuban_release == "cvs":  if thuban_release == "svn":
95      version = '%s %s-%s' % (thuban_branch, thuban_release, get_date('%Y%m%d'))      version = '%s %s-%s' % (thuban_branch, thuban_release, get_date('%Y%m%d'))
96      longversion = '%s\n%s' % (version, get_changelog_date())      longversion = '%s\n%s' % (version, get_changelog_date())
97  else:  else:
# Line 102  versions['thuban'] = version Line 102  versions['thuban'] = version
102  versions['thuban-long'] = longversion  versions['thuban-long'] = longversion
103    
104  # wxPython  # wxPython
105  from wxPython.wx import __version__ as wxPython_version  
106    from wx import __version__ as wxPython_version
107  versions['wxPython'] = wxPython_version  versions['wxPython'] = wxPython_version
108  versions['wxPython-tuple'] = make_tuple(wxPython_version)  versions['wxPython-tuple'] = make_tuple(wxPython_version)
109    
# Line 111  versions['python'] = "%d.%d.%d" % sys.ve Line 112  versions['python'] = "%d.%d.%d" % sys.ve
112  versions['python-tuple'] = sys.version_info[:3]  versions['python-tuple'] = sys.version_info[:3]
113    
114  # PySQLite  # PySQLite
115  from sqlite import version as pysqlite_version  try:
116  versions['pysqlite'] = pysqlite_version      from pysqlite2 import dbapi2 as sqlite
117  versions['pysqlite-tuple'] = make_tuple(pysqlite_version)  except ImportError:
118        import sqlite
119    versions['pysqlite'] = sqlite.version
120    versions['pysqlite-tuple'] = make_tuple(sqlite.version)
121    
122  # SQLite  # SQLite
123  from _sqlite import sqlite_version  try:
124  versions['sqlite'] = sqlite_version()      from pysqlite2._sqlite import sqlite_version
125  versions['sqlite-tuple'] = make_tuple(sqlite_version())      versions['sqlite'] = sqlite_version
126        versions['sqlite-tuple'] = make_tuple(sqlite_version)
127    except ImportError:
128        from _sqlite import sqlite_version
129        versions['sqlite'] = sqlite_version()
130        versions['sqlite-tuple'] = make_tuple(sqlite_version())
131    
132  # GDAL  # GDAL
133  from  Thuban.Model.resource import has_gdal_support  from  Thuban.Model.resource import has_gdal_support

Legend:
Removed from v.2088  
changed lines
  Added in v.2729

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26