Example #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())
Example #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())
Example #3
0
File: doc.py Project: jtrobec/pants
 def _compute_fingerprint(self):
     return combine_hashes(artifact.fingerprint() for artifact in self)
Example #4
0
 def _compute_fingerprint(self):
   return combine_hashes(map(BundleField._hash_bundle, self))
Example #5
0
 def fingerprint(self):
     return combine_hashes(
         [self.wiki.fingerprint(),
          stable_json_sha1(self.config)])
Example #6
0
File: doc.py Project: jduan/pants
 def _compute_fingerprint(self):
   return combine_hashes(artifact.fingerprint() for artifact in self)
Example #7
0
 def _compute_fingerprint(self):
     return combine_hashes(map(BundleField._hash_bundle, self))
Example #8
0
 def fingerprint(self):
   return combine_hashes([self.wiki.fingerprint(), stable_json_sha1(self.config)])