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.

Author Winterflower
Recipients Winterflower, eric.araujo, herzbube, tarek
Date 2015-10-27.22:12:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445983976.64.0.0345060710088.issue6860@psf.upfronthosting.co.za>
In-reply-to
Content
This is still an issue in Python 3.4.3, but I believe the relevant documentation has been changed already to alert users to the fact that the class name and the command name should be the same. 

Quoting from: https://docs.python.org/3/distutils/apiref.html#module-distutils.command

Copy this file to a new module with the same name as the new command you’re implementing. This module should implement a class with the same name as the module (and the command). So, for instance, to create the command peel_banana (so that users can run setup.py peel_banana), you’d copy command_template to distutils/command/peel_banana.py, then edit it so that it’s implementing the class peel_banana, a subclass of distutils.cmd.Command.


Following this documentation, a user would not implement a custom command class called 'TestClass' with a command called 'test'.
History
Date User Action Args
2015-10-27 22:12:56Winterflowersetrecipients: + Winterflower, tarek, eric.araujo, herzbube
2015-10-27 22:12:56Winterflowersetmessageid: <1445983976.64.0.0345060710088.issue6860@psf.upfronthosting.co.za>
2015-10-27 22:12:56Winterflowerlinkissue6860 messages
2015-10-27 22:12:55Winterflowercreate