Пример #1
0
def run_abjadbook():
    r'''Entry point for setuptools.

    One-line wrapper around AbjadBookScript.
    '''
    from abjad.tools import abjadbooktools

    abjadbooktools.AbjadBookScript()()
Пример #2
0
 def test_configured(self):
     configuration = abjadbooktools.AbjadBookScript()._read_config(
         self.configuration_path)
     assert not os.path.exists(self.target_valid_path)
     assert not os.path.exists(self.assets_directory)
     document_handler = abjadbooktools.LaTeXDocumentHandler.from_path(
         input_file_path=self.source_valid_path)
     document_handler(
         configuration=configuration,
         output_file_path=self.target_valid_path,
     )
     assert os.path.exists(self.target_valid_path)
     assert os.path.exists(self.assets_directory)
     with open(self.target_valid_path, 'r') as file_pointer:
         target_valid_contents = file_pointer.read()
     assert target_valid_contents == self.expected_configured_contents
     assert tuple(sorted(os.listdir(self.assets_directory))) == \
         self.expected_asset_names
Пример #3
0
def run_abjad_book():
    r'''Entry point for abjad-book.
    '''
    from abjad.tools import abjadbooktools
    abjadbooktools.AbjadBookScript()()