pyobjc-framework-ServiceManagement 12.2.2__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.
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/Lib/ServiceManagement/__init__.py +2 -3
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/Lib/ServiceManagement/_metadata.py +3 -5
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/Lib/pyobjc_framework_ServiceManagement.egg-info/PKG-INFO +5 -5
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/Lib/pyobjc_framework_ServiceManagement.egg-info/SOURCES.txt +2 -2
- pyobjc_framework_servicemanagement-13.1/Lib/pyobjc_framework_ServiceManagement.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_servicemanagement-13.1/Lib/pyobjc_framework_ServiceManagement.egg-info/requires.txt +2 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/PKG-INFO +5 -5
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/PyObjCTest/test_servicemanagement.py +6 -8
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/PyObjCTest/test_smappservice.py +1 -1
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/PyObjCTest/test_smerrors.py +8 -7
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/PyObjCTest/test_smloginitem.py +2 -3
- pyobjc_framework_servicemanagement-13.1/metadata/ServiceManagement.fwinfo +39 -0
- pyobjc_framework_servicemanagement-12.2.2/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_servicemanagement-13.1/metadata/raw/arm64-27.fwinfo +2 -3
- pyobjc_framework_servicemanagement-12.2.2/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_servicemanagement-13.1/metadata/raw/x86_64-27.fwinfo +2 -3
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/pyobjc_setup.py +66 -8
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/setup.py +1 -1
- pyobjc_framework_servicemanagement-12.2.2/Lib/pyobjc_framework_ServiceManagement.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_servicemanagement-12.2.2/Lib/pyobjc_framework_ServiceManagement.egg-info/requires.txt +0 -2
- pyobjc_framework_servicemanagement-12.2.2/metadata/ServiceManagement.fwinfo +0 -102
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/LICENSE.txt +0 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/Lib/pyobjc_framework_ServiceManagement.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/Lib/pyobjc_framework_ServiceManagement.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/Lib/pyobjc_framework_ServiceManagement.egg-info/top_level.txt +0 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/MANIFEST.in +0 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/PyObjCTest/__init__.py +0 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/README.txt +0 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/metadata/metadata.ini +0 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/pyproject.toml +0 -0
- {pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/setup.cfg +0 -0
|
@@ -13,11 +13,10 @@ def _setup():
|
|
|
13
13
|
import objc
|
|
14
14
|
from . import _metadata
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
if objc.macos_available(10, 10):
|
|
16
|
+
if objc.macos_available(10, 10): # pragma: no branch
|
|
18
17
|
identifier = "com.apple.xpc.ServiceManagement"
|
|
19
18
|
else:
|
|
20
|
-
identifier = "com.apple.bsd.ServiceManagement"
|
|
19
|
+
identifier = "com.apple.bsd.ServiceManagement" # pragma: no cover
|
|
21
20
|
|
|
22
21
|
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
23
22
|
name="ServiceManagement",
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update: Sun May 24 11:58:28 2026
|
|
4
|
-
#
|
|
5
3
|
# flake8: noqa
|
|
6
4
|
|
|
7
5
|
import objc, sys
|
|
@@ -42,7 +40,7 @@ misc.update(
|
|
|
42
40
|
)
|
|
43
41
|
functions = {
|
|
44
42
|
"SMJobBless": (
|
|
45
|
-
b"Z^{__CFString=}^{__CFString=}^{AuthorizationOpaqueRef=}^^{__CFError}",
|
|
43
|
+
b"Z^{__CFString=}^{__CFString=}^{AuthorizationOpaqueRef=}^^{__CFError=}",
|
|
46
44
|
"",
|
|
47
45
|
{
|
|
48
46
|
"arguments": {
|
|
@@ -55,7 +53,7 @@ functions = {
|
|
|
55
53
|
},
|
|
56
54
|
),
|
|
57
55
|
"SMJobRemove": (
|
|
58
|
-
b"Z^{__CFString=}^{__CFString=}^{AuthorizationOpaqueRef=}Z^^{__CFError}",
|
|
56
|
+
b"Z^{__CFString=}^{__CFString=}^{AuthorizationOpaqueRef=}Z^^{__CFError=}",
|
|
59
57
|
"",
|
|
60
58
|
{
|
|
61
59
|
"arguments": {
|
|
@@ -73,7 +71,7 @@ functions = {
|
|
|
73
71
|
{"retval": {"already_cfretained": True}},
|
|
74
72
|
),
|
|
75
73
|
"SMJobSubmit": (
|
|
76
|
-
b"Z^{__CFString=}^{__CFDictionary=}^{AuthorizationOpaqueRef=}^^{__CFError}",
|
|
74
|
+
b"Z^{__CFString=}^{__CFDictionary=}^{AuthorizationOpaqueRef=}^^{__CFError=}",
|
|
77
75
|
"",
|
|
78
76
|
{
|
|
79
77
|
"arguments": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-ServiceManagement
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.1
|
|
4
4
|
Summary: Wrappers for the framework ServiceManagement on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,22 +17,22 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.14
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.15
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.16
|
|
26
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
27
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
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>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
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
|
{pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-ServiceManagement
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.1
|
|
4
4
|
Summary: Wrappers for the framework ServiceManagement on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,22 +17,22 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.14
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.15
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.16
|
|
26
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
27
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
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>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
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,10 +1,9 @@
|
|
|
1
|
-
from PyObjCTools.TestSupport import TestCase
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase
|
|
2
2
|
import ServiceManagement
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestServiceManagement(TestCase):
|
|
6
|
-
|
|
7
|
-
def testConstants(self):
|
|
6
|
+
def test_constants(self):
|
|
8
7
|
self.assertEqual(
|
|
9
8
|
ServiceManagement.kSMRightBlessPrivilegedHelper,
|
|
10
9
|
b"com.apple.ServiceManagement.blesshelper",
|
|
@@ -19,8 +18,7 @@ class TestServiceManagement(TestCase):
|
|
|
19
18
|
self.assertIsInstance(ServiceManagement.kSMInfoKeyPrivilegedExecutables, str)
|
|
20
19
|
self.assertIsInstance(ServiceManagement.kSMInfoKeyAuthorizedClients, str)
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
def testFunctions(self):
|
|
21
|
+
def test_functions(self):
|
|
24
22
|
self.assertResultHasType(
|
|
25
23
|
ServiceManagement.SMJobCopyDictionary, b"^{__CFDictionary=}"
|
|
26
24
|
)
|
|
@@ -54,7 +52,7 @@ class TestServiceManagement(TestCase):
|
|
|
54
52
|
self.assertArgHasType(
|
|
55
53
|
ServiceManagement.SMJobSubmit, 2, b"^{AuthorizationOpaqueRef=}"
|
|
56
54
|
)
|
|
57
|
-
self.assertArgHasType(ServiceManagement.SMJobSubmit, 3, b"o^^{__CFError}")
|
|
55
|
+
self.assertArgHasType(ServiceManagement.SMJobSubmit, 3, b"o^^{__CFError=}")
|
|
58
56
|
|
|
59
57
|
self.assertResultIsBOOL(ServiceManagement.SMJobRemove)
|
|
60
58
|
self.assertArgHasType(ServiceManagement.SMJobRemove, 0, b"^{__CFString=}")
|
|
@@ -63,7 +61,7 @@ class TestServiceManagement(TestCase):
|
|
|
63
61
|
ServiceManagement.SMJobRemove, 2, b"^{AuthorizationOpaqueRef=}"
|
|
64
62
|
)
|
|
65
63
|
self.assertArgIsBOOL(ServiceManagement.SMJobRemove, 3)
|
|
66
|
-
self.assertArgHasType(ServiceManagement.SMJobRemove, 4, b"o^^{__CFError}")
|
|
64
|
+
self.assertArgHasType(ServiceManagement.SMJobRemove, 4, b"o^^{__CFError=}")
|
|
67
65
|
|
|
68
66
|
self.assertResultIsBOOL(ServiceManagement.SMJobBless)
|
|
69
67
|
self.assertArgHasType(ServiceManagement.SMJobBless, 0, b"^{__CFString=}")
|
|
@@ -71,7 +69,7 @@ class TestServiceManagement(TestCase):
|
|
|
71
69
|
self.assertArgHasType(
|
|
72
70
|
ServiceManagement.SMJobBless, 2, b"^{AuthorizationOpaqueRef=}"
|
|
73
71
|
)
|
|
74
|
-
self.assertArgHasType(ServiceManagement.SMJobBless, 3, b"o^^{__CFError}")
|
|
72
|
+
self.assertArgHasType(ServiceManagement.SMJobBless, 3, b"o^^{__CFError=}")
|
|
75
73
|
|
|
76
74
|
|
|
77
75
|
class TestCallableMetadata(TestCase):
|
|
@@ -3,7 +3,7 @@ import ServiceManagement
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestSMAppService(TestCase):
|
|
6
|
-
def
|
|
6
|
+
def test_enums(self):
|
|
7
7
|
self.assertIsEnumType(ServiceManagement.SMAppServiceStatus)
|
|
8
8
|
self.assertEqual(ServiceManagement.SMAppServiceStatusNotRegistered, 0)
|
|
9
9
|
self.assertEqual(ServiceManagement.SMAppServiceStatusEnabled, 1)
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
from PyObjCTools.TestSupport import TestCase
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase
|
|
2
2
|
import ServiceManagement
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestSMErrors(TestCase):
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
self.assertIsInstance(ServiceManagement.kSMErrorDomainIPC, str)
|
|
9
|
-
self.assertIsInstance(ServiceManagement.kSMErrorDomainFramework, str)
|
|
10
|
-
self.assertIsInstance(ServiceManagement.kSMErrorDomainLaunchd, str)
|
|
11
|
-
|
|
6
|
+
def test_enums(self):
|
|
7
|
+
# Unnamed enum:
|
|
12
8
|
self.assertEqual(ServiceManagement.kSMErrorInternalFailure, 2)
|
|
13
9
|
self.assertEqual(ServiceManagement.kSMErrorInvalidSignature, 3)
|
|
14
10
|
self.assertEqual(ServiceManagement.kSMErrorAuthorizationFailure, 4)
|
|
@@ -20,3 +16,8 @@ class TestSMErrors(TestCase):
|
|
|
20
16
|
self.assertEqual(ServiceManagement.kSMErrorInvalidPlist, 10)
|
|
21
17
|
self.assertEqual(ServiceManagement.kSMErrorLaunchDeniedByUser, 11)
|
|
22
18
|
self.assertEqual(ServiceManagement.kSMErrorAlreadyRegistered, 12)
|
|
19
|
+
|
|
20
|
+
def test_constants(self):
|
|
21
|
+
self.assertIsInstance(ServiceManagement.kSMErrorDomainIPC, str)
|
|
22
|
+
self.assertIsInstance(ServiceManagement.kSMErrorDomainFramework, str)
|
|
23
|
+
self.assertIsInstance(ServiceManagement.kSMErrorDomainLaunchd, str)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import ServiceManagement
|
|
2
|
-
from PyObjCTools.TestSupport import TestCase
|
|
2
|
+
from PyObjCTools.TestSupport import TestCase
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestSMLoginItem(TestCase):
|
|
6
|
-
|
|
7
|
-
def testFunctions(self):
|
|
6
|
+
def test_functions(self):
|
|
8
7
|
self.assertResultIsBOOL(ServiceManagement.SMLoginItemSetEnabled)
|
|
9
8
|
self.assertArgIsBOOL(ServiceManagement.SMLoginItemSetEnabled, 1)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# objective.metada exceptions file, see its document
|
|
2
|
+
# for information on how to update this file.
|
|
3
|
+
{
|
|
4
|
+
"definitions": {
|
|
5
|
+
"externs": {
|
|
6
|
+
"kSMInfoKeyPrivilegedExecutables": { "typestr": "@", "removed": 1010 },
|
|
7
|
+
"kSMInfoKeyAuthorizedClients": { "typestr": "@", "removed": 1010 }
|
|
8
|
+
},
|
|
9
|
+
"functions": {
|
|
10
|
+
"SMJobBless": {
|
|
11
|
+
"args": {
|
|
12
|
+
"3": {
|
|
13
|
+
"already_cfretained": true,
|
|
14
|
+
"null_accepted": true,
|
|
15
|
+
"type_modifier": "o"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"SMJobRemove": {
|
|
20
|
+
"args": {
|
|
21
|
+
"4": {
|
|
22
|
+
"already_cfretained": true,
|
|
23
|
+
"null_accepted": true,
|
|
24
|
+
"type_modifier": "o"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"SMJobSubmit": {
|
|
29
|
+
"args": {
|
|
30
|
+
"3": {
|
|
31
|
+
"already_cfretained": true,
|
|
32
|
+
"null_accepted": true,
|
|
33
|
+
"type_modifier": "o"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// GENERATED FILE DO NOT EDIT
|
|
2
2
|
//
|
|
3
3
|
// This file was generated by objective.metadata
|
|
4
|
-
// Last update: Sun May 24 11:58:28 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "arm64",
|
|
7
6
|
"definitions": {
|
|
@@ -507,6 +506,6 @@
|
|
|
507
506
|
"SMErrors.h",
|
|
508
507
|
"SMLoginItem.h"
|
|
509
508
|
],
|
|
510
|
-
"release": "
|
|
511
|
-
"sdk": "
|
|
509
|
+
"release": "macOS 27.3",
|
|
510
|
+
"sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
|
|
512
511
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// GENERATED FILE DO NOT EDIT
|
|
2
2
|
//
|
|
3
3
|
// This file was generated by objective.metadata
|
|
4
|
-
// Last update: Sun May 24 11:58:26 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "x86_64",
|
|
7
6
|
"definitions": {
|
|
@@ -507,6 +506,6 @@
|
|
|
507
506
|
"SMErrors.h",
|
|
508
507
|
"SMLoginItem.h"
|
|
509
508
|
],
|
|
510
|
-
"release": "
|
|
511
|
-
"sdk": "
|
|
509
|
+
"release": "macOS 27.3",
|
|
510
|
+
"sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
|
|
512
511
|
}
|
|
@@ -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
|
|
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")
|
|
@@ -110,13 +141,11 @@ class oc_egg_info(egg_info.egg_info):
|
|
|
110
141
|
else:
|
|
111
142
|
sdk_version = os.path.basename(sdk_root)
|
|
112
143
|
|
|
113
|
-
build_info = textwrap.dedent(
|
|
114
|
-
f"""\
|
|
144
|
+
build_info = textwrap.dedent(f"""\
|
|
115
145
|
macOS {macos_version} ({macos_build})
|
|
116
146
|
{clang_version}
|
|
117
147
|
SDK: {sdk_version}
|
|
118
|
-
"""
|
|
119
|
-
)
|
|
148
|
+
""")
|
|
120
149
|
|
|
121
150
|
self.write_file(
|
|
122
151
|
"pyobjc-build-info.txt",
|
|
@@ -204,7 +233,7 @@ class oc_test(Command):
|
|
|
204
233
|
"errors": len(result.errors),
|
|
205
234
|
"xfails": len(getattr(result, "expectedFailures", [])),
|
|
206
235
|
"xpass": len(getattr(result, "unexpectedSuccesses", [])),
|
|
207
|
-
"skip
|
|
236
|
+
"skip": len(getattr(result, "skipped", [])),
|
|
208
237
|
"testSeconds": (time_after - time_before),
|
|
209
238
|
}
|
|
210
239
|
print(f"SUMMARY: {summary}")
|
|
@@ -228,12 +257,12 @@ Operating System :: MacOS :: MacOS X
|
|
|
228
257
|
Programming Language :: Python
|
|
229
258
|
Programming Language :: Python :: 3
|
|
230
259
|
Programming Language :: Python :: 3 :: Only
|
|
231
|
-
Programming Language :: Python :: 3.10
|
|
232
260
|
Programming Language :: Python :: 3.11
|
|
233
261
|
Programming Language :: Python :: 3.12
|
|
234
262
|
Programming Language :: Python :: 3.13
|
|
235
263
|
Programming Language :: Python :: 3.14
|
|
236
264
|
Programming Language :: Python :: 3.15
|
|
265
|
+
Programming Language :: Python :: 3.16
|
|
237
266
|
Programming Language :: Python :: Implementation :: CPython
|
|
238
267
|
Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
239
268
|
Programming Language :: Objective C
|
|
@@ -311,6 +340,10 @@ class pyobjc_install_lib(install_lib.install_lib):
|
|
|
311
340
|
else:
|
|
312
341
|
outputs = install_lib.orig.install_lib.get_outputs(self)
|
|
313
342
|
|
|
343
|
+
import pprint
|
|
344
|
+
|
|
345
|
+
pprint.pprint(outputs)
|
|
346
|
+
|
|
314
347
|
exclusions = {}
|
|
315
348
|
for fn in outputs:
|
|
316
349
|
if "PyObjCTest" in fn:
|
|
@@ -440,9 +473,30 @@ class pyobjc_build_ext(build_ext.build_ext):
|
|
|
440
473
|
if os.path.exists("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
|
|
441
474
|
raise DistutilsError("pyobjc-api.h not included")
|
|
442
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
|
+
|
|
443
485
|
# Run the actual build
|
|
444
486
|
build_ext.build_ext.run(self)
|
|
445
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
|
+
|
|
446
500
|
# Then tweak the copy_extensions bit to ensure PyObjCTest gets
|
|
447
501
|
# copied to the right place.
|
|
448
502
|
extensions = self.extensions
|
|
@@ -499,6 +553,8 @@ def Extension(*args, **kwds):
|
|
|
499
553
|
"-DPyObjC_BUILD_RELEASE=%02d%02d"
|
|
500
554
|
% (tuple(map(int, version.split(".")[:2])))
|
|
501
555
|
)
|
|
556
|
+
ldflags.append("-isysroot")
|
|
557
|
+
ldflags.append(data)
|
|
502
558
|
else:
|
|
503
559
|
cflags.append(
|
|
504
560
|
"-DPyObjC_BUILD_RELEASE=%02d%02d"
|
|
@@ -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
|
|
@@ -677,7 +735,7 @@ def setup(
|
|
|
677
735
|
zip_safe=False,
|
|
678
736
|
license="MIT",
|
|
679
737
|
classifiers=CLASSIFIERS,
|
|
680
|
-
python_requires=">=3.
|
|
738
|
+
python_requires=">=3.11",
|
|
681
739
|
keywords=["PyObjC"] + [p for p in k["packages"] if p not in ("PyObjCTools",)],
|
|
682
740
|
options=options,
|
|
683
741
|
**k,
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# objective.metada exceptions file, see its document
|
|
2
|
-
# for information on how to update this file.
|
|
3
|
-
{
|
|
4
|
-
"definitions": {
|
|
5
|
-
"classes": {},
|
|
6
|
-
"formal_protocols": {},
|
|
7
|
-
"externs": {
|
|
8
|
-
"kSMInfoKeyPrivilegedExecutables": { "typestr": "@" },
|
|
9
|
-
"kSMInfoKeyAuthorizedClients": { "typestr": "@" }
|
|
10
|
-
},
|
|
11
|
-
"functions": {
|
|
12
|
-
"SMCopyAllJobDictionaries": {
|
|
13
|
-
"args": {
|
|
14
|
-
"0": {
|
|
15
|
-
"type_override": "^{__CFString=}"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"retval": {
|
|
19
|
-
"already_cfretained": true,
|
|
20
|
-
"type_override": "^{__CFArray=}"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"SMJobBless": {
|
|
24
|
-
"args": {
|
|
25
|
-
"0": {
|
|
26
|
-
"type_override": "^{__CFString=}"
|
|
27
|
-
},
|
|
28
|
-
"1": {
|
|
29
|
-
"type_override": "^{__CFString=}"
|
|
30
|
-
},
|
|
31
|
-
"2": {
|
|
32
|
-
"type_override": "^{AuthorizationOpaqueRef=}"
|
|
33
|
-
},
|
|
34
|
-
"3": {
|
|
35
|
-
"already_cfretained": true,
|
|
36
|
-
"null_accepted": true,
|
|
37
|
-
"type_modifier": "o",
|
|
38
|
-
"type_override": "^^{__CFError}"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"SMJobCopyDictionary": {
|
|
43
|
-
"args": {
|
|
44
|
-
"0": {
|
|
45
|
-
"type_override": "^{__CFString=}"
|
|
46
|
-
},
|
|
47
|
-
"1": {
|
|
48
|
-
"type_override": "^{__CFString=}"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"retval": {
|
|
52
|
-
"already_cfretained": true,
|
|
53
|
-
"type_override": "^{__CFDictionary=}"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"SMJobRemove": {
|
|
57
|
-
"args": {
|
|
58
|
-
"0": {
|
|
59
|
-
"type_override": "^{__CFString=}"
|
|
60
|
-
},
|
|
61
|
-
"1": {
|
|
62
|
-
"type_override": "^{__CFString=}"
|
|
63
|
-
},
|
|
64
|
-
"2": {
|
|
65
|
-
"type_override": "^{AuthorizationOpaqueRef=}"
|
|
66
|
-
},
|
|
67
|
-
"4": {
|
|
68
|
-
"already_cfretained": true,
|
|
69
|
-
"null_accepted": true,
|
|
70
|
-
"type_modifier": "o",
|
|
71
|
-
"type_override": "^^{__CFError}"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"SMJobSubmit": {
|
|
76
|
-
"args": {
|
|
77
|
-
"0": {
|
|
78
|
-
"type_override": "^{__CFString=}"
|
|
79
|
-
},
|
|
80
|
-
"1": {
|
|
81
|
-
"type_override": "^{__CFDictionary=}"
|
|
82
|
-
},
|
|
83
|
-
"2": {
|
|
84
|
-
"type_override": "^{AuthorizationOpaqueRef=}"
|
|
85
|
-
},
|
|
86
|
-
"3": {
|
|
87
|
-
"already_cfretained": true,
|
|
88
|
-
"null_accepted": true,
|
|
89
|
-
"type_modifier": "o",
|
|
90
|
-
"type_override": "^^{__CFError}"
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"SMLoginItemSetEnabled": {
|
|
95
|
-
"args": {
|
|
96
|
-
"0": {}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"informal_protocols": {}
|
|
101
|
-
}
|
|
102
|
-
}
|
{pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/MANIFEST.in
RENAMED
|
File without changes
|
|
File without changes
|
{pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/README.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/pyproject.toml
RENAMED
|
File without changes
|
{pyobjc_framework_servicemanagement-12.2.2 → pyobjc_framework_servicemanagement-13.1}/setup.cfg
RENAMED
|
File without changes
|