MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / to_filename

Method to_filename

etc/scripts/utils_thirdparty.py:1262–1271  ·  view source on GitHub ↗

Return a wheel filename reconstructed from its fields (that may not be the same as the original filename.)

(self)

Source from the content-addressed store, hash-verified

1260 return not self.tags.isdisjoint(tags)
1261
1262 def to_filename(self):
1263 """
1264 Return a wheel filename reconstructed from its fields (that may not be
1265 the same as the original filename.)
1266 """
1267 build = f"-{self.build}" if self.build else ""
1268 pyvers = ".".join(self.python_versions)
1269 abis = ".".join(self.abis)
1270 plats = ".".join(self.platforms)
1271 return f"{self.name}-{self.version}{build}-{pyvers}-{abis}-{plats}.whl"
1272
1273 def is_pure(self):
1274 """

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected