portable-python 1.8.7__tar.gz → 1.9.0__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 (38) hide show
  1. {portable-python-1.8.7/src/portable_python.egg-info → portable-python-1.9.0}/PKG-INFO +1 -1
  2. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/config.py +0 -1
  3. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/inspector.py +6 -5
  4. {portable-python-1.8.7 → portable-python-1.9.0/src/portable_python.egg-info}/PKG-INFO +1 -1
  5. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_inspector.py +4 -2
  6. {portable-python-1.8.7 → portable-python-1.9.0}/DEVELOP.md +0 -0
  7. {portable-python-1.8.7 → portable-python-1.9.0}/LICENSE +0 -0
  8. {portable-python-1.8.7 → portable-python-1.9.0}/MANIFEST.in +0 -0
  9. {portable-python-1.8.7 → portable-python-1.9.0}/README.rst +0 -0
  10. {portable-python-1.8.7 → portable-python-1.9.0}/SECURITY.md +0 -0
  11. {portable-python-1.8.7 → portable-python-1.9.0}/pyproject.toml +0 -0
  12. {portable-python-1.8.7 → portable-python-1.9.0}/requirements.txt +0 -0
  13. {portable-python-1.8.7 → portable-python-1.9.0}/setup.cfg +0 -0
  14. {portable-python-1.8.7 → portable-python-1.9.0}/setup.py +0 -0
  15. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/__init__.py +0 -0
  16. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/__main__.py +0 -0
  17. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/cli.py +0 -0
  18. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/cpython.py +0 -0
  19. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/external/__init__.py +0 -0
  20. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/external/_inspect.py +0 -0
  21. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/external/tkinter.py +0 -0
  22. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/external/xcpython.py +0 -0
  23. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/tracking.py +0 -0
  24. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python/versions.py +0 -0
  25. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/SOURCES.txt +0 -0
  26. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/dependency_links.txt +0 -0
  27. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/entry_points.txt +0 -0
  28. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/requires.txt +0 -0
  29. {portable-python-1.8.7 → portable-python-1.9.0}/src/portable_python.egg-info/top_level.txt +0 -0
  30. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_build.py +0 -0
  31. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_cleanup.py +0 -0
  32. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_failed.py +0 -0
  33. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_invoker.py +0 -0
  34. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_list.py +0 -0
  35. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_prefix.py +0 -0
  36. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_recompress.py +0 -0
  37. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_report.py +0 -0
  38. {portable-python-1.8.7 → portable-python-1.9.0}/tests/test_setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: portable-python
3
- Version: 1.8.7
3
+ Version: 1.9.0
4
4
  Summary: Portable python binaries
5
5
  Home-page: https://github.com/codrsquad/portable-python
6
6
  Author: Zoran Simic
@@ -67,7 +67,6 @@ windows:
67
67
  ext: zip
68
68
 
69
69
  macos:
70
- allowed-system-libs: .* # System libs on macos are OK (such as bz2 etc)
71
70
  env:
72
71
  MACOSX_DEPLOYMENT_TARGET: 13 # Ventura, released June 2022
73
72
  """
@@ -567,11 +567,12 @@ class FullSoReport:
567
567
 
568
568
  def get_problem(self, portable) -> str:
569
569
  if portable:
570
- uses_system = [x.relative_path for x in self.lib_tracker.category[LibType.system].items]
571
- if uses_system:
572
- allowed = PPG.config.get_value("allowed-system-libs")
573
- if allowed:
574
- allowed = re.compile(allowed)
570
+ allowed = PPG.config.get_value("allowed-system-libs")
571
+ if allowed:
572
+ # allowed-system-libs needs to be defined for the check to occur (opt-in)
573
+ allowed = re.compile(allowed)
574
+ uses_system = [x.relative_path for x in self.lib_tracker.category[LibType.system].items]
575
+ if uses_system:
575
576
  uses_system = [x for x in uses_system if not allowed.match(x)]
576
577
 
577
578
  if uses_system:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: portable-python
3
- Version: 1.8.7
3
+ Version: 1.9.0
4
4
  Summary: Portable python binaries
5
5
  Home-page: https://github.com/codrsquad/portable-python
6
6
  Author: Zoran Simic
@@ -21,7 +21,7 @@ def test_find_libs(temp_folder):
21
21
  assert x == ["lib-foo.a", "lp.dylib", "lp.so", "lp.so.1.0", "python3.9/config-3.9/libpython3.9.so"]
22
22
 
23
23
 
24
- def test_inspect_python(temp_folder):
24
+ def test_inspect_python(temp_folder, monkeypatch):
25
25
  PPG.grab_config("foo.yml")
26
26
  inspector = PythonInspector("invoker")
27
27
  assert str(inspector)
@@ -41,7 +41,9 @@ def test_inspect_python(temp_folder):
41
41
 
42
42
  # Verify using system libs on linux is considered a fail
43
43
  PPG.grab_config(target="linux-x86_64")
44
- assert str(r.get_problem(True)).startswith("Uses system libs:")
44
+ monkeypatch.setitem(PPG.config.default.data, "linux", {"allowed-system-libs": "/foo"})
45
+ problem = r.get_problem(True)
46
+ assert problem.startswith("Uses system libs:")
45
47
 
46
48
 
47
49
  OTOOL_SAMPLE = """
File without changes