-
Notifications
You must be signed in to change notification settings - Fork 131
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
Add interpolation when reading setup.cfg. #32
Add interpolation when reading setup.cfg. #32
Conversation
bumpversion/__init__.py
Outdated
@@ -3,9 +3,9 @@ | |||
from __future__ import unicode_literals | |||
|
|||
try: | |||
from configparser import RawConfigParser, NoOptionError | |||
from configparser import RawConfigParser, ConfigParser, NoOptionError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a comment at the end here: # py3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I make it a bit more descriptive than just # py3
, do you want this for some sort of linter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure -- not for a linter but for my own sanity of jumping back and forth between the two...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct to me. @c4urself?
@SethMMorton -- can you rebase to resolve the conflicts |
Setuptools uses the default ConfigParser object when reading setup.cfg which does interpolation. To be consistent with that format bumpversion must do the same. This will close issue c4urself#21.
Leaving things better than I found it :)
0b180f2
to
e5688dc
Compare
Done ✅ |
thanks @SethMMorton |
Setuptools uses the default ConfigParser object when reading
setup.cfg which does interpolation. To be consistent with that format
bumpversion must do the same.
Fixes #21.