import os
from distutils.core import setup
from setuptools import find_packages

__version__ = '0.0.1.dev'

package = 'dynamite'

version = __version__
packages = find_packages()

def get_package_data(package):
    """
    Return all files under the root package, that are not in a
    package themselves.
    """
    walk = [(dirpath.replace(package + os.sep, '', 1), filenames)
            for dirpath, dirnames, filenames in os.walk(package)
            if not os.path.exists(os.path.join(dirpath, '__init__.py'))]

    filepaths = []
    for base, filenames in walk:
        filepaths.extend([os.path.join(base, filename)
                          for filename in filenames])
    return {package: filepaths}

setup(
    name=package,
    version=version,
    packages=packages,
    package_data=get_package_data(package),
    license='MIT',
    author='viatoriche',
    author_email='maxim@via-net.org',
    description='Dynamite ORM',
    url='https://github.com/viatoriche/dynamite',
    download_url='https://github.com/viatoriche/dynamite/tarball/{}'.format(version),
    install_requires=['boto3'],
)

import os
from distutils.core import setup
from setuptools import find_packages

__version__ = '0.0.2.dev'

package = 'dynamite'

version = __version__
packages = find_packages()

def get_package_data(package):
    """
    Return all files under the root package, that are not in a
    package themselves.
    """
    walk = [(dirpath.replace(package + os.sep, '', 1), filenames)
            for dirpath, dirnames, filenames in os.walk(package)
            if not os.path.exists(os.path.join(dirpath, '__init__.py'))]

    filepaths = []
    for base, filenames in walk:
        filepaths.extend([os.path.join(base, filename)
                          for filename in filenames])
    return {package: filepaths}

setup(
    name=package,
    version=version,
    packages=packages,
    package_data=get_package_data(package),
    license='MIT',
    author='viatoriche',
    author_email='maxim@via-net.org',
    description='Dynamite ORM',
    url='https://github.com/viatoriche/dynamite',
    download_url='https://github.com/viatoriche/dynamite/tarball/{}'.format(version),
    install_requires=['boto3'],
)

bump version