old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  import re
  from setuptools import setup, find_packages
  
  
  PROJECT = 'slim'
  
  
  def get_version(filename=None):
      if filename is None:
          filename = os.path.join(
              os.path.dirname(__file__), PROJECT, '__init__.py')
  
      with open(filename) as fd:
          src = fd.read()
  
      version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", src, re.M)
      if version_match:
          return version_match.group(1)
  
      raise RuntimeError("Unable to find version string.")
  
  
  setup(
      name=PROJECT,
      version=get_version(),
      description='A Simple License Management system',
      author='Antonio Valentino',
      author_email='antonio.valentino@tiscali.it',
      license='MIT',
      packages=find_packages(),
      include_package_data=True,
      package_data={
          'slim': [
              'templates',
          ],
      },
      entry_points={
          'console_scripts': [
              'slimcli = slim.__main__:main',
          ],
      },
      url='https://github.com/avalentino/slim',
      install_requires=[
          'flask',
          'flask_admin',
          'flask-bootstrap',
          'flask-migrate',
          'flask-nav',
          'flask-script',
          'flask-security',
          'flask-sqlalchemy',
          'flask-testing',
          'flask-uploads',
          'Jinja2',
          'mock',
      ],
      test_suite='tests',
  )
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import os
  import re
  from setuptools import setup
  
  
  PROJECT = 'slim'
  
  
  def get_version(filename=None):
      if filename is None:
          filename = os.path.join(
              os.path.dirname(__file__), PROJECT, '__init__.py')
  
      with open(filename) as fd:
          src = fd.read()
  
      version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", src, re.M)
      if version_match:
          return version_match.group(1)
  
      raise RuntimeError("Unable to find version string.")
  
  
  setup(
      name=PROJECT,
      version=get_version(),
      description='A Simple License Management system',
      author='Antonio Valentino',
      author_email='antonio.valentino@tiscali.it',
      license='MIT',
      packages=['slim'],
      include_package_data=True,
      package_data={
          'slim': [
              'templates',
          ],
      },
      entry_points={
          'console_scripts': [
              'slimcli = slim.__main__:main',
          ],
      },
      url='https://github.com/avalentino/slim',
      install_requires=[
          'flask',
          'flask_admin',
          'flask-bootstrap',
          'flask-migrate',
          'flask-nav',
          'flask-script',
          'flask-security',
          'flask-sqlalchemy',
          'flask-testing',
          'flask-uploads',
          'Jinja2',
          'mock',
      ],
      test_suite='tests',
  )
  
subject: Fix setup script to not install test files