<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys

from setuptools import setup
from setuptools.command.test import test as TestCommand


class PyTest(TestCommand):
    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = ['test/']

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

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)


# Get the version
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('hyper/__init__.py', 'r') as f:
    text = f.read()
    match = re.search(version_regex, text)

    if match:
        version = match.group(1)
    else:
        raise RuntimeError("No version number found!")

# Stealing this from <NAME>
if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

py_version = sys.version_info[:2]
py_long_version = sys.version_info[:3]

try:
    pypy_version = sys.pypy_version_info[:2]
except AttributeError:
    pypy_version = None


def resolve_install_requires():
    if py_version == (3, 3):
        return ['pyOpenSSL>=0.15', 'service_identity>=14.0.0']
    elif py_version == (2, 7) and py_long_version < (2, 7, 9):
        deps = ['pyOpenSSL>=0.15', 'service_identity>=14.0.0']

        # PyPy earlier than 2.6.0 doesn't support cryptography 1.0
        if pypy_version and pypy_version < (2, 6):
            deps.append('cryptography<1.0')

        return deps
    return []

packages = [
    'hyper',
    'hyper.http20',
    'hyper.common',<commit_msg>Add hyper-h2 to dependencies<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys

from setuptools import setup
from setuptools.command.test import test as TestCommand


class PyTest(TestCommand):
    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = ['test/']

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

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.pytest_args)
        sys.exit(errno)


# Get the version
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('hyper/__init__.py', 'r') as f:
    text = f.read()
    match = re.search(version_regex, text)

    if match:
        version = match.group(1)
    else:
        raise RuntimeError("No version number found!")

# Stealing this from <NAME>
if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

py_version = sys.version_info[:2]
py_long_version = sys.version_info[:3]

try:
    pypy_version = sys.pypy_version_info[:2]
except AttributeError:
    pypy_version = None


def resolve_install_requires():
    basic_dependencies = ['h2~=2.0']

    if py_version == (3, 3):
        basic_dependencies.extend(
            ['pyOpenSSL>=0.15', 'service_identity>=14.0.0']
        )
    elif py_version == (2, 7) and py_long_version < (2, 7, 9):
        basic_dependencies.extend(
            ['pyOpenSSL>=0.15', 'service_identity>=14.0.0']
        )

        # PyPy earlier than 2.6.0 doesn't support cryptography 1.0
        if pypy_version and pypy_version < (2, 6):
            basic_dependencies.append('cryptography<1.0')

    return basic_dependencies

packages = [
    'hyper',
    'hyper.http20',
    'hyper.common',
{'fraction_non_alphanumeric': 0.13551278671236489, 'fraction_numerical': 0.021091484313208543, 'mean_word_length': 2.947970863683663, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '1704229', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1256, 'n_words': 297}