
from __future__ import print_function

import fileinput
from auto_version import calculate_version

version_string = calculate_version()

f = fileinput.FileInput('meta.yaml', inplace=True)
for line in f:
    print(line.replace("version: '1.0'", "version: '{0}'".format(version_string)), end='')
f.close()


from __future__ import print_function

import fileinput
from auto_version import calculate_version

version_string = calculate_version().replace('+dirty', '')

f = fileinput.FileInput('meta.yaml', inplace=True)
for line in f:
    print(line.replace("version: '1.0'", "version: '{0}'".format(version_string)), end='')
f.close()

Remove "+dirty" from conda versions
Remove "+dirty" from conda versions

  
  from __future__ import print_function
  
  import fileinput
  from auto_version import calculate_version
  
- version_string = calculate_version()
+ version_string = calculate_version().replace('+dirty', '')
  
  f = fileinput.FileInput('meta.yaml', inplace=True)
  for line in f:
      print(line.replace("version: '1.0'", "version: '{0}'".format(version_string)), end='')
  f.close()
  
Remove "+dirty" from conda versions
## Code Before:

from __future__ import print_function

import fileinput
from auto_version import calculate_version

version_string = calculate_version()

f = fileinput.FileInput('meta.yaml', inplace=True)
for line in f:
    print(line.replace("version: '1.0'", "version: '{0}'".format(version_string)), end='')
f.close()

## Instruction:
Remove "+dirty" from conda versions
## Code After:

from __future__ import print_function

import fileinput
from auto_version import calculate_version

version_string = calculate_version().replace('+dirty', '')

f = fileinput.FileInput('meta.yaml', inplace=True)
for line in f:
    print(line.replace("version: '1.0'", "version: '{0}'".format(version_string)), end='')
f.close()
