Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lines in parse #13

Closed
sharksforarms opened this issue Mar 19, 2018 · 0 comments
Closed

New lines in parse #13

sharksforarms opened this issue Mar 19, 2018 · 0 comments

Comments

@sharksforarms
Copy link

Hello, I'm trying to do a parse/serialize using the following format:

MAJOR=1
MINOR=2
PATCH=3

My bumpversion looks like

[bumpversion]
current_version = 1.2.3

[bumpversion:file:version_info]
parse = "MAJOR=(?P<major>\d+)\nMINOR=(?P<minor>\d+)\nPATCH=(?P<patch>\d+)\n"
serialize = "MAJOR={major}\nMINOR={minor}\nPATCH={patch}\n"

I am getting an assertion error along the lines of:
`AssertionError: Did not find '1.2.3' or 'MAJOR=1\nMINOR=2\nPATCH=3\n' in file version_info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants