[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2020-05-03 Thread Sviatoslav Sydorenko
Sviatoslav Sydorenko added the comment: Not sure if it's in the scope of this issue but I thought I'd report it. I've just hit a similar issue with `setup.cfg` under Python 3.8 which is supposed to be parsed by `setuptools` but for some reason, I only see `distutils` in the trace, coming

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-10-07 Thread Thomas Levine
Thomas Levine added the comment: I just upgraded from 3.5.1 to 3.5.2 and found that I couldn't authenticate to PyPI anymore. And then I remembered that this had been fixed, so removed the extra percent sign, and my uploads worked. Thanks! -- ___

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-06-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 83d731f01dde by Berker Peksag in branch '3.5': Issue #20120: Add a test case to verify the % char can be used in .pypirc https://hg.python.org/cpython/rev/83d731f01dde New changeset 703d9066c459 by Berker Peksag in branch 'default': Issue #20120:

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: Fixed now. I'll watch the buildbots to assure acceptance. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset eae59b6bf133 by Jason R. Coombs in branch '3.5': Issue #20120: Use RawConfigParser for .pypirc parsing, removing support for interpolation unintentionally added with move to Python 3. Behavior no longer does any interpolation in .pypirc files,

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: I just confirmed only Python 3.5 gets bugfixes, so I'll apply this to 3.5 and default. -- versions: +Python 3.6 ___ Python tracker

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-03 Thread Łukasz Langa
Łukasz Langa added the comment: Oh, my bad. Yeah, that sounds like a worthwhile change. -- resolution: not a bug -> status: closed -> open ___ Python tracker

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: Łukasz, my proposal was to also update distutils (in all Python versions that get bugfixes) to match the Setuptools behavior and Python 2 behavior. I'd still like to do that to harmonize the implementations. --

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-02 Thread Łukasz Langa
Łukasz Langa added the comment: Closing this as setuptools switched to RawConfigParser. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-01-27 Thread R. David Murray
R. David Murray added the comment: So fixing distutils to use RawConfigParser? How likely is that to break currently working python3-only code? I'm imagining from what you wrote that your answer is "very close to zero', but I'd like explicit confirmation :) --

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-01-22 Thread Thomas Levine
Thomas Levine added the comment: I noticed something else that might be interesting. If I delete my .pypirc and have setuptools create it, python3.5 -c 'import setuptools; setuptools.setup()' register the .pypirc is created with the un-escaped percent sign and without error. I receive the

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-01-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: Setuptools 19 has been out for over a month now with no adverse consequences. Łukasz and David, as you both originally tagged this as won't fix, how would you feel about interpreting this as a defect and regression over Python 2.7 and fixing it it all Python

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2015-12-14 Thread Thomas Levine
Thomas Levine added the comment: The error message could just say. something to the effect of ".pypyrc works differently in Python 2 and Python 3. If you want a percent sign in Python 3, you have to escape it with another percent sign". Suppose someone is already using a configuration file

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2015-12-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: It doesn't make sense to give guidance to use one percent sign on one Python and two on another because .pypirc applies to all Python versions. I'm sure it's not uncommon for one to use different versions of Python for various package releases. I'm planning

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2015-12-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: This same issue applies to setuptools (https://bitbucket.org/pypa/setuptools/issues/442/setuptools-1832-cannot-access-pypi-if-pypi). I've created a test that captures the failure, but I struggled to find a solution that doesn't break across Python versions.

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2015-10-22 Thread Laszlo Nagy
Laszlo Nagy added the comment: When I uploaded via "setup.py register" and created a new user, then distutils saved the password in the wrong format! So maybe the password read part is a wontfix, but then the save part must be fixed. -- nosy: +nagylzs

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine
New submission from Thomas Levine: This works fine in Python 2.7, but it fails in Python 3.3. [tlevine@wildebeest mailfest-scoreboard]$ python3 --version Python 3.3.3 [tlevine@wildebeest mailfest-scoreboard]$ python3 setup.py register sdist running register Traceback (most recent call last):

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine
Thomas Levine added the comment: The relevant section distutils/config.py seems no different in Python 2.7, so now I see this as a bug in configparser. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20120

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Thomas Levine
Thomas Levine added the comment: Hmm now it looks to me like this is the intended behavior. http://hg.python.org/cpython/file/ea0aa3e32ab5/Lib/test/test_configparser.py#l1541 Switching the single percent sign (%) to two (%%) in .pypirc makes it work. Maybe we can make a nicer error message

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread R. David Murray
R. David Murray added the comment: It could be an issue of which configparser is/was used. -- nosy: +lukasz.langa, r.david.murray versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20120

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: In 3.x, the ConfigParser class is 2.x's SafeConfigParser, and the parsing rules are different (stricter, it seems). It's probably a won't fix, I'd say. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread R. David Murray
R. David Murray added the comment: More rational is probably closer to the truth :). Yeah, it's probably a won't fix, but it would be nice to have Łukasz's input. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20120

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2014-01-04 Thread Łukasz Langa
Łukasz Langa added the comment: Yes, that's wontfix but we can make the error message more friendly so I'll leave this open. The .pypirc parser should have been RawConfigParser from the start, the interpolation mechanism is obscure enough it's probably not used. Unfortunately this probably