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. T
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 r
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 configur
Thomas Levine added the comment:
It has been working for me recently.
Adding to your suggestion that it is probably PyPI: I didn't do anything in
particular to fix this, and I think it is more likely that PyPI got fixed than
that I upgraded Python (and thus distutils).
--
s
New submission from Thomas Levine:
This command used to work just fine for me. ::
python setup.py register
Now it doesn't. For example, ::
$ python3 setup.py register
/usr/lib/python3.3/distutils/dist.py:257: UserWarning: Unknown distribution
option: 'instal
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
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
<http://bugs.python.org/issue20
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