This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: setup.py register --list-classifiers is broken
Type: behavior Stage: resolved
Components: Distutils Versions: Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: eric.araujo, giampaolo.rodola, pitrou, python-dev, tarek
Priority: high Keywords:

Created on 2013-12-21 16:42 by giampaolo.rodola, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg206764 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2013-12-21 16:42
$ ./python -V
Python 3.4.0b1
$ ./python setup.py register --list-classifiers
running register
running check
Traceback (most recent call last):
  File "setup.py", line 2219, in <module>
    main()
  File "setup.py", line 2214, in main
    "Tools/scripts/2to3", "Tools/scripts/pyvenv"]
  File "/home/giampaolo/svn/python/3.4/Lib/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/home/giampaolo/svn/python/3.4/Lib/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/home/giampaolo/svn/python/3.4/Lib/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/home/giampaolo/svn/python/3.4/Lib/distutils/command/register.py", line 54, in run
    self.classifiers()
  File "/home/giampaolo/svn/python/3.4/Lib/distutils/command/register.py", line 90, in classifiers
    log.info(response.read())
  File "/home/giampaolo/svn/python/3.4/Lib/distutils/log.py", line 44, in info
    self._log(INFO, msg, args)
  File "/home/giampaolo/svn/python/3.4/Lib/distutils/log.py", line 33, in _log
    msg = msg.encode(encoding, "backslashreplace").decode(encoding)
AttributeError: 'bytes' object has no attribute 'encode'
msg206790 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-12-21 21:59
New changeset cffed58b1bbd by Antoine Pitrou in branch '3.3':
Issue #20045: Fix "setup.py register --list-classifiers".
http://hg.python.org/cpython/rev/cffed58b1bbd

New changeset 597b69d3a74f by Antoine Pitrou in branch 'default':
Issue #20045: Fix "setup.py register --list-classifiers".
http://hg.python.org/cpython/rev/597b69d3a74f
msg206791 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-12-21 21:59
Fixed, thanks for reporting.
msg206813 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2013-12-22 10:44
Thanks for fixing. =)
msg206815 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-12-22 14:38
> Thanks for fixing. =)

You're welcome. Unfixed distutils regressions are painful...
History
Date User Action Args
2022-04-11 14:57:55adminsetgithub: 64244
2013-12-22 14:38:29pitrousetmessages: + msg206815
2013-12-22 10:44:59giampaolo.rodolasetmessages: + msg206813
2013-12-21 21:59:51pitrousetstatus: open -> closed

nosy: + pitrou
messages: + msg206791

resolution: fixed
stage: needs patch -> resolved
2013-12-21 21:59:14python-devsetnosy: + python-dev
messages: + msg206790
2013-12-21 21:22:25pitrousetpriority: normal -> high
stage: needs patch
type: behavior
versions: - Python 3.2
2013-12-21 16:42:30giampaolo.rodolacreate