#!/usr/bin/env python
import os
import sys
from setuptools import setup
from setuptools.command.install_lib import install_lib as _install_lib


with open('requirements.txt') as f:
    required = f.read().splitlines()


class install_lib(_install_lib):
    def run(self):
        _install_lib.run(self)
        from django.core.management.commands.compilemessages \
            import Command
        os.chdir("bingo")
        cmd = Command()
        cmd.handle(verbosity=0, exclude=[], locale=[])
        os.chdir("..")

setup(name='django-bingo',
      description='Bingo',
      long_description='Bingo game implemented in django',
      author='Alexander Schier',
      author_email='allo@laxu.de',
      url="https://github.com/allo-/django-bingo",
      version='1.7.0-dev',
      packages=['bingo'],
      package_data={'bingo': ['templates/bingo/*.*',
                              'static/bingo/*.*',
                              'static/bingo/js/*.*',
                              'locale/*/LC_MESSAGES/*.*']},
      scripts=['bingo/bin/django-bingo-serversent.py'],
      include_package_data=True,
      install_requires=required,
      cmdclass={'install_lib': install_lib},
      classifiers=[
          'Framework :: Django',
          'Topic :: Games/Entertainment :: Board Games',
          'License :: OSI Approved :: GNU Affero General Public License v3',
          'Operating System :: OS Independent',
          'Programming Language :: Python'
      ]
      )

#!/usr/bin/env python
import os
import sys
from setuptools import setup
from setuptools.command.install_lib import install_lib as _install_lib


with open('requirements.txt') as f:
    required = f.read().splitlines()


class install_lib(_install_lib):
    def run(self):
        _install_lib.run(self)
        from django.core.management.commands.compilemessages \
            import Command
        os.chdir("bingo")
        cmd = Command()
        cmd.handle(verbosity=0, exclude=[], locale=[])
        os.chdir("..")

setup(name='django-bingo',
      description='Bingo',
      long_description='Bingo game implemented in django',
      author='Alexander Schier',
      author_email='allo@laxu.de',
      url="https://github.com/allo-/django-bingo",
      version='1.7.0-dev',
      packages=['bingo', 'bingo.migrations'],
      package_data={'bingo': ['templates/bingo/*.*',
                              'static/bingo/*.*',
                              'static/bingo/js/*.*',
                              'locale/*/LC_MESSAGES/*.*']},
      scripts=['bingo/bin/django-bingo-serversent.py'],
      include_package_data=True,
      install_requires=required,
      cmdclass={'install_lib': install_lib},
      classifiers=[
          'Framework :: Django',
          'Topic :: Games/Entertainment :: Board Games',
          'License :: OSI Approved :: GNU Affero General Public License v3',
          'Operating System :: OS Independent',
          'Programming Language :: Python'
      ]
      )

add migrations to distributions