<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
  setup.py - distutils script
'''
import os
import sys
import towbar

from distutils.core import setup

requires = ["requests"]

def publish():
    """ Publish to PyPi"""
    os.system("python setup.py sdist upload")

if sys.argv[-1] == "publish":
    publish()
    sys.exit()

setup(name = "towbar",
      version = towbar.__version__,
      description = "Python library for the boxcar.io API",
      long_description = (open("README.rst").read() + "\n\n" + open("HISTORY.rst").read()),
      author = "<NAME>",
      author_email = "<EMAIL>",
      url = "https://github.com/mrtazz/towbar",
      packages = ["towbar"],
      install_requires=requires,
      license = "MIT",
      classifiers = (
          "Development Status :: 4 - Beta",
          "License :: OSI Approved :: MIT License",
          "Programming Language :: Python",
          "Programming Language :: Python :: 2.5",
          "Programming Language :: Python :: 2.6",
          "Programming Language :: Python :: 2.7"
      )
     )<commit_msg>update setup.py to use requirements<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
  setup.py - distutils script
'''
import os
import sys
import towbar

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

def publish():
    """ Publish to PyPi"""
    os.system("python setup.py sdist upload")

if sys.argv[-1] == "publish":
    publish()
    sys.exit()

setup(name = "towbar",
      version = towbar.__version__,
      description = "Python library for the boxcar.io API",
      long_description = (open("README.rst").read() + "\n\n" + open("HISTORY.rst").read()),
      author = "<NAME>",
      author_email = "<EMAIL>",
      url = "https://github.com/mrtazz/towbar",
      packages = ["towbar"],
      install_requires = ["requests >= 0.6.1"],
      license = "MIT",
      classifiers = (
          "Development Status :: 4 - Beta",
          "License :: OSI Approved :: MIT License",
          "Programming Language :: Python",
          "Programming Language :: Python :: 2.5",
          "Programming Language :: Python :: 2.6",
          "Programming Language :: Python :: 2.7"
      )
     )
{'fraction_non_alphanumeric': 0.16146297948260482, 'fraction_numerical': 0.00936663693131133, 'mean_word_length': 2.543443917851501, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5776012', 'n_tokens_mistral': 703, 'n_tokens_neox': 668, 'n_words': 179}