We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sdist
1 parent 6c42503 commit 1dbc7ceCopy full SHA for 1dbc7ce
changelog/12.bugfix.rst
@@ -0,0 +1 @@
1
+Fixed issue with ``sdist`` recompression for reproducible packages not iterating though subdirectories contents.
noxfile.py
@@ -491,8 +491,8 @@ def recompress(self, targz):
491
with tarfile.open(d_tar, "w|") as wfile:
492
with tarfile.open(targz, "r:gz") as rfile:
493
rfile.extractall(d_src)
494
- extracted_dir = list(pathlib.Path(d_src).glob("*"))[0]
495
- for name in sorted(extracted_dir.iterdir()):
+ extracted_dir = next(pathlib.Path(d_src).iterdir())
+ for name in sorted(extracted_dir.rglob("*")):
496
wfile.add(
497
str(name),
498
filter=self.tar_reset,
0 commit comments