From 9cb2d844baf1ec47bed25fd48e5762ab641b5498 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sun, 9 Aug 2009 10:49:35 -0400 Subject: A start on the 'mailman' subcommand layout, with the help of argparse. Right now the only subcommand is 'lists' which displays all mailing lists like the old bin/list_lists command did (which is now removed). Remove bin/version since 'bin/mailman --version' does this for us. Simplify the calculation of the bin scripts; there will be many fewer of them. Extend i18n to use a class based structure. By default, all i18n strings are dedented after translation and substitution, which improves command line help. The class structure allows for overriding this behavior. --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 9ca967124..9c3e89c84 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,6 @@ from string import Template sys.path.insert(0, 'src') -import mailman.bin from mailman.version import VERSION as __version__ from setuptools import setup, find_packages @@ -62,7 +61,7 @@ for dirpath, dirnames, filenames in os.walk(start_dir): template = Template('$script = mailman.bin.$script:main') scripts = set( template.substitute(script=script) - for script in mailman.bin.__all__ + for script in ('mailman', 'mailmanctl', 'qrunner', 'master') ) -- cgit v1.2.3-70-g09d2