From: <pau...@us...> - 2011-02-19 05:18:12
|
Author: paultremblay Date: 2011-02-19 06:18:04 +0100 (Sat, 19 Feb 2011) New Revision: 6911 Modified: trunk/sandbox/paultremblay/setup.py trunk/sandbox/paultremblay/test.py Log: Test for enumerated and definition lists; setup.py removes generated files. Modified: trunk/sandbox/paultremblay/setup.py =================================================================== --- trunk/sandbox/paultremblay/setup.py 2011-02-19 05:10:11 UTC (rev 6910) +++ trunk/sandbox/paultremblay/setup.py 2011-02-19 05:18:04 UTC (rev 6911) @@ -11,6 +11,20 @@ xsl_files = glob.glob('xsl_fo/*') +def remove_files(the_list): + for the_path in the_list: + os.remove(the_path) + +if 'sdist' in sys.argv: + os.chdir('test_files') + rm_files = [] + rm_files.extend(glob.glob('*.pdf')) + rm_files.extend(glob.glob('*.fo')) + rm_files.extend(glob.glob('*.xml')) + rm_files.extend(glob.glob('*.xsl')) + remove_files(rm_files) + os.chdir('..') + remove_build() script_name = get_script_name() Modified: trunk/sandbox/paultremblay/test.py =================================================================== --- trunk/sandbox/paultremblay/test.py 2011-02-19 05:10:11 UTC (rev 6910) +++ trunk/sandbox/paultremblay/test.py 2011-02-19 05:18:04 UTC (rev 6911) @@ -137,6 +137,8 @@ ('section.xml', 'section1.conf'), # generic sections ('transition.xml', 'transition1.conf'), # transition ('bullet_list.xml', 'bullet_list1.conf'), # bullet list + ('enumerated_list.xml', 'enumerated_list1.conf'), # enumerated list + ('definition_list.xml', 'definition_list1.conf'), # definition list ] def error_func(msg, the_path = None): |