pystand 2.0__py3-none-any.whl → 2.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pystand
3
- Version: 2.0
3
+ Version: 2.1
4
4
  Summary: Install Python versions from python-build-standalone project
5
5
  Author-email: Mark Blakeney <mark.blakeney@bullet-systems.net>
6
6
  License: GPLv3
@@ -0,0 +1,6 @@
1
+ pystand.py,sha256=x6qijPBLaKWX0BxlbQyKa3_N20dWnbSCGvBSfflEczU,32597
2
+ pystand-2.1.dist-info/METADATA,sha256=d79DfUbvnmHlCFkUDHYSxJwQDGJTDFMT_nmNx1Wu7yI,17403
3
+ pystand-2.1.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
4
+ pystand-2.1.dist-info/entry_points.txt,sha256=DG4ps3I3nni1bubV1tXs6u8FARgkdbAYaEAzZD4RAo8,41
5
+ pystand-2.1.dist-info/top_level.txt,sha256=NoWUh19UQymAJLHTCdxMnVwV6Teftef5fzyF3OWLyNY,8
6
+ pystand-2.1.dist-info/RECORD,,
pystand.py CHANGED
@@ -126,7 +126,8 @@ def rm_path(path: Path) -> None:
126
126
  elif path.exists():
127
127
  path.unlink()
128
128
 
129
- def unpack_zst(filename, extract_dir):
129
+ def unpack_zst(filename: str, extract_dir: str) -> None:
130
+ 'Unpack a zstandard compressed tar'
130
131
  with open(filename, 'rb') as compressed:
131
132
  dctx = zstandard.ZstdDecompressor()
132
133
  with dctx.stream_reader(compressed) as reader:
@@ -218,7 +219,8 @@ class VersionMatcher:
218
219
  def iter_versions(args: Namespace) -> Iterator[Path]:
219
220
  'Iterate over all version dirs'
220
221
  for f in args._versions.iterdir():
221
- if f.is_dir() and not f.is_symlink() and not f.name.startswith('.'):
222
+ if f.is_dir() and not f.is_symlink() \
223
+ and f.name[0] != '.' and f.name[0].isdigit():
222
224
  yield f
223
225
 
224
226
  def get_version_names(args: Namespace) -> list[str]:
@@ -1,6 +0,0 @@
1
- pystand.py,sha256=UqlzHehVQ6gsP0p4CmVqrkYoaV6w5t0mO7y1d6VYkR0,32507
2
- pystand-2.0.dist-info/METADATA,sha256=P6edgnJxiBTLN_iRj9fphdhOLW3nmRMJsZo4SOZA-EI,17403
3
- pystand-2.0.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
4
- pystand-2.0.dist-info/entry_points.txt,sha256=DG4ps3I3nni1bubV1tXs6u8FARgkdbAYaEAzZD4RAo8,41
5
- pystand-2.0.dist-info/top_level.txt,sha256=NoWUh19UQymAJLHTCdxMnVwV6Teftef5fzyF3OWLyNY,8
6
- pystand-2.0.dist-info/RECORD,,
File without changes