old_contents: import os, sys
  
  from setuptools import setup
  
  def main():
      setup(
          name='py',
          description='library with cross-python path, ini-parsing, io, code, log facilities',
          long_description = open('README.rst').read(),
          version='1.4.32.dev1',
          url='http://pylib.readthedocs.org/',
          license='MIT license',
          platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
          author='holger krekel, Ronny Pfannschmidt, Benjamin Peterson and others',
          author_email='pytest-dev@python.org',
          classifiers=['Development Status :: 6 - Mature',
                       'Intended Audience :: Developers',
                       'License :: OSI Approved :: MIT License',
                       'Operating System :: POSIX',
                       'Operating System :: Microsoft :: Windows',
                       'Operating System :: MacOS :: MacOS X',
                       'Topic :: Software Development :: Testing',
                       'Topic :: Software Development :: Libraries',
                       'Topic :: Utilities',
                       'Programming Language :: Python',
                       'Programming Language :: Python :: 3'],
          packages=['py',
                    'py._code',
                    'py._io',
                    'py._log',
                    'py._path',
                    'py._process',
          ],
          zip_safe=False,
      )
  
  if __name__ == '__main__':
      main()
  
new_contents: import os
  import sys
  
  from setuptools import setup
  
  def get_version():
      p = os.path.join(os.path.dirname(
                       os.path.abspath(__file__)), "py", "__init__.py")
      with open(p) as f:
          for line in f.readlines():
              if "__version__" in line:
                  return line.strip().split("=")[-1].strip(" '")
      raise ValueError("could not read version")
  
  
  
  def main():
      setup(
          name='py',
          description='library with cross-python path, ini-parsing, io, code, log facilities',
          long_description = open('README.rst').read(),
          version='1.4.32.dev1',
          url='http://pylib.readthedocs.org/',
          license='MIT license',
          platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
          author='holger krekel, Ronny Pfannschmidt, Benjamin Peterson and others',
          author_email='pytest-dev@python.org',
          classifiers=['Development Status :: 6 - Mature',
                       'Intended Audience :: Developers',
                       'License :: OSI Approved :: MIT License',
                       'Operating System :: POSIX',
                       'Operating System :: Microsoft :: Windows',
                       'Operating System :: MacOS :: MacOS X',
                       'Topic :: Software Development :: Testing',
                       'Topic :: Software Development :: Libraries',
                       'Topic :: Utilities',
                       'Programming Language :: Python',
                       'Programming Language :: Python :: 3'],
          packages=['py',
                    'py._code',
                    'py._io',
                    'py._log',
                    'py._path',
                    'py._process',
          ],
          zip_safe=False,
      )
  
  if __name__ == '__main__':
      main()
  
subject: make setup.py get the version by reading py/__init__.py