1. Ferran Pegueroles
  2. loadcsv

Commits

Ferran Pegueroles  committed 5a63684 Draft Merge

Merge version 0.4

  • Participants
  • Parent commits aab08d2, f40426e
  • Branches default
  • Tags 0.4

Comments (0)

Files changed (3)

File .hgtags

File contents unchanged.

File loadcsv.py

View file
 import itertools
 from StringIO import StringIO
 
+__version__ = '0.4'
 
 def conn_mysql(attrs):
     """ Connection for mysql database """
     usage = "usage: %prog [options] filename.csv\n" + \
             "If no database provided, display SQL to stdout"
 
-    parser = OptionParser(usage=usage)
+    parser = OptionParser(usage=usage, version=__version__)
 
     parser.add_option("-D", "--driver", dest="driver",
          help="database driver [%s]" % ",".join(DRIVERS))

File setup.py

View file
    Setup script for loadcsv.
 """
 #from distutils.core import setup
-from setuptools import setup, find_packages
+from setuptools import setup
 import os
+import loadcsv
 README = os.path.join(os.path.dirname(__file__), 'README.txt')
 
 LONG_DESCRIPTION = open(README).read() + '\n\n'
 
 setup(name='loadcsv',
-      version='0.3',
+      version=loadcsv.__version__,
       author='Ferran Pegueroles Forcadell',
       author_email='ferran@pegueroles.com',
       description='Load a csv file into a database',