import os
from setuptools import setup, find_packages

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

install_requires = [
    'setuptools',
    'pycrypto'
]

try:
    from collections import OrderedDict
except ImportError:
    install_requires.append('ordereddict')

setup(
    name = 'django-cuddlybuddly-storage-s3',
    version = '3.2',
    license = 'BSD',
    description = 'Updated Amazon S3 storage from django-storages. Adds more ' \
                  'fixes than I can remember, a metadata cache system and ' \
                  'some extra utilities for dealing with MEDIA_URL and HTTPS, ' \
                  'CloudFront and for creating signed URLs.',
    long_description = read('README.rst'),
    author = 'Kyle MacFarlane',
    author_email = 'kyle@deletethetrees.com',

    package_dir = {'': 'src'},
    packages = find_packages('src'),
    namespace_packages = ['cuddlybuddly'],
    include_package_data = True,
    zip_safe = False,

    install_requires = install_requires,

    classifiers = [
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP'
    ],
)

import os
from setuptools import setup, find_packages

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

install_requires = [
    'setuptools',
    'pycryptodome'
]

try:
    from collections import OrderedDict
except ImportError:
    install_requires.append('ordereddict')

setup(
    name = 'django-cuddlybuddly-storage-s3',
    version = '3.3',
    license = 'BSD',
    description = 'Updated Amazon S3 storage from django-storages. Adds more ' \
                  'fixes than I can remember, a metadata cache system and ' \
                  'some extra utilities for dealing with MEDIA_URL and HTTPS, ' \
                  'CloudFront and for creating signed URLs.',
    long_description = read('README.rst'),
    author = 'Kyle MacFarlane',
    author_email = 'kyle@deletethetrees.com',

    package_dir = {'': 'src'},
    packages = find_packages('src'),
    namespace_packages = ['cuddlybuddly'],
    include_package_data = True,
    zip_safe = False,

    install_requires = install_requires,

    classifiers = [
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP'
    ],
)

Swap pycrypto for pycryptodome