Exemplo n.º 1
0
 def assemble(self):
     to_concatenate = [
         PackagedFile('test==1.0', 'packaged_files', 'packaged_file'),
         PackagedFile('test==1.0', 'packaged_files', 'packaged_file2')
     ]
     list_of_files = [
         ConcatenatedFile(fixture.filename, to_concatenate)
     ]
     self.define_static_files('/files', list_of_files)
Exemplo n.º 2
0
    def packaged_files222xxxxxFIXMEIAMDEADButPossibleAlternative(self):
        exposed_files = []
        js_files_to_include = [PackagedFile(self.egg_name, self.shipped_in_directory, file_name) 
                               for file_name in self.files
                               if file_name.endswith('.js')]
        if js_files_to_include:
            exposed_files.append(ConcatenatedFile('%s.js' % self.name, js_files_to_include))

        css_files_to_include = [PackagedFile(self.egg_name, self.shipped_in_directory, file_name) 
                               for file_name in self.files
                               if file_name.endswith('.css')]
        if css_files_to_include:
            exposed_files.append(ConcatenatedFile('%s.css' % self.name, css_files_to_include))
        return exposed_files
Exemplo n.º 3
0
 def assemble(self):
     list_of_files = [
         PackagedFile(easter_egg.as_requirement_string(),
                      'packaged_files', 'packaged_file')
     ]
     self.define_static_files('/files', list_of_files)
Exemplo n.º 4
0
 def packaged_files(self):
     return [
         PackagedFile(self.egg_name, self.shipped_in_directory, file_name)
         for file_name in self.files
     ]