<commit_before>#!/usr/bin/env python

import sys
import os
from os.path import join, abspath, basename, dirname
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup



py = sys.version_info
if py < (2,7) or py > (3,0):
    raise NotImplementedError("PyAirview requires at least Python 2.7, and Python 3.2+ compatibility is in the works")

def read_file(name, *args):
    try:
        return open(join(dirname(__file__), name)).read(*args)
    except OSError:
        return ''


setup(name='pyairview',
    version='0.1a1',
    description='PyAirview is a very simple Python library for the Ubiquiti Airview2 2.4GHz spectrum analyzer, which has an undocumented device API.',
    long_description=read_file('README.rst'),
    author='<NAME>',
    author_email='<EMAIL>',
    url='http://infincia.github.io/pyairview/',
    scripts=['pyairview_test.py'],
    py_modules=['pyairview'],
    license='MIT',
    keywords='airview ubiquiti airview2 spectrum analyzer',
    platforms = 'any',
    install_requires = ['PySerial'],
    classifiers=['Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Programming Language :: Python :: 2.7',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: System :: Hardware :: Hardware Drivers',
    ],
)


<commit_msg>Allow setup.py to succeed on Python 3.2+<commit_after>#!/usr/bin/env python

import sys
import os
from os.path import join, abspath, basename, dirname
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup



py = sys.version_info
if py < (2,7) or not py >= (3,2):
    raise NotImplementedError("PyAirview requires Python 2.7 or Python 3.2+")

def read_file(name, *args):
    try:
        return open(join(dirname(__file__), name)).read(*args)
    except OSError:
        return ''


setup(name='pyairview',
    version='0.1a1',
    description='PyAirview is a very simple Python library for the Ubiquiti Airview2 2.4GHz spectrum analyzer, which has an undocumented device API.',
    long_description=read_file('README.rst'),
    author='<NAME>',
    author_email='<EMAIL>',
    url='http://infincia.github.io/pyairview/',
    scripts=['pyairview_test.py'],
    py_modules=['pyairview'],
    license='MIT',
    keywords='airview ubiquiti airview2 spectrum analyzer',
    platforms = 'any',
    install_requires = ['PySerial'],
    classifiers=['Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Programming Language :: Python :: 2.7',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: System :: Hardware :: Hardware Drivers',
    ],
)



{'fraction_non_alphanumeric': 0.13076199435559738, 'fraction_numerical': 0.01191596111633741, 'mean_word_length': 3.4, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4053298', 'n_tokens_mistral': 988, 'n_tokens_neox': 939, 'n_words': 276}