peritus / bumpversion

Version-bump your software with a single command
https://pypi.python.org/pypi/bumpversion
MIT License
1.5k stars 147 forks source link

Fix windows issues. #61

Closed thebjorn closed 9 years ago

thebjorn commented 9 years ago

The environment passed to popen cannot contain Unicode on windows. Added a class that handles this automatically.

When opening files with "rb" and writing them back with "wt", windows line endings (cr+lf) turns into double spacing (then quadruple? spacing etc.). Fix by writing the file back as "wb" and doing the encoding explicitly in the write call.

thebjorn commented 9 years ago

Just figuring out how to work with branches and pull request in git. I'm closing this and will resubmit pull requests from separate branches (that are not master).