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

Add interpolation when reading setup.cfg. #32

Merged

Conversation

SethMMorton
Copy link
Contributor

@SethMMorton SethMMorton commented Aug 20, 2018

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.

@@ -3,9 +3,9 @@
from __future__ import unicode_literals

try:
from configparser import RawConfigParser, NoOptionError
from configparser import RawConfigParser, ConfigParser, NoOptionError
Copy link
Owner

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

Copy link
Contributor Author

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?

Copy link
Owner

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...

Copy link
Collaborator

@ekohl ekohl left a 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?

@c4urself
Copy link
Owner

@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 :)
@SethMMorton SethMMorton force-pushed the correct-interpolation-in-setup-cfg branch from 0b180f2 to e5688dc Compare August 30, 2018 02:26
@SethMMorton
Copy link
Contributor Author

Done ✅

@c4urself c4urself merged commit 206997f into c4urself:master Aug 30, 2018
@c4urself
Copy link
Owner

thanks @SethMMorton

@SethMMorton SethMMorton deleted the correct-interpolation-in-setup-cfg branch September 3, 2018 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants