Skip to content

Commit 12ff58a

Browse files
committed
py-installer: update to 1.0.0nb3.
Drop support for Python 3.9, 3.8, and 3.7 (#305, #242, #206) Add support and Python 3.13 and 3.14 (#201, #282) Add --overwrite-existing CLI option (#216) Add --validate-record CLI option (#161) Support installing multiple wheels (#203) Handle invalid hash algorithms (#179) Stream-based validation instead of in-memory (#98) Add validate_stream methods (#99) Consolidate and refine validation APIs (#108, #111) Sort entries before writing RECORD (#245) Do not install pycache from wheels (#307) Fix a path traversal bug (#317) Update launcher scripts and Windows behavior (#212, #181) Fix Windows relpath bug (#286) Migrate to dataclasses (#200) Use cached_property for memoization (#243) Refactor installer.scripts (#239) Decouple test modules (#104) Avoid cross-module imports from .utils (#102) Lazy imports for performance (#226) Complete type annotations and enforce strict mypy (#173) Deprecate RecordEntry.validate (#186) Fix documentation typos and grammar (#309, #210) Improve docstrings and internal documentation (#100)
1 parent 698a2f2 commit 12ff58a

File tree

4 files changed

+25
-68
lines changed

4 files changed

+25
-68
lines changed

misc/py-installer/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
# $NetBSD: Makefile,v 1.5 2025/02/23 17:31:02 wiz Exp $
1+
# $NetBSD: Makefile,v 1.6 2026/03/29 17:21:34 wiz Exp $
22

3-
DISTNAME= installer-0.7.0
3+
DISTNAME= installer-1.0.0
44
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5-
PKGREVISION= 3
65
CATEGORIES= misc python
76
MASTER_SITES= ${MASTER_SITE_PYPI:=i/installer/}
87

@@ -17,8 +16,6 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist
1716

1817
USE_LANGUAGES= # none
1918

20-
PYTHON_VERSIONS_INCOMPATIBLE= 27
21-
2219
INSTALL_ENV+= PYTHONPATH=${WRKSRC}/src
2320
TEST_ENV+= PYTHONPATH=${WRKSRC}/src
2421

misc/py-installer/distinfo

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
$NetBSD: distinfo,v 1.2 2025/01/23 19:31:09 riastradh Exp $
1+
$NetBSD: distinfo,v 1.3 2026/03/29 17:21:34 wiz Exp $
22

3-
BLAKE2s (installer-0.7.0.tar.gz) = 4187ebf5520c582b10d1c434bb3e41ef5eaf9a1c279740a6fc8f5c71f8b6944d
4-
SHA512 (installer-0.7.0.tar.gz) = e89c2d28ca73d9c4291d645dda675fdcfcaba2e4f8765b9fa4a2f211e27711510f3d171b96a6b024c11808ba7f06b7b560a7cb31fafba815bd5c7396f26789f7
5-
Size (installer-0.7.0.tar.gz) = 474349 bytes
6-
SHA1 (patch-src_installer_____main____.py) = b8660b711da4706eb0bfe2205b9a27492285ef69
7-
SHA1 (patch-tests_test__main.py) = 7128de09ad9d3cdab2969579892ca138332859ed
3+
BLAKE2s (installer-1.0.0.tar.gz) = ca2bf2b1c8b8d8b25fbcc7514fbe76d821649fe8e668b000446048f80b9e5c17
4+
SHA512 (installer-1.0.0.tar.gz) = 0d869af7ecbf7fb20e24fa9a3b63b808fab12fd2bd495113fe47d0cd9efc51c2a3bccb463dba8f54bc89ebcc65756f108db02f1382d047ad76cc59d2459ce4ca
5+
Size (installer-1.0.0.tar.gz) = 462685 bytes
6+
SHA1 (patch-src_installer_____main____.py) = 199b5c03e6d7c649b11cd711d051bf92ed5a7ca8
Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
$NetBSD: patch-src_installer_____main____.py,v 1.1 2025/01/23 19:31:09 riastradh Exp $
1+
$NetBSD: patch-src_installer_____main____.py,v 1.2 2026/03/29 17:21:35 wiz Exp $
22

33
Add `--executable' option.
44
https://github.com/pypa/installer/issues/257
55
https://github.com/pypa/installer/pull/258
66

7-
--- src/installer/__main__.py.orig 2022-12-07 02:28:06.839389000 +0000
7+
applied and then reverted:
8+
https://github.com/pypa/installer/pull/263
9+
10+
see some discussion in
11+
https://github.com/pypa/installer/issues/107
12+
13+
--- src/installer/__main__.py.orig 2026-03-28 15:38:56.048486000 +0000
814
+++ src/installer/__main__.py
9-
@@ -31,6 +31,13 @@ def _get_main_parser() -> argparse.Argum
15+
@@ -31,6 +31,13 @@ def _get_main_parser() -> argparse.ArgumentParser:
1016
help="override prefix to install packages to",
1117
)
1218
parser.add_argument(
@@ -20,12 +26,12 @@
2026
"--compile-bytecode",
2127
action="append",
2228
metavar="level",
23-
@@ -86,7 +93,7 @@ def _main(cli_args: Sequence[str], progr
24-
with WheelFile.open(args.wheel) as source:
25-
destination = SchemeDictionaryDestination(
26-
scheme_dict=_get_scheme_dict(source.distribution, prefix=args.prefix),
27-
- interpreter=sys.executable,
28-
+ interpreter=args.executable,
29-
script_kind=get_launcher_kind(),
30-
bytecode_optimization_levels=bytecode_levels,
31-
destdir=args.destdir,
29+
@@ -102,7 +109,7 @@ def _main(cli_args: Sequence[str], program: str | None
30+
source.validate_record(validate_contents=args.validate_record == "all")
31+
destination = SchemeDictionaryDestination(
32+
scheme_dict=_get_scheme_dict(source.distribution, prefix=args.prefix),
33+
- interpreter=sys.executable,
34+
+ interpreter=args.executable,
35+
script_kind=get_launcher_kind(),
36+
bytecode_optimization_levels=bytecode_levels,
37+
destdir=args.destdir,

misc/py-installer/patches/patch-tests_test__main.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)