<filename>setup.py
#!/usr/bin/python
# -*- coding: utf-8 -*-

# libthumbor - python extension to thumbor
# http://github.com/heynemann/libthumbor

# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 <NAME> <EMAIL>

'''Module that configures setuptools to package libthumbor'''

import ast
import os.path
from setuptools import setup, find_packages

tests_require = [
    'nose',
    'coverage',
    'yanc',
    'preggy',
    'flake8',
]


class GetVersion(ast.NodeVisitor):
    def __init__(self, path):
        with open(path) as f:
            self.visit(ast.parse(f.read(), path))

    def visit_Assign(self, node):
        if any(target.id == '__version__' for target in node.targets):
            assert not hasattr(self, '__version__')
            self.__version__ = node.value.s


setup(
    name='libthumbor',
    version=GetVersion(os.path.join(os.path.dirname(__file__), 'libthumbor', '__init__.py')).__version__,
    description="libthumbor is the python extension to thumbor",
    long_description="""
libthumbor is the python extension to thumbor.
It allows users to generate safe urls easily.
""",
    keywords='imaging face detection feature thumbor thumbnail' +
             ' imagemagick pil opencv',
    author='<NAME>',
    author_email='<EMAIL>',
    url='http://github.com/heynemann/libthumbor',
    license='MIT',
    classifiers=['Development Status :: 4 - Beta',
                 'Intended Audience :: Developers',
                 'License :: OSI Approved :: MIT License',
                 'Natural Language :: English',
                 'Operating System :: MacOS',
                 'Operating System :: POSIX :: Linux',
                 'Programming Language :: Python :: 2.6',
                 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
                 'Topic :: Multimedia :: Graphics :: Presentation'
                 ],
    packages=find_packages(),
    package_dir={"libthumbor": "libthumbor"},
    include_package_data=True,
    package_data={
    },

    extras_require={
        'tests': tests_require,
    },

    install_requires=[
        "six"
    ],
)

<filename>setup.py
#!/usr/bin/python
# -*- coding: utf-8 -*-

# libthumbor - python extension to thumbor
# http://github.com/heynemann/libthumbor

# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 <NAME> <EMAIL>

'''Module that configures setuptools to package libthumbor'''

import ast
import os.path
from setuptools import setup, find_packages

tests_require = [
    'nose',
    'coverage',
    'yanc',
    'preggy',
    'flake8',
]


class GetVersion(ast.NodeVisitor):
    def __init__(self, path):
        with open(path) as f:
            self.visit(ast.parse(f.read(), path))

    def visit_Assign(self, node):
        if any(target.id == '__version__' for target in node.targets):
            assert not hasattr(self, '__version__')
            self.__version__ = node.value.s


setup(
    name='libthumbor',
    version=GetVersion(os.path.join(os.path.dirname(__file__), 'libthumbor', '__init__.py')).__version__,
    description="libthumbor is the python extension to thumbor",
    long_description="""
libthumbor is the python extension to thumbor.
It allows users to generate safe urls easily.
""",
    keywords='imaging face detection feature thumbor thumbnail' +
             ' imagemagick pil opencv',
    author='<NAME>',
    author_email='<EMAIL>',
    url='http://github.com/heynemann/libthumbor',
    license='MIT',
    classifiers=['Development Status :: 4 - Beta',
                 'Intended Audience :: Developers',
                 'License :: OSI Approved :: MIT License',
                 'Natural Language :: English',
                 'Operating System :: MacOS',
                 'Operating System :: POSIX :: Linux',
                 'Programming Language :: Python :: 2.6',
                 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
                 'Topic :: Multimedia :: Graphics :: Presentation'
                 ],
    packages=find_packages(),
    package_dir={"libthumbor": "libthumbor"},
    include_package_data=True,
    package_data={
    },

    extras_require={
        'tests': tests_require,
    },

    install_requires=[
        "six"
    ],
)

#!/usr/bin/python # -*- coding: utf-8 -*- # libthumbor - python extension to thumbor # http://github.com/heynemann/libthumbor # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 <NAME> <EMAIL> Module that configures setuptools to package libthumbor libthumbor is the python extension to thumbor. It allows users to generate safe urls easily.