text: from setuptools import setup, find_packages
  from setuptools.command.test import test as TestCommand
  import re
  import sys
  
  
  VERSIONFILE="src/decol/_version.py"
  verstrline = open(VERSIONFILE, "rt").read()
  VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
  mo = re.search(VSRE, verstrline, re.M)
  if mo:
      verstr = mo.group(1)
  else:
      raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
  
  url = 'https://github.com/ctberthiaume/decol'
  download_url = url + '/archive/{}.tar.gz'.format(verstr)
  
  
  class PyTest(TestCommand):
      user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]
  
      def initialize_options(self):
          TestCommand.initialize_options(self)
          self.pytest_args = ''
  
      def run_tests(self):
          import shlex
          #import here, cause outside the eggs aren't loaded
          import pytest
          errno = pytest.main(shlex.split(self.pytest_args))
          sys.exit(errno)
  
  
  setup(
      name='decol',
      version=verstr,
      author='Chris T. Berthiaume',
      author_email='chrisbee@uw.edu',
      license='MIT',
      description='A tool to drop or keep columns from a CSV file.',
      long_description=open('README.md', 'r').read(),
      long_description_content_type='text/markdown',
      url=url,
      download_url=download_url,
      packages=find_packages(where='src'),
      package_dir={'': 'src'},
      include_package_data=True,
      platforms='any',
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Intended Audience :: Developers',
          'Topic :: Utilities',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3'
      ],
      keywords = ['csv', 'command-line'],
      python_requires='>=2.6, <4',
      install_requires=[
          'click'
      ],
      tests_require=['pytest'],
      cmdclass = {'test': PyTest},
      entry_points={
          'console_scripts': [
              'decol = decol.cli:main'
          ]
      }
  )
  