<commit_before>"""praw setup.py"""

import re
from codecs import open
from os import path
from setuptools import setup


PACKAGE_NAME = 'praw'
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, 'README.rst'), encoding='utf-8') as fp:
    README = fp.read()
with open(path.join(HERE, PACKAGE_NAME, '__init__.py'),
          encoding='utf-8') as fp:
    VERSION = re.search("__version__ = '([^']+)'", fp.read()).group(1)


setup(name=PACKAGE_NAME,
      author='<NAME>',
      author_email='<EMAIL>',
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: GNU General Public License (GPL)',
          'Natural Language :: English',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: Implementation :: CPython',
          'Topic :: Utilities'],
      description=('PRAW, an acronym for `Python Reddit API Wrapper`, is a '
                   'python package that allows for simple access to '
                   'reddit\'s API.'),
      entry_points={'console_scripts': [
          'praw-multiprocess = praw.multiprocess:run']},
      install_requires=['decorator >=4.0.9, <4.1',
                        'requests >=2.3.0',
                        'six ==1.10',
                        'update_checker >=0.12, <1.0'],
      keywords='reddit api wrapper',
      license='GPLv3',
      long_description=README,
      maintainer='<NAME>',
      maintainer_email='<EMAIL>',
      package_data={'': ['COPYING'], PACKAGE_NAME: ['*.ini']},
      packages=[PACKAGE_NAME],
      tests_require=['betamax >=0.5.1, <0.6',
                     'betamax-matchers >=0.2.0, <0.3',
                     'betamax-serializers >=0.1.1, <0.2',
                     'mock ==1.0.1'],
      test_suite='tests',
      url='https://praw.readthedocs.io/',
      version=VERSION)<commit_msg>Add pyopenssl as a conditional dependency<commit_after>"""praw setup.py"""

import re
from codecs import open
from os import path
from setuptools import setup


PACKAGE_NAME = 'praw'
HERE = path.abspath(path.dirname(__file__))
with open(path.join(HERE, 'README.rst'), encoding='utf-8') as fp:
    README = fp.read()
with open(path.join(HERE, PACKAGE_NAME, '__init__.py'),
          encoding='utf-8') as fp:
    VERSION = re.search("__version__ = '([^']+)'", fp.read()).group(1)

dependencies = ['decorator >=4.0.9, <4.1',
                'requests >=2.3.0',
                'six ==1.10',
                'update_checker >=0.12, <1.0']

try:
    from OpenSSL import __version__ as opensslversion
    opensslversion = [int(minor) if minor.isdigit() else minor
                      for minor in opensslversion.split('.')]
    if opensslversion < [0, 15]:  # versions less than 0.15 have a regression
        dependencies.append('pyopenssl >=0.15')
except ImportError:
    pass  # open ssl not installed

setup(name=PACKAGE_NAME,
      author='<NAME>',
      author_email='<EMAIL>',
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: GNU General Public License (GPL)',
          'Natural Language :: English',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: Implementation :: CPython',
          'Topic :: Utilities'],
      description=('PRAW, an acronym for `Python Reddit API Wrapper`, is a '
                   'python package that allows for simple access to '
                   'reddit\'s API.'),
      entry_points={'console_scripts': [
          'praw-multiprocess = praw.multiprocess:run']},
      install_requires=dependencies,
      keywords='reddit api wrapper',
      license='GPLv3',
      long_description=README,
      maintainer='<NAME>',
      maintainer_email='<EMAIL>',
      package_data={'': ['COPYING'], PACKAGE_NAME: ['*.ini']},
      packages=[PACKAGE_NAME],
      tests_require=['betamax >=0.5.1, <0.6',
                     'betamax-matchers >=0.2.0, <0.3',
                     'betamax-serializers >=0.1.1, <0.2',
                     'mock ==1.0.1'],
      test_suite='tests',
      url='https://praw.readthedocs.io/',
      version=VERSION)
{'fraction_non_alphanumeric': 0.15323565323565325, 'fraction_numerical': 0.021367521367521368, 'mean_word_length': 2.387319090282564, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 24, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2902034', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1467, 'n_words': 353}