title: setup.py packages and unicode_literals
body: <p>I've created a package in Py2.7 and I'm trying to make it compatible with Py3.
  The problem is that if I include unicode_literals in</p>
  
  <pre><code>__init__.py
  </code></pre>
  
  <p>imports the build returns this error</p>
  
  <pre><code>error in daysgrounded setup command: package_data must be a dictionary mapping
  package names to lists of wildcard patterns
  </code></pre>
  
  <p>I've read the PEP, but I can't understand what it has to do with a dict like</p>
  
  <pre><code>__pkgdata__
  </code></pre>
  
  <p>can anyone help?</p>
  
  <pre><code>__init__.py
  #!/usr/bin/env python
  # -*- coding: latin-1 -*-
  
  """Manage child(s) grounded days."""
  
  from __future__ import (absolute_import, division, print_function,
                          unicode_literals)
  # ToDo: correct why the above unicode_literals import prevents setup.py from working
  
  import sys
  from os import path
  sys.path.insert(1, path.dirname(__file__))
  
  __all__ = ['__title__', '__version__',
             '__desc__', '__license__', '__url__',
             '__author__', '__email__',
             '__copyright__',
             '__keywords__', '__classifiers__',
             #'__packages__',
             '__entrypoints__', '__pkgdata__']
  
  __title__ = 'daysgrounded'
  __version__ = '0.0.9'
  
  __desc__ = __doc__.strip()
  __license__ = 'GNU General Public License v2 or later (GPLv2+)'
  __url__ = 'https://github.com/jcrmatos/DaysGrounded'
  
  __author__ = 'Joao Matos'
  __email__ = 'jcrmatos@gmail.com'
  
  __copyright__ = 'Copyright 2014 Joao Matos'
  
  __keywords__ = 'days grounded'
  __classifiers__ = [# Use below to prevent any unwanted publishing
                     #'Private :: Do Not Upload'
                     'Development Status :: 4 - Beta',
                     'Environment :: Console',
                     'Environment :: Win32 (MS Windows)',
                     'Intended Audience :: End Users/Desktop',
                     'Intended Audience :: Developers',
                     'Natural Language :: English',
                     'Natural Language :: Portuguese',
                     'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
                     'Operating System :: OS Independent',
                     'Programming Language :: Python',
                     'Programming Language :: Python :: 2.7',
                     'Programming Language :: Python :: 3.4',
                     'Topic :: Other/Nonlisted Topic']
  
  #__packages__ = ['daysgrounded']
  
  __entrypoints__ = {
      'console_scripts': ['daysgrounded = daysgrounded.__main__:main'],
      #'gui_scripts': ['app_gui = daysgrounded.daysgrounded:start']
      }
  
  __pkgdata__ = {'daysgrounded': ['*.txt']}
  #__pkgdata__= {'': ['*.txt'], 'daysgrounded': ['*.txt']}
  
  
  setup.py
  #!/usr/bin/env python
  # -*- coding: latin-1 -*-
  
  from __future__ import (absolute_import, division, print_function,
                          unicode_literals)
  
  from setuptools import setup, find_packages
  #import py2exe
  
  #from daysgrounded import *
  from daysgrounded import (__title__, __version__,
                            __desc__, __license__, __url__,
                            __author__, __email__,
                            __keywords__, __classifiers__,
                            #__packages__,
                            __entrypoints__, __pkgdata__)
  
  setup(
      name=__title__,
      version=__version__,
  
      description=__desc__,
      long_description=open('README.txt').read(),
      #long_description=(read('README.txt') + '\n\n' +
      #                  read('CHANGES.txt') + '\n\n' +
      #                  read('AUTHORS.txt')),
      license=__license__,
      url=__url__,
  
      author=__author__,
      author_email=__email__,
  
      keywords=__keywords__,
      classifiers=__classifiers__,
  
      packages=find_packages(exclude=['tests*']),
      #packages=__packages__,
  
      entry_points=__entrypoints__,
      install_requires=open('requirements.txt').read(),
      #install_requires=open('requirements.txt').read().splitlines(),
  
      include_package_data=True,
      package_data=__pkgdata__,
  
      #console=['daysgrounded\\__main__.py']
  )
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>JM</p>