
from distutils.core import setup

setup(name='icalendar',
      version='0.10',
      description='iCalendar support module',
      package_dir = {'': 'src'},
      packages=['icalendar'],
     )


from distutils.core import setup

f = open('version.txt', 'r')
version = f.read().strip()
f.close()

setup(name='icalendar',
      version=version,
      description='iCalendar support module',
      package_dir = {'': 'src'},
      packages=['icalendar'],
     )

Tweak so that version information is picked up from version.txt.
Tweak so that version information is picked up from version.txt.


  
  from distutils.core import setup
  
+ f = open('version.txt', 'r')
+ version = f.read().strip()
+ f.close()
+ 
  setup(name='icalendar',
-       version='0.10',
+       version=version,
        description='iCalendar support module',
        package_dir = {'': 'src'},
        packages=['icalendar'],
       )
  
Tweak so that version information is picked up from version.txt.
## Code Before:

from distutils.core import setup

setup(name='icalendar',
      version='0.10',
      description='iCalendar support module',
      package_dir = {'': 'src'},
      packages=['icalendar'],
     )

## Instruction:
Tweak so that version information is picked up from version.txt.
## Code After:

from distutils.core import setup

f = open('version.txt', 'r')
version = f.read().strip()
f.close()

setup(name='icalendar',
      version=version,
      description='iCalendar support module',
      package_dir = {'': 'src'},
      packages=['icalendar'],
     )
