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

from setuptools import setup, find_packages


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

setup(
    name='pycohttpparser',
    version='1.0.0',
    description='Python wrapper for picohttpparser',
    long_description=open('README.rst').read() + '\r\n' + open('HISTORY.rst').read(),
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/Lukasa/pycohttpparser',
    packages=find_packages('src'),
    package_dir={'': 'src'},
    license='MIT License',<commit_msg>Revert "Stop reaching in for the version."<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys

from setuptools import setup, find_packages


# Get the version
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('src/pycohttpparser/__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 Kenneth Reitz
if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

setup(
    name='pycohttpparser',
    version=version,
    description='Python wrapper for picohttpparser',
    long_description=open('README.rst').read() + '\r\n' + open('HISTORY.rst').read(),
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/Lukasa/pycohttpparser',
    packages=find_packages('src'),
    package_dir={'': 'src'},
    license='MIT License',
{'fraction_non_alphanumeric': 0.17370325693606756, 'fraction_numerical': 0.0048250904704463205, 'mean_word_length': 3.865102639296188, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7495952', 'n_tokens_mistral': 574, 'n_tokens_neox': 558, 'n_words': 122}