pyobjc-framework-SystemConfiguration 13.0__tar.gz → 13.1__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 (45) hide show
  1. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Lib/pyobjc_framework_SystemConfiguration.egg-info/PKG-INFO +3 -3
  2. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Lib/pyobjc_framework_SystemConfiguration.egg-info/pyobjc-build-info.txt +1 -1
  3. pyobjc_framework_systemconfiguration-13.1/Lib/pyobjc_framework_SystemConfiguration.egg-info/requires.txt +2 -0
  4. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PKG-INFO +3 -3
  5. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/metadata/raw/arm64-27.fwinfo +2 -2
  6. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/metadata/raw/x86_64-27.fwinfo +2 -2
  7. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/pyobjc_setup.py +59 -1
  8. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/setup.py +1 -1
  9. pyobjc_framework_systemconfiguration-13.0/Lib/pyobjc_framework_SystemConfiguration.egg-info/requires.txt +0 -2
  10. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Examples/CallbackDemo/ReadMe.txt +0 -0
  11. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Examples/CallbackDemo/callbacks.py +0 -0
  12. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Examples/CallbackDemo/interneton.py +0 -0
  13. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Examples/CallbackDemo/netcon.py +0 -0
  14. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/LICENSE.txt +0 -0
  15. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Lib/SystemConfiguration/__init__.py +0 -0
  16. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Lib/SystemConfiguration/_metadata.py +0 -0
  17. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Lib/pyobjc_framework_SystemConfiguration.egg-info/SOURCES.txt +0 -0
  18. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Lib/pyobjc_framework_SystemConfiguration.egg-info/dependency_links.txt +0 -0
  19. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Lib/pyobjc_framework_SystemConfiguration.egg-info/not-zip-safe +0 -0
  20. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Lib/pyobjc_framework_SystemConfiguration.egg-info/top_level.txt +0 -0
  21. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/MANIFEST.in +0 -0
  22. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Modules/_SystemConfiguration.m +0 -0
  23. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Modules/pyobjc-api.h +0 -0
  24. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/Modules/pyobjc-compat.h +0 -0
  25. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/__init__.py +0 -0
  26. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_captivenetwork.py +0 -0
  27. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_dhcpclientpreferences.py +0 -0
  28. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scdynamicstore.py +0 -0
  29. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scdynamicstorecopydhcpinfo.py +0 -0
  30. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scdynamicstorecopyspecific.py +0 -0
  31. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scdynamicstorekey.py +0 -0
  32. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scnetwork.py +0 -0
  33. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scnetworkconfiguration.py +0 -0
  34. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scnetworkconnection.py +0 -0
  35. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scnetworkreachability.py +0 -0
  36. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scpreferences.py +0 -0
  37. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scpreferencespath.py +0 -0
  38. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scpreferencessetspecific.py +0 -0
  39. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_scschemadefinitions.py +0 -0
  40. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/PyObjCTest/test_systemconfiguration.py +0 -0
  41. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/README.txt +0 -0
  42. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/metadata/SystemConfiguration.fwinfo +0 -0
  43. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/metadata/metadata.ini +0 -0
  44. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/pyproject.toml +0 -0
  45. {pyobjc_framework_systemconfiguration-13.0 → pyobjc_framework_systemconfiguration-13.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-SystemConfiguration
3
- Version: 13.0
3
+ Version: 13.1
4
4
  Summary: Wrappers for the framework SystemConfiguration on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -31,8 +31,8 @@ Classifier: Topic :: Software Development :: User Interfaces
31
31
  Requires-Python: >=3.11
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
33
  License-File: LICENSE.txt
34
- Requires-Dist: pyobjc-core>=13.0
35
- Requires-Dist: pyobjc-framework-Cocoa>=13.0
34
+ Requires-Dist: pyobjc-core>=13.1
35
+ Requires-Dist: pyobjc-framework-Cocoa>=13.1
36
36
  Dynamic: author
37
37
  Dynamic: author-email
38
38
  Dynamic: classifier
@@ -1,3 +1,3 @@
1
- macOS 27.2 (26B123)
1
+ macOS 27.2.1 (26B131)
2
2
  Apple clang version 21.0.0 (clang-2100.4.1.1)
3
3
  SDK: macOS 27.2
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=13.1
2
+ pyobjc-framework-Cocoa>=13.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-SystemConfiguration
3
- Version: 13.0
3
+ Version: 13.1
4
4
  Summary: Wrappers for the framework SystemConfiguration on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -31,8 +31,8 @@ Classifier: Topic :: Software Development :: User Interfaces
31
31
  Requires-Python: >=3.11
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
33
  License-File: LICENSE.txt
34
- Requires-Dist: pyobjc-core>=13.0
35
- Requires-Dist: pyobjc-framework-Cocoa>=13.0
34
+ Requires-Dist: pyobjc-core>=13.1
35
+ Requires-Dist: pyobjc-framework-Cocoa>=13.1
36
36
  Dynamic: author
37
37
  Dynamic: author-email
38
38
  Dynamic: classifier
@@ -5353,6 +5353,6 @@
5353
5353
  "SCPreferencesSetSpecific.h",
5354
5354
  "SCSchemaDefinitions.h"
5355
5355
  ],
5356
- "release": "macOS 27.2",
5357
- "sdk": "Xcode 27.2 (27B5038i)/MacOSX27.sdk"
5356
+ "release": "macOS 27.3",
5357
+ "sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
5358
5358
  }
