portable-python 2.0.1__tar.gz → 2.0.2__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.
Files changed (100) hide show
  1. {portable_python-2.0.1 → portable_python-2.0.2}/PKG-INFO +1 -1
  2. {portable_python-2.0.1 → portable_python-2.0.2}/docs/concepts/telltale-detection.md +1 -0
  3. {portable_python-2.0.1 → portable_python-2.0.2}/docs/guides/add-an-external-module.md +2 -2
  4. {portable_python-2.0.1 → portable_python-2.0.2}/pyproject.toml +1 -4
  5. {portable_python-2.0.1 → portable_python-2.0.2}/scripts/check_okf.py +1 -1
  6. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/__init__.py +3 -3
  7. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/cpython.py +15 -0
  8. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/inspector.py +1 -2
  9. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python.egg-info/PKG-INFO +1 -1
  10. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python.egg-info/scm_file_list.json +69 -69
  11. portable_python-2.0.2/src/portable_python.egg-info/scm_version.json +8 -0
  12. portable_python-2.0.1/src/portable_python.egg-info/scm_version.json +0 -8
  13. {portable_python-2.0.1 → portable_python-2.0.2}/.claude/settings.json +0 -0
  14. {portable_python-2.0.1 → portable_python-2.0.2}/.dockerignore +0 -0
  15. {portable_python-2.0.1 → portable_python-2.0.2}/.github/workflows/release.yml +0 -0
  16. {portable_python-2.0.1 → portable_python-2.0.2}/.github/workflows/tests.yml +0 -0
  17. {portable_python-2.0.1 → portable_python-2.0.2}/.gitignore +0 -0
  18. {portable_python-2.0.1 → portable_python-2.0.2}/CLAUDE.md +0 -0
  19. {portable_python-2.0.1 → portable_python-2.0.2}/Dockerfile +0 -0
  20. {portable_python-2.0.1 → portable_python-2.0.2}/LICENSE +0 -0
  21. {portable_python-2.0.1 → portable_python-2.0.2}/MANIFEST.in +0 -0
  22. {portable_python-2.0.1 → portable_python-2.0.2}/README.rst +0 -0
  23. {portable_python-2.0.1 → portable_python-2.0.2}/SECURITY.md +0 -0
  24. {portable_python-2.0.1 → portable_python-2.0.2}/docs/architecture/build-setup.md +0 -0
  25. {portable_python-2.0.1 → portable_python-2.0.2}/docs/architecture/config.md +0 -0
  26. {portable_python-2.0.1 → portable_python-2.0.2}/docs/architecture/cpython.md +0 -0
  27. {portable_python-2.0.1 → portable_python-2.0.2}/docs/architecture/index.md +0 -0
  28. {portable_python-2.0.1 → portable_python-2.0.2}/docs/architecture/module-builder.md +0 -0
  29. {portable_python-2.0.1 → portable_python-2.0.2}/docs/architecture/ppg.md +0 -0
  30. {portable_python-2.0.1 → portable_python-2.0.2}/docs/architecture/python-builder.md +0 -0
  31. {portable_python-2.0.1 → portable_python-2.0.2}/docs/architecture/python-inspector.md +0 -0
  32. {portable_python-2.0.1 → portable_python-2.0.2}/docs/changelog.md +0 -0
  33. {portable_python-2.0.1 → portable_python-2.0.2}/docs/cli/build-report.md +0 -0
  34. {portable_python-2.0.1 → portable_python-2.0.2}/docs/cli/build.md +0 -0
  35. {portable_python-2.0.1 → portable_python-2.0.2}/docs/cli/diagnostics.md +0 -0
  36. {portable_python-2.0.1 → portable_python-2.0.2}/docs/cli/index.md +0 -0
  37. {portable_python-2.0.1 → portable_python-2.0.2}/docs/cli/inspect.md +0 -0
  38. {portable_python-2.0.1 → portable_python-2.0.2}/docs/cli/lib-auto-correct.md +0 -0
  39. {portable_python-2.0.1 → portable_python-2.0.2}/docs/cli/list.md +0 -0
  40. {portable_python-2.0.1 → portable_python-2.0.2}/docs/cli/recompress.md +0 -0
  41. {portable_python-2.0.1 → portable_python-2.0.2}/docs/concepts/build-layout.md +0 -0
  42. {portable_python-2.0.1 → portable_python-2.0.2}/docs/concepts/folder-masking.md +0 -0
  43. {portable_python-2.0.1 → portable_python-2.0.2}/docs/concepts/index.md +0 -0
  44. {portable_python-2.0.1 → portable_python-2.0.2}/docs/concepts/portability.md +0 -0
  45. {portable_python-2.0.1 → portable_python-2.0.2}/docs/concepts/ppp-marker.md +0 -0
  46. {portable_python-2.0.1 → portable_python-2.0.2}/docs/concepts/static-linking.md +0 -0
  47. {portable_python-2.0.1 → portable_python-2.0.2}/docs/configuration/index.md +0 -0
  48. {portable_python-2.0.1 → portable_python-2.0.2}/docs/configuration/portable-python-yml.md +0 -0
  49. {portable_python-2.0.1 → portable_python-2.0.2}/docs/guides/add-a-config-option.md +0 -0
  50. {portable_python-2.0.1 → portable_python-2.0.2}/docs/guides/build-a-portable-python.md +0 -0
  51. {portable_python-2.0.1 → portable_python-2.0.2}/docs/guides/bump-components.md +0 -0
  52. {portable_python-2.0.1 → portable_python-2.0.2}/docs/guides/bump-python-support.md +0 -0
  53. {portable_python-2.0.1 → portable_python-2.0.2}/docs/guides/ci-cd.md +0 -0
  54. {portable_python-2.0.1 → portable_python-2.0.2}/docs/guides/fix-a-portability-issue.md +0 -0
  55. {portable_python-2.0.1 → portable_python-2.0.2}/docs/guides/index.md +0 -0
  56. {portable_python-2.0.1 → portable_python-2.0.2}/docs/guides/local-development.md +0 -0
  57. {portable_python-2.0.1 → portable_python-2.0.2}/docs/index.md +0 -0
  58. {portable_python-2.0.1 → portable_python-2.0.2}/docs/log.md +0 -0
  59. {portable_python-2.0.1 → portable_python-2.0.2}/docs/modules/external-modules.md +0 -0
  60. {portable_python-2.0.1 → portable_python-2.0.2}/docs/modules/index.md +0 -0
  61. {portable_python-2.0.1 → portable_python-2.0.2}/docs/overview.md +0 -0
  62. {portable_python-2.0.1 → portable_python-2.0.2}/docs/release.md +0 -0
  63. {portable_python-2.0.1 → portable_python-2.0.2}/lock-deps.sh +0 -0
  64. {portable_python-2.0.1 → portable_python-2.0.2}/portable-python.yml +0 -0
  65. {portable_python-2.0.1 → portable_python-2.0.2}/requirements.txt +0 -0
  66. {portable_python-2.0.1 → portable_python-2.0.2}/retired/README.md +0 -0
  67. {portable_python-2.0.1 → portable_python-2.0.2}/retired/toolchain.py +0 -0
  68. {portable_python-2.0.1 → portable_python-2.0.2}/scripts/bashrc.sh +0 -0
  69. {portable_python-2.0.1 → portable_python-2.0.2}/scripts/portable-python.sh +0 -0
  70. {portable_python-2.0.1 → portable_python-2.0.2}/setup.cfg +0 -0
  71. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/__main__.py +0 -0
  72. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/cli.py +0 -0
  73. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/config.py +0 -0
  74. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/external/__init__.py +0 -0
  75. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/external/_inspect.py +0 -0
  76. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/external/xcpython.py +0 -0
  77. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/external/xtkinter.py +0 -0
  78. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/tracking.py +0 -0
  79. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python/versions.py +0 -0
  80. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python.egg-info/SOURCES.txt +0 -0
  81. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python.egg-info/dependency_links.txt +0 -0
  82. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python.egg-info/entry_points.txt +0 -0
  83. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python.egg-info/requires.txt +0 -0
  84. {portable_python-2.0.1 → portable_python-2.0.2}/src/portable_python.egg-info/top_level.txt +0 -0
  85. {portable_python-2.0.1 → portable_python-2.0.2}/tests/__init__.py +0 -0
  86. {portable_python-2.0.1 → portable_python-2.0.2}/tests/conftest.py +0 -0
  87. {portable_python-2.0.1 → portable_python-2.0.2}/tests/sample-config1.yml +0 -0
  88. {portable_python-2.0.1 → portable_python-2.0.2}/tests/sample-config2.yml +0 -0
  89. {portable_python-2.0.1 → portable_python-2.0.2}/tests/sample-incomplete.yml +0 -0
  90. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_build.py +0 -0
  91. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_cleanup.py +0 -0
  92. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_failed.py +0 -0
  93. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_inspector.py +0 -0
  94. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_invoker.py +0 -0
  95. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_list.py +0 -0
  96. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_prefix.py +0 -0
  97. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_recompress.py +0 -0
  98. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_report.py +0 -0
  99. {portable_python-2.0.1 → portable_python-2.0.2}/tests/test_setup.py +0 -0
  100. {portable_python-2.0.1 → portable_python-2.0.2}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: portable-python
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Portable python binaries
5
5
  Author-email: Zoran Simic <zoran@simicweb.com>
