text: #!/usr/bin/env python
  # -*- coding: utf-8 -*
  from __future__ import with_statement
  
  from setuptools import setup
  
  from os.path import abspath, dirname, join
  
  PROJECT_ROOT = abspath(dirname(__file__))
  with open(join(PROJECT_ROOT, 'README.rst')) as f:
      readme = f.read()
  
  with open(join(PROJECT_ROOT, 'coalringbuf.py')) as f:
      version_line = [line for line in f.readlines() if line.startswith('__version__')][0]
      version = version_line.split('=')[1].strip().strip("'")
  
  install_requires = [
      'six>=1.3.0',
  ]
  
  setup(
      name='coalringbuf',
      version=version,
      description='Python port of CoalescingRingBuffer from LMAXCollections',
      long_description=readme,
      author='Jakub Stasiak',
      url='https://github.com/jstasiak/coalringbuf',
      author_email='jakub@stasiak.at',
      py_modules=['coalringbuf'],
      platforms=['any'],
      license='MIT',
      install_requires=install_requires,
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Topic :: Software Development :: Libraries',
          'Topic :: Utilities',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.5',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: Implementation :: CPython',
          'Programming Language :: Python :: Implementation :: PyPy',
      ],
  )
  