text: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  import sys
  
  
  from setuptools import setup
  from setuptools.command.test import test as TestCommand
  
  
  class PyTest(TestCommand):
      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.test_args)
          sys.exit(errno)
  
  
  readme = open('README.rst').read()
  history = open('HISTORY.rst').read().replace('.. :changelog:', '')
  
  requirements = [
      # TODO: put package requirements here
  ]
  
  test_requirements = [
      'pytest'
  ]
  
  setup(
      name='standardjson',
      version='0.3.1',
      description='JSON encoder that aims to be fully compliant with specifications ECMA-262 and ECMA-404.',
      long_description=readme + '\n\n' + history,
      author='Audrey Roy',
      author_email='audreyr@gmail.com',
      url='https://github.com/audreyr/standardjson',
      packages=[
          'standardjson',
      ],
      package_dir={'standardjson':
                   'standardjson'},
      include_package_data=True,
      install_requires=requirements,
      license="BSD",
      zip_safe=False,
      keywords='standardjson',
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Natural Language :: English',
          "Programming Language :: Python :: 2",
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
      ],
      test_suite='tests',
      tests_require=test_requirements,
      cmdclass = {'test': PyTest}
  )