pystand 2.30__tar.gz → 2.32__tar.gz

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.4
2
2
  Name: pystand
3
- Version: 2.30
3
+ Version: 2.32
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-Expression: GPL-3.0-or-later
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/python
2
+ import re
3
+ import subprocess
4
+ import sys
5
+
6
+ import pystand
7
+
8
+ cmd = 'pystand show -a'.split()
9
+ out = subprocess.run(cmd, capture_output=True, text=True).stdout
10
+ alldists = set(re.sub(r'.+"(.+)".*', r'\1', ln) for ln in out.splitlines())
11
+
12
+ error = 0
13
+ for mach, dist in pystand.DISTRIBUTIONS.items():
14
+ if dist not in alldists:
15
+ machstr = f'{mach[0]}-{mach[1]}'
16
+ print(f'{machstr} invalid distribution: "{dist}"', file=sys.stderr)
17
+ error = 1
18
+
19
+ sys.exit(error)
pystand-2.32/justfile ADDED
@@ -0,0 +1,26 @@
1
+ PYFILES := `echo *.py`
2
+
3
+ check:
4
+ python check-dist.py
5
+ ruff check {{PYFILES}}
6
+ ty check --python /usr/bin/python {{PYFILES}}
7
+ vermin -vv --no-tips -i {{PYFILES}}
8
+ md-link-checker
9
+
10
+ build:
11
+ rm -rf dist
12
+ uv build
13
+
14
+ upload: build
15
+ uv-publish
16
+
17
+ doc:
18
+ update-readme-usage -A
19
+
20
+ format:
21
+ ruff check --select I --fix {{PYFILES}} && ruff format {{PYFILES}}
22
+
23
+ clean:
24
+ @rm -vrf *.egg-info build/ dist/ __pycache__/
25
+
26
+ # vim: set sw=2:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pystand
3
- Version: 2.30
3
+ Version: 2.32
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-Expression: GPL-3.0-or-later
@@ -1,5 +1,6 @@
1
1
  .gitignore
2
2
  README.md
3
+ check-dist.py
3
4
  justfile
4
5
  pyproject.toml
5
6
  pystand.py
@@ -51,8 +51,8 @@ DISTRIBUTIONS = {
51
51
  ('Darwin', 'x86_64'): 'x86_64-apple-darwin-install_only_stripped',
52
52
  ('Darwin', 'aarch64'): 'aarch64-apple-darwin-install_only_stripped',
53
53
  ('Darwin', 'arm64'): 'aarch64-apple-darwin-install_only_stripped',
54
- ('Windows', 'x86_64'): 'x86_64-pc-windows-msvc-shared-install_only_stripped',
55
- ('Windows', 'i686'): 'i686-pc-windows-msvc-shared-install_only_stripped',
54
+ ('Windows', 'x86_64'): 'x86_64-pc-windows-msvc-install_only_stripped',
55
+ ('Windows', 'i686'): 'i686-pc-windows-msvc-install_only_stripped',
56
56
  ('Windows', 'aarch64'): 'aarch64-pc-windows-msvc-install_only_stripped',
57
57
  ('Windows', 'arm64'): 'aarch64-pc-windows-msvc-install_only_stripped',
58
58
  }
@@ -574,14 +574,15 @@ def purge_unused_releases(args: Namespace) -> None:
574
574
  keep = keeplist(args)
575
575
 
576
576
  # Purge any release lists that are no longer used and have expired
577
- now_secs = time.time()
578
- end_secs = args.purge_days * 86400
579
- for path in args._releases.iterdir():
580
- if path.name not in keep:
581
- if (path.stat().st_mtime + end_secs) < now_secs:
582
- path.unlink()
583
- else:
584
- keep.add(path.name)
577
+ if args._releases.is_dir():
578
+ now_secs = time.time()
579
+ end_secs = args.purge_days * 86400
580
+ for path in args._releases.iterdir():
581
+ if path.name not in keep:
582
+ if (path.stat().st_mtime + end_secs) < now_secs:
583
+ path.unlink()
584
+ else:
585
+ keep.add(path.name)
585
586
 
586
587
  # Purge any downloads for releases that have expired
587
588
  if args._downloads.is_dir():
@@ -1461,8 +1462,8 @@ class cache_:
1461
1462
  if args.remove:
1462
1463
  if rm_path(args._downloads):
1463
1464
  print('Removed download cache.')
1464
- if args.file and rm_path(args._releases):
1465
- print('Removed file lists cache.')
1465
+ if args.file and rm_path(args._releases):
1466
+ print('Removed file lists cache.')
1466
1467
  else:
1467
1468
  show_cache_size(args._downloads, args)
1468
1469
 
pystand-2.30/justfile DELETED
@@ -1,23 +0,0 @@
1
- PYFILES := file_name(justfile_directory()) + '.py'
2
-
3
- check:
4
- ruff check {{PYFILES}}
5
- ty check --python /usr/bin/python {{PYFILES}}
6
- vermin -vv --no-tips -i {{PYFILES}}
7
- md-link-checker
8
-
9
- build:
10
- rm -rf dist
11
- uv build
12
-
13
- upload: build
14
- uv-publish
15
-
16
- doc:
17
- update-readme-usage -A
18
-
19
- format:
20
- ruff check --select I --fix {{PYFILES}} && ruff format {{PYFILES}}
21
-
22
- clean:
23
- @rm -vrf *.egg-info build/ dist/ __pycache__/
File without changes
File without changes
File without changes
File without changes