@@ -5353,6 +5353,6 @@
5353
5353
  "SCPreferencesSetSpecific.h",
5354
5354
  "SCSchemaDefinitions.h"
5355
5355
  ],
5356
- "release": "macOS 27.2",
5357
- "sdk": "Xcode 27.2 (27B5038i)/MacOSX27.sdk"
5356
+ "release": "macOS 27.3",
5357
+ "sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
5358
5358
  }
@@ -22,12 +22,20 @@ import tempfile
22
22
  import textwrap
23
23
  import time
24
24
  import unittest
25
+ import zipfile
25
26
  from fnmatch import fnmatch
26
27
  from sysconfig import get_config_var, get_config_vars
27
28
  from setuptools import Command
28
29
  from setuptools import Extension as _Extension
29
30
  from setuptools import setup as _setup
30
- from setuptools.command import build_ext, build_py, develop, egg_info, install_lib
31
+ from setuptools.command import (
32
+ build_ext,
33
+ build_py,
34
+ develop,
35
+ egg_info,
36
+ install_lib,
37
+ bdist_wheel,
38
+ )
31
39
 
32
40
  from distutils import log
33
41
  from distutils.errors import DistutilsError, DistutilsPlatformError
@@ -43,6 +51,29 @@ except ImportError:
43
51
  from distutils.command import build
44
52
 
45
53
 
54
+ class oc_bdist_wheel(bdist_wheel.bdist_wheel):
55
+ def run(self):
56
+ super().run()
57
+ if (
58
+ self.distribution.dist_files
59
+ and self.distribution.dist_files[-1][0] == "bdist_wheel"
60
+ ):
61
+ ok = True
62
+ zf = zipfile.ZipFile(self.distribution.dist_files[-1][-1], "r")
63
+ for nm in zf.namelist():
64
+ if ".dist-info/" in nm:
65
+ continue
66
+
67
+ if nm.startswith("PyObjCTest/"):
68
+ print("test file included in wheel:", nm)
69
+ if not any(nm.endswith(sfx) for sfx in (".pyi", ".py", ".so")):
70
+ print("unexpected name in wheel:", nm)
71
+ ok = False
72
+
73
+ if not ok:
74
+ raise DistutilsError("Wheel validation failed")
75
+
76
+
46
77
  class oc_build_py(build_py.build_py):
47
78
  def build_packages(self):
48
79
  log.info("overriding build_packages to copy PyObjCTest")
@@ -309,6 +340,10 @@ class pyobjc_install_lib(install_lib.install_lib):
309
340
  else:
310
341
  outputs = install_lib.orig.install_lib.get_outputs(self)
311
342
 
343
+ import pprint
344
+
345
+ pprint.pprint(outputs)
346
+
312
347
  exclusions = {}
313
348
  for fn in outputs:
314
349
  if "PyObjCTest" in fn:
@@ -438,9 +473,30 @@ class pyobjc_build_ext(build_ext.build_ext):
438
473
  if os.path.exists("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
439
474
  raise DistutilsError("pyobjc-api.h not included")
440
475
 
476
+ # Save mtimes for C extensions
477
+ prebuild_mtimes = {}
478
+ for ext in self.extensions:
479
+ fullname = self.get_ext_fullname(ext.name)
480
+ filename = self.get_ext_filename(fullname)
481
+ full_path = os.path.join(self.build_lib, filename)
482
+ if os.path.exists(full_path):
483
+ prebuild_mtimes[full_path] = os.stat(full_path).st_mtime
484
+
441
485
  # Run the actual build
442
486
  build_ext.build_ext.run(self)
443
487
 
488
+ # Ensure debug symbols are available:
489
+ for ext in self.extensions:
490
+ fullname = self.get_ext_fullname(ext.name)
491
+ filename = self.get_ext_filename(fullname)
492
+ full_path = os.path.join(self.build_lib, filename)
493
+
494
+ if self.inplace:
495
+ if full_path not in prebuild_mtimes or (
496
+ prebuild_mtimes[full_path] != os.stat(full_path).st_mtime
497
+ ):
498
+ subprocess.check_call(["/usr/bin/dsymutil", full_path])
499
+
444
500
  # Then tweak the copy_extensions bit to ensure PyObjCTest gets
445
501
  # copied to the right place.
446
502
  extensions = self.extensions
@@ -567,6 +623,8 @@ def setup(
567
623
  else:
568
624
  cmdclass = cmdclass.copy()
569
625
 
626
+ cmdclass["bdist_wheel"] = oc_bdist_wheel
627
+
570
628
  if os_compatible or ("bdist_wheel" in sys.argv and "ext_modules" not in k):
571
629
  cmdclass["build_ext"] = pyobjc_build_ext
572
630
  cmdclass["egg_info"] = oc_egg_info
@@ -15,7 +15,7 @@ sys.path.insert(0, os.path.dirname(__file__))
15
15
 
16
16
  from pyobjc_setup import Extension, setup # noqa: E402
17
17
 
18
- VERSION = "13.0"
18
+ VERSION = "13.1"
19
19
 
20
20
  setup(
21
21
  name="pyobjc-framework-SystemConfiguration",
@@ -1,2 +0,0 @@
1
- pyobjc-core>=13.0
2
- pyobjc-framework-Cocoa>=13.0