[issue20754] Distribution.parse_config_files uses interpolation since Python 3

2016-12-12 Thread Axel Haustant
Axel Haustant added the comment: I just attached the patch submitted on issue28935. The fix is to simply give interpolation=None as ConfigParser parameter (as documented in the official Python 3.x ConfigParser documentation) -- keywords: +patch nosy: +noirbizarre Added file: http

[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Axel Haustant
Axel Haustant added the comment: Sorry, it is effectively a duplicate of the second one. But I submitted a patch which is not present in the other. What should I do ? (I'll attach the patch to the other one instead) -- ___ Python tracker

[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Axel Haustant
Axel Haustant added the comment: No it's not. Same problem but on a different part: the two cited issues are about the .pypirc file not the setup.cfg. The parsing does not occurs at the same place and the fix does not works for setup.cfg (I tried before submitting this issue). In

[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Axel Haustant
Axel Haustant added the comment: You're welcome. I understand the backward compatibility point. But I think that the current state is breaking existing code as it's not documented anywhere and it's a side-effect of another change, not something intentionnal. (this is why I

[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-10 Thread Axel Haustant
New submission from Axel Haustant: Because of the Python 3.2 configparser renaming/refactoring, string interpolation has been enabled into distutils config parsing and so fails to read any setup.cfg with percent signs (try to perform string interpolation and fails). To reproduce: create a