<commit_before>#!/usr/bin/env python
# coding: utf-8

from distribute_setup import use_setuptools
use_setuptools()

import sys
import os

if (len(sys.argv) > 1 and sys.argv[1] == 'test'):
  print("""
  Running tests against installed mockito...
  """)
  
  import shutil
  shutil.rmtree('build_test', True)
  shutil.copytree('mockito_test', 'build_test/mockito_test')
  
  sys.path[0] = os.path.join(sys.path[0], 'build_test', 'mockito_test')
  os.chdir(os.path.join('build_test', 'mockito_test'))
  
  import mockito_importer
  mockito_importer.imp = lambda : "don't really import anything..."
  
  import smart_test_runner
  smart_test_runner.run()
  
  exit(0)

if (len(sys.argv) == 1):
  print ("""
  1. Non-standard usage (not listed by --help):
    
    'setup.py test' runs tests against installed Mockito.
    You can use it to verify the installation: 
  
    setup.py test
    
  2. Standard usage:
  """)

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

extra = {}
if sys.version_info >= (3,):
  extra['use_2to3'] = True

setup(name='mockito',
      version='0.2.0',
      packages=['mockito'],
      url='http://code.google.com/p/mockito/wiki/MockitoForPython',
      download_url='http://bitbucket.org/szczepiq/mockito-python/downloads/',
      maintainer='mockito maintainers',
      maintainer_email='<EMAIL>',
      license='MIT',
      description='Spying framework',
      long_description='Mockito is a spying framework based on Java library with the same name.',
      classifiers=['Development Status :: 4 - Beta',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: MIT License',
                   'Topic :: Software Development :: Testing'<commit_msg>Remove custom unit tests running from setup file. Runnig via distutils will follow.<commit_after>#!/usr/bin/env python
# coding: utf-8

from distribute_setup import use_setuptools
use_setuptools()

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

extra = {}
if sys.version_info >= (3,):
  extra['use_2to3'] = True

setup(name='mockito',
      version='0.2.0',
      packages=['mockito'],
      url='http://code.google.com/p/mockito/wiki/MockitoForPython',
      download_url='http://bitbucket.org/szczepiq/mockito-python/downloads/',
      maintainer='mockito maintainers',
      maintainer_email='<EMAIL>',
      license='MIT',
      description='Spying framework',
      long_description='Mockito is a spying framework based on Java library with the same name.',
      classifiers=['Development Status :: 4 - Beta',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: MIT License',
                   'Topic :: Software Development :: Testing'
{'fraction_non_alphanumeric': 0.1280509373894588, 'fraction_numerical': 0.008489564909798374, 'mean_word_length': 3.2462462462462462, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3325256', 'n_tokens_mistral': 897, 'n_tokens_neox': 870, 'n_words': 218}