<commit_before>
from __future__ import print_function
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import io
import codecs
import os
import sys

# TODO: sip is only needed for PyQt4, they should be imported together.
try:
    import sip
except ImportError as e:
    raise e, "install sip first (comming with PyQt4)"

try:
    import PyQt4
except ImportError as e:
    # TODO: try to import PySide.
    raise e, "install PyQt4 or PySide"

import pandasqt

here = os.path.abspath(os.path.dirname(__file__))

def read(*filenames, **kwargs):
    encoding = kwargs.get('encoding', 'utf-8')
    sep = kwargs.get('sep', '\n')
    buf = []
    for filename in filenames:
        with io.open(filename, encoding=encoding) as f:
            buf.append(f.read())
    return sep.join(buf)

long_description = read('README')

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        import pytest
        errcode = pytest.main(self.test_args)
        sys.exit(errcode)

tests_require = ['pyside', 'pytest', 'pytest-cov', 'pytest-qt']
setup(
    name='pandas-qt',
    version=pandasqt.__version__,
    url='https://github.com/datalyze-solutions/pandas-qt',
    license='MIT License',
    namespace_packages = ['pandasqt'],
    author='<NAME>',
    tests_require=tests_require,
    install_requires=['pandas >= 0.15.1'],
    cmdclass={'test': PyTest},
    author_email='<EMAIL>',
    description='catches exceptions inside qt applications and writes them to a message box and into a log file',
    long_description=long_description,
    packages=['pandasqt'],<commit_msg>required pandas version updated<commit_after>
from __future__ import print_function
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import io
import codecs
import os
import sys

# TODO: sip is only needed for PyQt4, they should be imported together.
try:
    import sip
except ImportError as e:
    raise e, "install sip first (comming with PyQt4)"

try:
    import PyQt4
except ImportError as e:
    # TODO: try to import PySide.
    raise e, "install PyQt4 or PySide"

import pandasqt

here = os.path.abspath(os.path.dirname(__file__))

def read(*filenames, **kwargs):
    encoding = kwargs.get('encoding', 'utf-8')
    sep = kwargs.get('sep', '\n')
    buf = []
    for filename in filenames:
        with io.open(filename, encoding=encoding) as f:
            buf.append(f.read())
    return sep.join(buf)

long_description = read('README')

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        import pytest
        errcode = pytest.main(self.test_args)
        sys.exit(errcode)

tests_require = ['pandas >= 0.15.2', 'pyside', 'pytest', 'pytest-cov', 'pytest-qt']
setup(
    name='pandas-qt',
    version=pandasqt.__version__,
    url='https://github.com/datalyze-solutions/pandas-qt',
    license='MIT License',
    namespace_packages = ['pandasqt'],
    author='<NAME>',
    tests_require=tests_require,
    install_requires=['pandas >= 0.15.2'],
    cmdclass={'test': PyTest},
    author_email='<EMAIL>',
    description='catches exceptions inside qt applications and writes them to a message box and into a log file',
    long_description=long_description,
    packages=['pandasqt'],
{'fraction_non_alphanumeric': 0.11566742081447964, 'fraction_numerical': 0.006221719457013574, 'mean_word_length': 3.63564875491481, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5051711', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1142, 'n_words': 306}