@@ -130,7 +130,7 @@ def _parse_locks(module_ctx, venv_specs):
130130 for mod in module_ctx .modules :
131131 for lock in mod .tags .lockfile :
132132 req_whls = {}
133-
133+
134134 if lock .hub_name not in venv_specs or lock .venv_name not in venv_specs [lock .hub_name ]:
135135 problems .append ("Lock {} in {} refers to hub {} which is not configured for that module" .format (lock .src , mod .name , lock .hub_name ))
136136
@@ -188,9 +188,11 @@ Please update your lockfile to provide build tools in order to enable sdist supp
188188
189189Problems:
190190{problems}""" .format (
191- lockfile = lock .src ,
192- problems = "\n " .join ([" - " + it for it in problems ]
193- )))
191+ lockfile = lock .src ,
192+ problems = "\n " .join (
193+ [" - " + it for it in problems ],
194+ ),
195+ ))
194196
195197 # FIXME: Should validate the lockfile but for now just stash it
196198 # Validating in starlark kinda rots anyway
@@ -202,8 +204,8 @@ Problems:
202204 return lock_specs
203205
204206_default_annotations = struct (
205- per_package = {},
206- default_build_deps = [
207+ per_package = {},
208+ default_build_deps = [
207209 {"name" : "setuptools" },
208210 {"name" : "build" },
209211 ],
@@ -232,7 +234,7 @@ def _parse_annotations(module_ctx, hub_specs, venv_specs):
232234 annotations = toml .decode_file (module_ctx , ann .src )
233235 if annotations .get ("version" ) != "0.0.0" :
234236 fail ("Annotations file %s doesn't specify a valid version= key" % ann .src )
235-
237+
236238 for package in annotations .get ("package" , []):
237239 if not "name" in package :
238240 fail ("Annotations file %s is invalid; all [[package]] entries must have a name" % ann .src )
@@ -449,7 +451,8 @@ def _sbuild_repos(module_ctx, lock_specs, annotation_specs, override_specs):
449451
450452 # Per-package build deps, plus global defaults
451453 build_deps = {
452- it ["name" ]: it for it in build_deps + venv_anns .default_build_deps
454+ it ["name" ]: it
455+ for it in build_deps + venv_anns .default_build_deps
453456 }
454457
455458 # print("Creating sdist repo", name)
@@ -532,7 +535,7 @@ def _collect_entrypoints(module_ctx, lock_specs):
532535 res = module_ctx .execute (
533536 [
534537 "tar" , # FIXME: Use a hermetic tar here somehow?
535- "-xzOif " ,
538+ "-xzOf " ,
536539 file ,
537540 "*.dist-info/entry_points.txt" ,
538541 ],
@@ -789,10 +792,11 @@ def _uv_impl(module_ctx):
789792 venv_specs = _parse_venvs (module_ctx , hub_specs )
790793
791794 lock_specs = _parse_locks (module_ctx , venv_specs )
792-
795+
793796 annotation_specs = _parse_annotations (module_ctx , hub_specs , venv_specs )
794797
795798 override_specs = _parse_overrides (module_ctx , venv_specs )
799+
796800 # Roll through all the configured wheels, collect & validate the unique
797801 # platform configurations so that we can go create an appropriate power set
798802 # of conditions.
0 commit comments