
from distutils.core import setup

setup(name='redis-dump-load',
    version='0.4.0',
    description='Dump and load redis databases',
    author='Oleg Pudeyev',
    author_email='oleg@bsdpower.com',
    url='http://github.com/p/redis-dump-load',
    py_modules=['redisdl'],
    data_files=['LICENSE', 'README.rst'],
)


import os.path
from distutils.core import setup

package_name = 'redis-dump-load'
package_version = '0.4.0'

doc_dir = os.path.join('share', 'doc', package_name)

data_files = ['LICENSE', 'README.rst']

setup(name=package_name,
    version=package_version,
    description='Dump and load redis databases',
    author='Oleg Pudeyev',
    author_email='oleg@bsdpower.com',
    url='http://github.com/p/redis-dump-load',
    py_modules=['redisdl'],
    data_files=[
        (doc_dir, data_files),
    ],
)

Put data files in doc dir
Put data files in doc dir

  
+ import os.path
  from distutils.core import setup
  
- setup(name='redis-dump-load',
+ package_name = 'redis-dump-load'
-     version='0.4.0',
+ package_version = '0.4.0'
+ 
+ doc_dir = os.path.join('share', 'doc', package_name)
+ 
+ data_files = ['LICENSE', 'README.rst']
+ 
+ setup(name=package_name,
+     version=package_version,
      description='Dump and load redis databases',
      author='Oleg Pudeyev',
      author_email='oleg@bsdpower.com',
      url='http://github.com/p/redis-dump-load',
      py_modules=['redisdl'],
-     data_files=['LICENSE', 'README.rst'],
+     data_files=[
+         (doc_dir, data_files),
+     ],
  )
  
Put data files in doc dir
## Code Before:

from distutils.core import setup

setup(name='redis-dump-load',
    version='0.4.0',
    description='Dump and load redis databases',
    author='Oleg Pudeyev',
    author_email='oleg@bsdpower.com',
    url='http://github.com/p/redis-dump-load',
    py_modules=['redisdl'],
    data_files=['LICENSE', 'README.rst'],
)

## Instruction:
Put data files in doc dir
## Code After:

import os.path
from distutils.core import setup

package_name = 'redis-dump-load'
package_version = '0.4.0'

doc_dir = os.path.join('share', 'doc', package_name)

data_files = ['LICENSE', 'README.rst']

setup(name=package_name,
    version=package_version,
    description='Dump and load redis databases',
    author='Oleg Pudeyev',
    author_email='oleg@bsdpower.com',
    url='http://github.com/p/redis-dump-load',
    py_modules=['redisdl'],
    data_files=[
        (doc_dir, data_files),
    ],
)