6
6
  License-Expression: MIT
@@ -18,6 +18,7 @@ Each [`ModuleBuilder`](/architecture/module-builder.md) subclass declares `m_tel
18
18
  class Openssl(ModuleBuilder):
19
19
  m_telltale = "{include}/openssl/ssl.h"
20
20
 
21
+
21
22
  class Sqlite(ModuleBuilder):
22
23
  m_telltale = ["{include}/sqlite3.h"]
23
24
  ```
@@ -18,8 +18,8 @@ To statically link a new C library into CPython, add a [`ModuleBuilder`](/archit
18
18
  class Mylib(ModuleBuilder):
19
19
  """See https://docs.python.org/3/library/mymodule.html"""
20
20
 
21
- m_telltale = "{include}/mylib.h" # marker if system already has it
22
- m_debian = "+libmylib-dev" # Linux build constraint (see telltale detection)
21
+ m_telltale = "{include}/mylib.h" # marker if system already has it
22
+ m_debian = "+libmylib-dev" # Linux build constraint (see telltale detection)
23
23
 
24
24
  @property
25
25
  def url(self):
@@ -82,9 +82,8 @@ line-length = 140
82
82
  src = ["src", "tests"]
83
83
 
84
84
  [tool.ruff.lint]
85
- extend-select = [
85
+ select = [
86
86
  "A", # flake8-builtins
87
- # "ARG", # flake8-unused-arguments
88
87
  "B", # flake8-bugbear
89
88
  "C4", # flake8-comprehensions
90
89
  "C90", # mccabe
@@ -108,13 +107,11 @@ extend-select = [
108
107
  "RET", # flake8-return
109
108
  "RUF", # ruff-specific
110
109
  "S", # flake8-bandit
111
- # "SIM", # flake8-simplify
112
110
  "SLF", # flake8-self
113
111
  "SLOT", # flake8-slots
114
112
  "T10", # flake8-debugger
115
113
  "TID", # flake8-tidy-imports
116
114
  "TCH", # flake8-type-checking
117
- # "TD", # flake8-todos
118
115
  "TRY", # tryceratops
119
116
  "W", # pycodestyle warnings
120
117
  ]
@@ -24,7 +24,7 @@ import sys
24
24
 
25
25
  # Matches markdown links ending in .md, with an optional #anchor (external http(s)/mailto links are skipped below)
26
26
  LINK_RE = re.compile(r"\]\((?P<target>[^)\s#]+\.md)(?:#[^)]*)?\)")
27
- TYPE_RE = re.compile(r"^type:\s*(?P<type>\S.*)$", re.M)
27
+ TYPE_RE = re.compile(r"^type:\s*(?P<type>\S.*)$", re.MULTILINE)
28
28
 
29
29
 
30
30
  def frontmatter(text):
@@ -16,7 +16,7 @@ import os
16
16
  import pathlib
17
17
  import re
18
18
  from string import Template
19
- from typing import ClassVar, List
19
+ from typing import ClassVar
20
20
 
21
21
  import runez
22
22
  from runez.http import RestClient
@@ -301,9 +301,9 @@ class BuildSetup:
301
301
  class ModuleCollection:
302
302
  """Models a collection of sub-modules, with auto-detection and reporting as to what is active and why"""
303
303
 
304
- candidates: List["ModuleBuilder"] = None
304
+ candidates: list["ModuleBuilder"] = None
305
305
  desired: str = None
306
- selected: List["ModuleBuilder"] = None
306
+ selected: list["ModuleBuilder"] = None
307
307
 
308
308
  def __init__(self, parent_module: "ModuleBuilder", desired=None):
309
309
  self.selected = []
@@ -199,6 +199,21 @@ class Cpython(PythonBuilder):
199
199
  if self.version >= "3.14" and PPG.target.is_macos:
200
200
  yield f"{self.deps_lib_dir}/libmpdec.a"
201
201
 
202
+ def xenv_LIBREADLINE_LIBS(self):
203
+ if self.version >= "3.12" and self.active_module(Readline):
204
+ # Since 3.12 (gh-90005), ./configure asks pkg-config how to link the readline module,
205
+ # and no longer probes for the termcap library that readline needs. It states:
206
+ # "We now assume that libreadline or readline.pc provide correct linker information".
207
+ # Our readline is static, and its readline.pc mentions ncurses in 'Requires.private',
208
+ # which `pkg-config --libs` does not report (only `--libs --static` does). readline
209
+ # then gets linked without ncurses: it compiles, but fails to import at the end of
210
+ # the build with "undefined symbol: UP". So state the full static link line ourselves
211
+ # (same as `pkg-config --static --libs readline`), ./configure honors <LIB>_LIBS for
212
+ # exactly this purpose (gh-94801).
213
+ yield f"-L{self.deps_lib_dir}"
214
+ yield "-lreadline"
215
+ yield "-lncursesw"
216
+
202
217
  @runez.cached_property
203
218
  def prefix_lib_folder(self):
204
219
  """Path to <prefix>/lib/pythonM.m folder"""
@@ -233,8 +233,7 @@ class CLibInfo(Trackable):
233
233
 
234
234
  short_name = self.basename
235
235
  if not short_name.startswith("libpython"):
236
- if short_name.startswith("lib"):
237
- short_name = short_name[3:]
236
+ short_name = short_name.removeprefix("lib")
238
237
 
239
238
  short_name = short_name.partition(".")[0]
240
239
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: portable-python
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Portable python binaries
5
5
  Author-email: Zoran Simic <zoran@simicweb.com>
6
6
  License-Expression: MIT
@@ -1,93 +1,93 @@
1
1
  {
2
2
  "files": [
3
- "tox.ini",
4
- "Dockerfile",
5
- "LICENSE",
6
- "pyproject.toml",
7
- "lock-deps.sh",
8
- "requirements.txt",
9
- "portable-python.yml",
10
- "SECURITY.md",
11
- "README.rst",
3
+ ".claude/settings.json",
12
4
  ".dockerignore",
5
+ ".github/workflows/release.yml",
6
+ ".github/workflows/tests.yml",
7
+ ".gitignore",
13
8
  "CLAUDE.md",
9
+ "Dockerfile",
10
+ "LICENSE",
14
11
  "MANIFEST.in",
15
- ".gitignore",
16
- "scripts/portable-python.sh",
17
- "scripts/bashrc.sh",
18
- "scripts/check_okf.py",
19
- "docs/overview.md",
20
- "docs/log.md",
21
- "docs/changelog.md",
22
- "docs/release.md",
23
- "docs/index.md",
24
- "docs/configuration/portable-python-yml.md",
25
- "docs/configuration/index.md",
26
- "docs/architecture/cpython.md",
12
+ "README.rst",
13
+ "SECURITY.md",
14
+ "docs/architecture/build-setup.md",
27
15
  "docs/architecture/config.md",
28
- "docs/architecture/python-builder.md",
16
+ "docs/architecture/cpython.md",
17
+ "docs/architecture/index.md",
18
+ "docs/architecture/module-builder.md",
29
19
  "docs/architecture/ppg.md",
30
- "docs/architecture/build-setup.md",
20
+ "docs/architecture/python-builder.md",
31
21
  "docs/architecture/python-inspector.md",
32
- "docs/architecture/module-builder.md",
33
- "docs/architecture/index.md",
34
- "docs/modules/external-modules.md",
35
- "docs/modules/index.md",
36
- "docs/guides/bump-python-support.md",
37
- "docs/guides/local-development.md",
38
- "docs/guides/ci-cd.md",
39
- "docs/guides/fix-a-portability-issue.md",
40
- "docs/guides/add-an-external-module.md",
41
- "docs/guides/bump-components.md",
42
- "docs/guides/index.md",
43
- "docs/guides/add-a-config-option.md",
44
- "docs/guides/build-a-portable-python.md",
45
- "docs/concepts/ppp-marker.md",
46
- "docs/concepts/folder-masking.md",
47
- "docs/concepts/build-layout.md",
48
- "docs/concepts/portability.md",
49
- "docs/concepts/telltale-detection.md",
50
- "docs/concepts/index.md",
51
- "docs/concepts/static-linking.md",
52
- "docs/cli/lib-auto-correct.md",
22
+ "docs/changelog.md",
23
+ "docs/cli/build-report.md",
24
+ "docs/cli/build.md",
53
25
  "docs/cli/diagnostics.md",
26
+ "docs/cli/index.md",
54
27
  "docs/cli/inspect.md",
28
+ "docs/cli/lib-auto-correct.md",
55
29
  "docs/cli/list.md",
56
30
  "docs/cli/recompress.md",
57
- "docs/cli/build.md",
58
- "docs/cli/index.md",
59
- "docs/cli/build-report.md",
31
+ "docs/concepts/build-layout.md",
32
+ "docs/concepts/folder-masking.md",
33
+ "docs/concepts/index.md",
34
+ "docs/concepts/portability.md",
35
+ "docs/concepts/ppp-marker.md",
36
+ "docs/concepts/static-linking.md",
37
+ "docs/concepts/telltale-detection.md",
38
+ "docs/configuration/index.md",
39
+ "docs/configuration/portable-python-yml.md",
40
+ "docs/guides/add-a-config-option.md",
41
+ "docs/guides/add-an-external-module.md",
42
+ "docs/guides/build-a-portable-python.md",
43
+ "docs/guides/bump-components.md",
44
+ "docs/guides/bump-python-support.md",
45
+ "docs/guides/ci-cd.md",
46
+ "docs/guides/fix-a-portability-issue.md",
47
+ "docs/guides/index.md",
48
+ "docs/guides/local-development.md",
49
+ "docs/index.md",
50
+ "docs/log.md",
51
+ "docs/modules/external-modules.md",
52
+ "docs/modules/index.md",
53
+ "docs/overview.md",
54
+ "docs/release.md",
55
+ "lock-deps.sh",
56
+ "portable-python.yml",
57
+ "pyproject.toml",
58
+ "requirements.txt",
59
+ "retired/README.md",
60
+ "retired/toolchain.py",
61
+ "scripts/bashrc.sh",
62
+ "scripts/check_okf.py",
63
+ "scripts/portable-python.sh",
60
64
  "src/portable_python/__init__.py",
61
- "src/portable_python/versions.py",
65
+ "src/portable_python/__main__.py",
66
+ "src/portable_python/cli.py",
62
67
  "src/portable_python/config.py",
63
68
  "src/portable_python/cpython.py",
64
- "src/portable_python/inspector.py",
65
- "src/portable_python/tracking.py",
66
- "src/portable_python/cli.py",
67
- "src/portable_python/__main__.py",
68
69
  "src/portable_python/external/__init__.py",
69
- "src/portable_python/external/xtkinter.py",
70
- "src/portable_python/external/xcpython.py",
71
70
  "src/portable_python/external/_inspect.py",
72
- "retired/README.md",
73
- "retired/toolchain.py",
74
- ".claude/settings.json",
75
- "tests/test_failed.py",
71
+ "src/portable_python/external/xcpython.py",
72
+ "src/portable_python/external/xtkinter.py",
73
+ "src/portable_python/inspector.py",
74
+ "src/portable_python/tracking.py",
75
+ "src/portable_python/versions.py",
76
76
  "tests/__init__.py",
77
+ "tests/conftest.py",
78
+ "tests/sample-config1.yml",
77
79
  "tests/sample-config2.yml",
78
- "tests/test_prefix.py",
79
- "tests/test_cleanup.py",
80
+ "tests/sample-incomplete.yml",
80
81
  "tests/test_build.py",
81
- "tests/test_recompress.py",
82
- "tests/test_setup.py",
83
- "tests/sample-config1.yml",
82
+ "tests/test_cleanup.py",
83
+ "tests/test_failed.py",
84
+ "tests/test_inspector.py",
84
85
  "tests/test_invoker.py",
85
- "tests/test_report.py",
86
- "tests/conftest.py",
87
86
  "tests/test_list.py",
88
- "tests/sample-incomplete.yml",
89
- "tests/test_inspector.py",
90
- ".github/workflows/release.yml",
91
- ".github/workflows/tests.yml"
87
+ "tests/test_prefix.py",
88
+ "tests/test_recompress.py",
89
+ "tests/test_report.py",
90
+ "tests/test_setup.py",
91
+ "tox.ini"
92
92
  ]
93
93
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "2.0.2",
3
+ "distance": 0,
4
+ "node": "g8f5cab84b50ce7e5c510f285c9bc793b9c6e2fa6",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-08-20"
8
+ }
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "2.0.1",
3
- "distance": 0,
4
- "node": "g2543c9f61b50974c844452484758fafeb52551a9",
5
- "dirty": false,
6
- "branch": "HEAD",
7
- "node_date": "2026-06-24"
8
- }
File without changes
File without changes