Commits

illume committed caf16ab

newsletterapp files to not copy over .py files and to create db dir.
incremented version for release

Comments (0)

Files changed (3)

 newsletter changelog
 ====================
 
+
+0.1.16pre (2011-09-1)
+
+Bugs fixed
+~~~~~~~~~~
+
+* installation fixes.
+* newsletterapp checks database directory exists and gives error message if it does not.
+* newsletterapp --newinstall does not copy in .py files to install directory.
+* newsletterapp --newinstall creates database directory by default.
+
+
+
 0.1.15pre (2011-09-1)
 
 Bugs fixed

newsletter/newsletterapp/newsletterapp.py

     sys.path.append(os.path.join("..", ".."))
     import newsletter.newsletterapp
     
+    # do not copy in .py files.
+    def ignorepy(src, names):
+        return [n for n in names if (n.endswith("py") or n.endswith("pyc"))]
+
     src_dir =  os.path.split(os.path.abspath(newsletter.newsletterapp.__file__))[0]
     
     
     #print (src_dir, dst_directory)
-    shutil.copytree(src_dir, dst_directory)
+    shutil.copytree(src_dir, dst_directory, ignore=ignorepy)
 
     # create the log directory if it doesn't exist.
     log_dir = os.path.join(dst_directory, "log")
     if not os.path.exists(log_dir):
         os.mkdir(log_dir)
     
+    db_dir = os.path.join(dst_directory, "db")
+    if not os.path.exists(db_dir):
+        os.mkdir(db_dir)
+
+
     # update the config file to show the dst directory.
     
 
 
 METADATA = {
     'name':             'newsletter',
-    'version':          '0.1.15pre',
+    'version':          '0.1.16pre',
     'license':          'LGPL',
     'url':              'https://bitbucket.org/illume/newsletter',
     'author':           'Rene Dudfield',
     'author_email':     'renesd@gmail.com',
-    'description':      'alpha newsletter software for #python. CHANGES: install instructions, install fixes, doc updates',
+    'description':      'alpha newsletter software for #python. CHANGES: newsletterapp usability improvements',
     'long_description': long_description,
     'classifiers':      [
             'Development Status :: 3 - Alpha',