예제 #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())
예제 #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())
예제 #3
0
파일: doc.py 프로젝트: jtrobec/pants
 def _compute_fingerprint(self):
     return combine_hashes(artifact.fingerprint() for artifact in self)
예제 #4
0
파일: jvm_app.py 프로젝트: xeno-by/pants
 def _compute_fingerprint(self):
   return combine_hashes(map(BundleField._hash_bundle, self))
예제 #5
0
 def fingerprint(self):
     return combine_hashes(
         [self.wiki.fingerprint(),
          stable_json_sha1(self.config)])
예제 #6
0
파일: doc.py 프로젝트: jduan/pants
 def _compute_fingerprint(self):
   return combine_hashes(artifact.fingerprint() for artifact in self)
예제 #7
0
파일: jvm_app.py 프로젝트: lahosken/pants
 def _compute_fingerprint(self):
     return combine_hashes(map(BundleField._hash_bundle, self))
예제 #8
0
파일: doc.py 프로젝트: cosmicexplorer/pants
 def fingerprint(self):
   return combine_hashes([self.wiki.fingerprint(), stable_json_sha1(self.config)])