Exemplo n.º 1
0
    def _compute_fingerprint(self):
        def fingerprint_iter():
            for req in self:
                assert (isinstance(req, ZefRequirement))
                yield stable_json_hash(repr(req))

        return combine_hashes(fingerprint_iter())
Exemplo n.º 2
0
 def _compute_fingerprint(self):
   def hashes_iter():
     for item in self:
       if isinstance(item, six.text_type):
         yield sha1(item.encode('utf-8')).hexdigest()
       elif isinstance(item, six.binary_type):
         yield sha1(item).hexdigest()
       elif isinstance(item, JarDependency):
         yield sha1(item.cache_key()).hexdigest()
   return combine_hashes(hashes_iter())
Exemplo n.º 3
0
Arquivo: doc.py Projeto: jtrobec/pants
 def _compute_fingerprint(self):
     return combine_hashes(artifact.fingerprint() for artifact in self)
Exemplo n.º 4
0
 def _compute_fingerprint(self):
   return combine_hashes(map(BundleField._hash_bundle, self))
Exemplo n.º 5
0
 def fingerprint(self):
     return combine_hashes(
         [self.wiki.fingerprint(),
          stable_json_sha1(self.config)])
Exemplo n.º 6
0
Arquivo: doc.py Projeto: jduan/pants
 def _compute_fingerprint(self):
   return combine_hashes(artifact.fingerprint() for artifact in self)
Exemplo n.º 7
0
 def _compute_fingerprint(self):
     return combine_hashes(map(BundleField._hash_bundle, self))
Exemplo n.º 8
0
 def fingerprint(self):
   return combine_hashes([self.wiki.fingerprint(), stable_json_sha1(self.config)])