1. Zeit Code
  2. Untitled project
  3. django-resizer


django-resizer / setup.py

megaman821 59452b4 

megaman821 4cf0cd8 
megaman821 59452b4 

megaman821 4cf0cd8 
megaman821 59452b4 

import os
    from setuptools import setup, find_packages
except ImportError:
    from distutils.core import setup, find_packages

def read_file(filename):
    """Read a file into a string"""
    path = os.path.abspath(os.path.dirname(__file__))
    filepath = os.path.join(path, filename)
        return open(filepath).read()
    except IOError:
        return ''

def get_readme():
    """Return the README file contents. Supports text,rst, and markdown"""
    for name in ('README', 'README.rst', 'README.md'):
        if os.path.exists(name):
            return read_file(name)
    return ''

    name = 'django-resizer',
    version = __import__('resizer').get_version().replace(' ', '-'),
    url = 'https://bitbucket.org/nextscreenlabs/django-resizer',
    author = 'Jason Christa',
    author_email = 'jason@zeitcode.com',
    description = 'A Django app for fetching resized and/or cropped images through a url.',
    long_description = get_readme(),
    packages = find_packages(exclude=['tests']),
    include_package_data = True,
    install_requires = read_file('requirements.txt'),
    classifiers = [
        'Environment :: Web Environment',
        'License :: OSI Approved :: BSD License',
        'Framework :: Django',
        'Programming Language :: Python',