old_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  import os
  import re
  import sys
  import codecs
  
  here = os.path.abspath(os.path.dirname(__file__))
  
  def find_version(*parts):
      # Open in Latin-1 so that we avoid encoding errors.
      # Use codecs.open for Python 2 compatibility
      with codecs.open(os.path.join(here, *parts), 'r', 'latin1') as f:
          version_file = f.read()
  
      # The version line must have the form
      # __version__ = 'ver'
      version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                                version_file, re.M)
      if version_match:
          return version_match.group(1)
      raise RuntimeError("Unable to find version string.")
  
  
  sys.path.insert(0, os.path.abspath('../../'))
  
  extensions = [
      'sphinx.ext.autodoc',
      'sphinx.ext.autosummary',
      'numpydoc'
  ]
  
  autosummary_generate = True
  numpydoc_show_class_members = False
  
  templates_path = ['_templates']
  exclude_patterns = []
  
  source_suffix = '.rst'
  master_doc = 'index'
  html_theme = 'sphinx_rtd_theme'
  
  language = None
  today_fmt = '%B %d, %Y'
  default_role = 'autolink'
  pygments_style = 'sphinx'
  todo_include_todos = False
  htmlhelp_basename = 'pymzn'
  
  project = 'PyMzn'
  copyright = '2016, Paolo Dragone (MIT Licence)'
  author = 'Paolo Dragone'
  
  version = find_version('..', '..', 'pymzn', '__init__.py')
  release = find_version('..', '..', 'pymzn', '__init__.py')
  
  
new_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  import os
  import re
  import sys
  import codecs
  
  here = os.path.abspath(os.path.dirname(__file__))
  
  def find_version(*parts):
      # Open in Latin-1 so that we avoid encoding errors.
      # Use codecs.open for Python 2 compatibility
      with codecs.open(os.path.join(here, *parts), 'r', 'latin1') as f:
          version_file = f.read()
  
      # The version line must have the form
      # __version__ = 'ver'
      version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                                version_file, re.M)
      if version_match:
          return version_match.group(1)
      raise RuntimeError("Unable to find version string.")
  
  
  sys.path.insert(0, os.path.abspath('../../'))
  
  extensions = [
      'sphinx.ext.autodoc',
      'sphinx.ext.autosummary',
      'sphinx.ext.napoleon'
      # 'numpydoc'
  ]
  
  autosummary_generate = True
  # numpydoc_show_class_members = False
  
  templates_path = ['_templates']
  exclude_patterns = []
  
  source_suffix = '.rst'
  master_doc = 'index'
  html_theme = 'sphinx_rtd_theme'
  
  language = None
  today_fmt = '%B %d, %Y'
  default_role = 'autolink'
  pygments_style = 'sphinx'
  todo_include_todos = False
  htmlhelp_basename = 'pymzn'
  
  project = 'PyMzn'
  copyright = '2016, Paolo Dragone (MIT Licence)'
  author = 'Paolo Dragone'
  
  version = find_version('..', '..', 'pymzn', '__init__.py')
  release = find_version('..', '..', 'pymzn', '__init__.py')
  
  
subject: remove import of package, find version as in setup.py and use napoleon instead of numpydoc