
import sys

from distutils.core import setup
from distutils.extension import Extension

if sys.version_info[0] == 2:
    extension_filename = 'src/_cobsext2.c'
elif sys.version_info[0] == 3:
    extension_filename = 'src/_cobsext3.c'

if sys.version_info[0] == 2:
    if sys.version_info[1] >= 6:
        cobs_package_dir = 'cobs26'
    else:
        cobs_package_dir = 'cobs2'
elif sys.version_info[0] == 3:
    cobs_package_dir = 'cobs3'

setup(
    name='cobs',
    version='0.6.1',
    description='Consistent Overhead Byte Stuffing (COBS)',
    author='Craig McQueen',
    author_email='python@craig.mcqueen.id.au',
    url='http://bitbucket.org/cmcqueen1975/cobs-python/',
    packages=['cobs'],
    package_dir={
        'cobs' : cobs_package_dir 
    },
    ext_modules=[
        Extension('cobs._cobsext', [extension_filename, ]),
    ],

    long_description=open('README.txt').read(),

    license="MIT",
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 3',
        'Topic :: Communications',
    ],
)

@@ -478,11 +478,11 @@
 ='0.
-6.1
+7.0
 ',%0A 
@@ -963,16 +963,15 @@
  :: 
-3 - Alph
+4 - Bet
 a',%0A
@@ -1153,57 +1153,251 @@
 :: 2
-.6',%0A        'Programming Language :: Python :: 3
+',%0A        'Programming Language :: Python :: 2.4',%0A        'Programming Language :: Python :: 2.5',%0A        'Programming Language :: Python :: 2.6',%0A        'Programming Language :: Python :: 3',%0A        'Programming Language :: Python :: 3.1
 ',%0A 

Change version to 0.7.0. Add classifiers for other Python versions. Change to "Beta" status.