pyobjc-framework-Automator 12.2.2__tar.gz → 13.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 (56) hide show
  1. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Lib/Automator/_metadata.py +3 -2
  2. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Lib/pyobjc_framework_Automator.egg-info/PKG-INFO +5 -5
  3. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Lib/pyobjc_framework_Automator.egg-info/SOURCES.txt +2 -2
  4. pyobjc_framework_automator-13.0/Lib/pyobjc_framework_Automator.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_automator-13.0/Lib/pyobjc_framework_Automator.egg-info/requires.txt +2 -0
  6. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Modules/_Automator.m +10 -2
  7. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Modules/_Automator_protocols.m +6 -0
  8. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Modules/pyobjc-api.h +18 -4
  9. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Modules/pyobjc-compat.h +0 -18
  10. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PKG-INFO +5 -5
  11. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/test_amaction.py +12 -20
  12. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/test_ambundleaction.py +1 -1
  13. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/test_amshellscriptaction.py +1 -1
  14. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/test_amworkflow.py +2 -3
  15. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/test_amworkflowcontroller.py +4 -5
  16. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/test_amworkflowview.py +2 -3
  17. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/test_amworkspace.py +1 -1
  18. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/test_automator.py +2 -2
  19. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/test_automatorerrors.py +7 -8
  20. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/metadata/Automator.fwinfo +1 -40
  21. pyobjc_framework_automator-12.2.2/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_automator-13.0/metadata/raw/arm64-27.fwinfo +2 -3
  22. pyobjc_framework_automator-12.2.2/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_automator-13.0/metadata/raw/x86_64-27.fwinfo +2 -3
  23. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/pyobjc_setup.py +7 -7
  24. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/setup.py +1 -1
  25. pyobjc_framework_automator-12.2.2/Lib/pyobjc_framework_Automator.egg-info/pyobjc-build-info.txt +0 -3
  26. pyobjc_framework_automator-12.2.2/Lib/pyobjc_framework_Automator.egg-info/requires.txt +0 -2
  27. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/Controller.py +0 -0
  28. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/English.lproj/InfoPlist.strings +0 -0
  29. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/English.lproj/MainMenu.nib/designable.nib +0 -0
  30. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/English.lproj/MainMenu.nib/keyedobjects.nib +0 -0
  31. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/ReadMe.txt +0 -0
  32. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/main.py +0 -0
  33. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/setup.py +0 -0
  34. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/summary.txt +0 -0
  35. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/workflows/Hello World.workflow/Contents/QuickLook/Preview.pdf +0 -0
  36. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/workflows/Hello World.workflow/Contents/document.wflow +0 -0
  37. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/workflows/Run Automator.workflow/Contents/QuickLook/Preview.pdf +0 -0
  38. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/workflows/Run Automator.workflow/Contents/document.wflow +0 -0
  39. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/workflows/Small Step.workflow/Contents/QuickLook/Preview.pdf +0 -0
  40. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/AutoSample/workflows/Small Step.workflow/Contents/document.wflow +0 -0
  41. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/Get Buddy Info/English.lproj/InfoPlist.strings +0 -0
  42. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/Get Buddy Info/GetBuddyInfo.py +0 -0
  43. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/Get Buddy Info/Info.plist +0 -0
  44. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/Get Buddy Info/setup.py +0 -0
  45. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Examples/Get Buddy Info/summary.txt +0 -0
  46. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/LICENSE.txt +0 -0
  47. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Lib/Automator/__init__.py +0 -0
  48. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Lib/pyobjc_framework_Automator.egg-info/dependency_links.txt +0 -0
  49. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Lib/pyobjc_framework_Automator.egg-info/not-zip-safe +0 -0
  50. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/Lib/pyobjc_framework_Automator.egg-info/top_level.txt +0 -0
  51. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/MANIFEST.in +0 -0
  52. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/PyObjCTest/__init__.py +0 -0
  53. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/README.txt +0 -0
  54. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/metadata/metadata.ini +0 -0
  55. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/pyproject.toml +0 -0
  56. {pyobjc_framework_automator-12.2.2 → pyobjc_framework_automator-13.0}/setup.cfg +0 -0
@@ -1,7 +1,5 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Sun May 24 11:42:51 2026
4
- #
5
3
  # flake8: noqa
6
4
 
7
5
  import objc, sys
@@ -187,5 +185,8 @@ protocols = {
187
185
  )
188
186
  }
189
187
  expressions = {}
188
+ formal_protocols = {
189
+ "AMWorkflowControllerDelegate": "AMWorkflowControllerDelegate",
190
+ }
190
191
 
191
192
  # END OF FILE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-Automator
3
- Version: 12.2.2
3
+ Version: 13.0
4
4
  Summary: Wrappers for the framework Automator 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.10
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>=12.2.2
35
- Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
34
+ Requires-Dist: pyobjc-core>=13.0
35
+ Requires-Dist: pyobjc-framework-Cocoa>=13.0
36
36
  Dynamic: author
37
37
  Dynamic: author-email
38
38
  Dynamic: classifier
@@ -48,5 +48,5 @@ PyObjCTest/test_automator.py
48
48
  PyObjCTest/test_automatorerrors.py
49
49
  metadata/Automator.fwinfo
50
50
  metadata/metadata.ini
51
- metadata/raw/arm64-26.5.fwinfo
52
- metadata/raw/x86_64-26.5.fwinfo
51
+ metadata/raw/arm64-27.fwinfo
52
+ metadata/raw/x86_64-27.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 27.2 (26B123)
2
+ Apple clang version 21.0.0 (clang-2100.4.1.1)
3
+ SDK: macOS 27.2
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=13.0
2
+ pyobjc-framework-Cocoa>=13.0
@@ -2,6 +2,10 @@
2
2
  #include "Python.h"
3
3
  #include "pyobjc-api.h"
4
4
 
5
+ #ifdef USE_STATIC_ANALYZER
6
+ #include "../../pyobjc-core/Modules/objc/python-api-used.h"
7
+ #endif
8
+
5
9
  #import <Automator/Automator.h>
6
10
 
7
11
  /* We include the source code here instead of
@@ -9,6 +13,8 @@
9
13
  */
10
14
  #include "_Automator_protocols.m"
11
15
 
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
12
18
  static PyMethodDef mod_methods[] = {
13
19
  {0, 0, 0, 0} /* sentinel */
14
20
  };
@@ -54,10 +60,12 @@ static struct PyModuleDef mod_module = {
54
60
  .m_free = NULL,
55
61
  };
56
62
 
57
- PyObject* PyInit__Automator(void);
63
+ PyObject* _Nullable PyInit__Automator(void);
58
64
 
59
- PyObject* __attribute__((__visibility__("default")))
65
+ PyObject* _Nullable __attribute__((__visibility__("default")))
60
66
  PyInit__Automator(void)
61
67
  {
62
68
  return PyModuleDef_Init(&mod_module);
63
69
  }
70
+
71
+ NS_ASSUME_NONNULL_END
@@ -1,3 +1,7 @@
1
+ // LCOV_EXCL_START
2
+ // This function is only present to ensure protocols are
3
+ // available at runtime.
4
+ NS_ASSUME_NONNULL_BEGIN
1
5
  static void __attribute__((__used__))
2
6
  use_protocols(void)
3
7
  {
@@ -7,3 +11,5 @@ use_protocols(void)
7
11
  Py_XDECREF(p);
8
12
  #endif
9
13
  }
14
+ NS_ASSUME_NONNULL_END
15
+ // LCOV_EXCL_STOP
@@ -60,6 +60,11 @@ typedef int(RegisterMethodMappingFunctionType)(
60
60
  PyObject* _Nonnull const* _Nonnull, size_t),
61
61
  IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
62
62
 
63
+ #ifndef PyObjC_FUNCTION_CALL_H
64
+ typedef PyObject* _Nullable (*PyObjC_FunctionCallFunc)(
65
+ PyObject* meth, PyObject* _Nonnull const* _Nonnull args, size_t nargs);
66
+ #endif
67
+
63
68
  struct pyobjc_api {
64
69
  int api_version; /* API version */
65
70
  size_t struct_len; /* Length of this struct */
@@ -117,6 +122,9 @@ struct pyobjc_api {
117
122
 
118
123
  PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
119
124
  const char*);
125
+ int (*_Nonnull register_functioncaller)(void*, PyObjC_FunctionCallFunc);
126
+ PyObject* _Nullable (*_Nonnull create_registered_struct)(
127
+ const char*, Py_ssize_t, const char* _Nonnull* _Nullable, Py_ssize_t*);
120
128
  };
121
129
 
122
130
  #ifndef PYOBJC_BUILD
@@ -159,6 +167,8 @@ static struct pyobjc_api* PyObjC_API;
159
167
  #define PyObjC_CheckArgCount (PyObjC_API->checkargcount)
160
168
  #define PyObjC_CheckNoKwnames (PyObjC_API->checknokwnames)
161
169
  #define PyObjCCreateOpaquePointerType (PyObjC_API->createopaquepointertype)
170
+ #define PyObjCRegister_FunctionCaller (PyObjC_API->register_functioncaller)
171
+ #define PyObjC_CreateRegisteredStruct (PyObjC_API->create_registered_struct)
162
172
 
163
173
  typedef void (*PyObjC_Function_Pointer)(void);
164
174
  typedef struct PyObjC_function_map {
@@ -178,21 +188,25 @@ static inline int
178
188
  PyObjC_ImportAPI(PyObject* calling_module)
179
189
  {
180
190
  PyObjC_API = (struct pyobjc_api*)PyCapsule_Import("objc." PYOBJC_API_NAME, 0);
181
- if (PyObjC_API == NULL) {
182
- return -1;
191
+ if (PyObjC_API == NULL) { // LCOV_BR_EXCL_LINE
192
+ return -1; // LCOV_EXCL_LINE
183
193
  }
184
- if (PyObjC_API->api_version != PYOBJC_API_VERSION) {
194
+ if (PyObjC_API->api_version != PYOBJC_API_VERSION) { // LCOV_BR_EXCL_LINE
195
+ // LCOV_EXCL_START
185
196
  PyErr_Format(PyExc_RuntimeError,
186
197
  "Wrong version of PyObjC C API (got %d, expected %d)",
187
198
  (int)PyObjC_API->api_version, (int)PYOBJC_API_VERSION);
188
199
  return -1;
200
+ // LCOV_EXCL_STOP
189
201
  }
190
202
 
191
- if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) {
203
+ if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) { // LCOV_EXCL_LINE
204
+ // LCOV_EXCL_START
192
205
  PyErr_Format(PyExc_RuntimeError,
193
206
  "Wrong struct-size of PyObjC C API (got %d, expected %d)",
194
207
  (int)PyObjC_API->struct_len, (int)sizeof(struct pyobjc_api));
195
208
  return -1;
209
+ // LCOV_EXCL_STOP
196
210
  }
197
211
 
198
212
  /* Current pyobjc implementation doesn't allow deregistering
@@ -167,24 +167,6 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
167
167
  PyGILState_Release(_GILState); \
168
168
  } while (0)
169
169
 
170
- #if PY_VERSION_HEX < 0x030a0000
171
-
172
- static inline PyObject*
173
- Py_NewRef(PyObject* o)
174
- {
175
- Py_INCREF(o);
176
- return o;
177
- }
178
-
179
- static inline PyObject*
180
- Py_XNewRef(PyObject* o)
181
- {
182
- Py_XINCREF(o);
183
- return o;
184
- }
185
-
186
- #endif /* PY_VERSION_HEX < 0x030a0000 */
187
-
188
170
  #if PY_VERSION_HEX < 0x030d0000
189
171
  #define Py_BEGIN_CRITICAL_SECTION(value) \
190
172
  { \
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-Automator
3
- Version: 12.2.2
3
+ Version: 13.0
4
4
  Summary: Wrappers for the framework Automator 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.10
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>=12.2.2
35
- Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
34
+ Requires-Dist: pyobjc-core>=13.0
35
+ Requires-Dist: pyobjc-framework-Cocoa>=13.0
36
36
  Dynamic: author
37
37
  Dynamic: author-email
38
38
  Dynamic: classifier
@@ -1,31 +1,23 @@
1
1
  import Automator
2
- from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ from PyObjCTools.TestSupport import TestCase
3
3
 
4
4
 
5
5
  class TestAMAction(TestCase):
6
- def test_enum_types(self):
6
+ def test_enums(self):
7
7
  self.assertIsEnumType(Automator.AMLogLevel)
8
+ self.assertEqual(Automator.AMLogLevelDebug, 0)
9
+ self.assertEqual(Automator.AMLogLevelInfo, 1)
10
+ self.assertEqual(Automator.AMLogLevelWarn, 2)
11
+ self.assertEqual(Automator.AMLogLevelError, 3)
8
12
 
9
- @min_os_level("10.7")
10
- def testMethods10_7(self):
11
- self.assertArgIsPrintf(Automator.AMAction.logMessageWithLevel_format_, 1)
12
- self.assertArgIsOut(Automator.AMAction.runWithInput_error_, 1)
13
+ def test_methods(self):
14
+ self.assertArgIsOut(Automator.AMAction.runWithInput_fromAction_error_, 2)
15
+
16
+ self.assertResultIsBOOL(Automator.AMAction.isStopped)
13
17
 
14
- @min_os_level("10.5")
15
- def testMethods10_5(self):
16
18
  self.assertArgIsOut(Automator.AMAction.initWithContentsOfURL_error_, 1)
17
19
  self.assertArgIsBOOL(Automator.AMAction.initWithDefinition_fromArchive_, 1)
18
20
  self.assertResultIsBOOL(Automator.AMAction.ignoresInput)
19
21
 
20
- def testMethods(self):
21
- self.assertArgIsOut(Automator.AMAction.runWithInput_fromAction_error_, 2)
22
-
23
- @min_os_level("10.6")
24
- def testMethods10_6(self):
25
- self.assertResultIsBOOL(Automator.AMAction.isStopped)
26
-
27
- def testConstants(self):
28
- self.assertEqual(Automator.AMLogLevelDebug, 0)
29
- self.assertEqual(Automator.AMLogLevelInfo, 1)
30
- self.assertEqual(Automator.AMLogLevelWarn, 2)
31
- self.assertEqual(Automator.AMLogLevelError, 3)
22
+ self.assertArgIsPrintf(Automator.AMAction.logMessageWithLevel_format_, 1)
23
+ self.assertArgIsOut(Automator.AMAction.runWithInput_error_, 1)
@@ -3,7 +3,7 @@ from PyObjCTools.TestSupport import TestCase
3
3
 
4
4
 
5
5
  class TestAMBundleAction(TestCase):
6
- def testMethods(self):
6
+ def test_methods(self):
7
7
  self.assertArgIsBOOL(
8
8
  Automator.AMBundleAction.initWithDefinition_fromArchive_, 1
9
9
  )
@@ -3,5 +3,5 @@ from PyObjCTools.TestSupport import TestCase
3
3
 
4
4
 
5
5
  class TestAMShellScriptAction(TestCase):
6
- def testMethods(self):
6
+ def test_methods(self):
7
7
  self.assertResultIsBOOL(Automator.AMShellScriptAction.remapLineEndings)
@@ -1,10 +1,9 @@
1
1
  import Automator
2
- from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ from PyObjCTools.TestSupport import TestCase
3
3
 
4
4
 
5
5
  class TestAMWorkflow(TestCase):
6
- @min_os_level("10.5")
7
- def testMethods(self):
6
+ def test_methods(self):
8
7
  self.assertArgIsOut(Automator.AMWorkflow.runWorkflowAtURL_withInput_error_, 2)
9
8
  self.assertArgIsOut(Automator.AMWorkflow.initWithContentsOfURL_error_, 1)
10
9
  self.assertResultIsBOOL(Automator.AMWorkflow.writeToURL_error_)
@@ -1,14 +1,13 @@
1
1
  import Automator
2
- from PyObjCTools.TestSupport import TestCase, min_os_level, min_sdk_level
2
+ from PyObjCTools.TestSupport import TestCase, min_sdk_level
3
3
 
4
4
 
5
5
  class TestAMWorkflowController(TestCase):
6
- @min_os_level("10.5")
7
- def testMethods(self):
6
+ def test_methods(self):
8
7
  self.assertResultIsBOOL(Automator.AMWorkflowController.canRun)
9
8
  self.assertResultIsBOOL(Automator.AMWorkflowController.isRunning)
10
9
  self.assertResultIsBOOL(Automator.AMWorkflowController.isPaused)
11
10
 
12
11
  @min_sdk_level("10.13")
13
- def testProtocols(self):
14
- self.assertProtocolExists("AMWorkflowControllerDelegate")
12
+ def test_protocols(self):
13
+ self.assertProtocolExists("AMWorkflowControllerDelegate", Automator)
@@ -1,9 +1,8 @@
1
1
  import Automator
2
- from PyObjCTools.TestSupport import TestCase, min_os_level
2
+ from PyObjCTools.TestSupport import TestCase
3
3
 
4
4
 
5
5
  class TestAMWorkflowView(TestCase):
6
- @min_os_level("10.5")
7
- def testMethods(self):
6
+ def test_methods(self):
8
7
  self.assertResultIsBOOL(Automator.AMWorkflowView.isEditable)
9
8
  self.assertArgIsBOOL(Automator.AMWorkflowView.setEditable_, 0)
@@ -4,5 +4,5 @@ from PyObjCTools.TestSupport import TestCase, min_os_level
4
4
 
5
5
  class TestAMWorkspace(TestCase):
6
6
  @min_os_level("10.13")
7
- def testMethods10_13(self):
7
+ def test_methods10_13(self):
8
8
  self.assertArgIsOut(Automator.AMWorkspace.runWorkflowAtPath_withInput_error_, 2)
@@ -4,14 +4,14 @@ from PyObjCTools.TestSupport import TestCase
4
4
 
5
5
 
6
6
  class TestAutomator(TestCase):
7
- def testClasses(self):
7
+ def test_classes(self):
8
8
  self.assertHasAttr(Automator, "AMAction")
9
9
  self.assertIsInstance(Automator.AMAction, objc.objc_class)
10
10
 
11
11
  self.assertHasAttr(Automator, "AMAppleScriptAction")
12
12
  self.assertIsInstance(Automator.AMAppleScriptAction, objc.objc_class)
13
13
 
14
- def testInformalProtocols(self):
14
+ def test_informal_protocolsProtocols(self):
15
15
  self.assertNotHasAttr(Automator, "protocols")
16
16
 
17
17
 
@@ -3,15 +3,8 @@ from PyObjCTools.TestSupport import TestCase
3
3
 
4
4
 
5
5
  class TestAutomatorErrors(TestCase):
6
- def test_enum_types(self):
6
+ def test_enums(self):
7
7
  self.assertIsEnumType(Automator.AMErrorCode)
8
-
9
- def testConstants(self):
10
- self.assertEqual(Automator.AMAutomatorErrorDomain, "com.apple.Automator")
11
- self.assertEqual(Automator.AMActionErrorKey, "AMActionErrorKey")
12
- self.assertIsInstance(Automator.AMAutomatorErrorDomain, str)
13
- self.assertIsInstance(Automator.AMActionErrorKey, str)
14
-
15
8
  self.assertEqual(Automator.AMWorkflowNewerVersionError, -100)
16
9
  self.assertEqual(Automator.AMWorkflowPropertyListInvalidError, -101)
17
10
  self.assertEqual(Automator.AMWorkflowNewerActionVersionError, -111)
@@ -46,3 +39,9 @@ class TestAutomatorErrors(TestCase):
46
39
  self.assertEqual(Automator.AMConversionNotPossibleError, -300)
47
40
  self.assertEqual(Automator.AMConversionNoDataError, -301)
48
41
  self.assertEqual(Automator.AMConversionFailedError, -302)
42
+
43
+ def test_constants(self):
44
+ self.assertEqual(Automator.AMAutomatorErrorDomain, "com.apple.Automator")
45
+ self.assertEqual(Automator.AMActionErrorKey, "AMActionErrorKey")
46
+ self.assertIsInstance(Automator.AMAutomatorErrorDomain, str)
47
+ self.assertIsInstance(Automator.AMActionErrorKey, str)
@@ -2,25 +2,7 @@
2
2
  # for information on how to update this file.
3
3
  {
4
4
  "definitions": {
5
- "enum": {
6
- "AMWorkflowActionsNotLoadedError": { "value": -113 },
7
- "AMWorkflowNoEnabledActionsError": { "value": -114 },
8
- "AMActionThirdPartyActionsNotAllowedError": { "value": -222 }
9
- },
10
5
  "classes": {
11
- "AMWorkspace": {
12
- "methods": [
13
- {
14
- "selector": "runWorkflowAtPath:withInput:error:",
15
- "class_method": false,
16
- "args": {
17
- "2": {
18
- "type_modifier": "o"
19
- }
20
- }
21
- }
22
- ]
23
- },
24
6
  "AMAction": {
25
7
  "methods": [
26
8
  {
@@ -41,15 +23,6 @@
41
23
  "class_method": false,
42
24
  "selector": "runWithInput:fromAction:error:"
43
25
  },
44
- {
45
- "args": {
46
- "1": {
47
- "type_modifier": "o"
48
- }
49
- },
50
- "class_method": false,
51
- "selector": "runWithInput:error:"
52
- },
53
26
  {
54
27
  "args": {
55
28
  "1": {
@@ -118,15 +91,6 @@
118
91
  },
119
92
  "AMWorkflow": {
120
93
  "methods": [
121
- {
122
- "args": {
123
- "2": {
124
- "type_modifier": "o"
125
- }
126
- },
127
- "class_method": true,
128
- "selector": "runWorkflowAtURL:withInput:error:"
129
- },
130
94
  {
131
95
  "args": {
132
96
  "1": {
@@ -202,9 +166,6 @@
202
166
  }
203
167
  ]
204
168
  }
205
- },
206
- "formal_protocols": {},
207
- "functions": {},
208
- "informal_protocols": {}
169
+ }
209
170
  }
210
171
  }
@@ -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:42:50 2026
5
4
  {
6
5
  "arch": "arm64",
7
6
  "definitions": {
@@ -2344,6 +2343,6 @@
2344
2343
  "AMWorkspace.h",
2345
2344
  "AutomatorErrors.h"
2346
2345
  ],
2347
- "release": "26.5",
2348
- "sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk"
2346
+ "release": "macOS 27.2",
2347
+ "sdk": "Xcode 27.2 (27B5038i)/MacOSX27.sdk"
2349
2348
  }
@@ -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:42:47 2026
5
4
  {
6
5
  "arch": "x86_64",
7
6
  "definitions": {
@@ -2344,6 +2343,6 @@
2344
2343
  "AMWorkspace.h",
2345
2344
  "AutomatorErrors.h"
2346
2345
  ],
2347
- "release": "26.5",
2348
- "sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk"
2346
+ "release": "macOS 27.2",
2347
+ "sdk": "Xcode 27.2 (27B5038i)/MacOSX27.sdk"
2349
2348
  }
@@ -110,13 +110,11 @@ class oc_egg_info(egg_info.egg_info):
110
110
  else:
111
111
  sdk_version = os.path.basename(sdk_root)
112
112
 
113
- build_info = textwrap.dedent(
114
- f"""\
113
+ build_info = textwrap.dedent(f"""\
115
114
  macOS {macos_version} ({macos_build})
116
115
  {clang_version}
117
116
  SDK: {sdk_version}
118
- """
119
- )
117
+ """)
120
118
 
121
119
  self.write_file(
122
120
  "pyobjc-build-info.txt",
@@ -204,7 +202,7 @@ class oc_test(Command):
204
202
  "errors": len(result.errors),
205
203
  "xfails": len(getattr(result, "expectedFailures", [])),
206
204
  "xpass": len(getattr(result, "unexpectedSuccesses", [])),
207
- "skip=": len(getattr(result, "skipped", [])),
205
+ "skip": len(getattr(result, "skipped", [])),
208
206
  "testSeconds": (time_after - time_before),
209
207
  }
210
208
  print(f"SUMMARY: {summary}")
@@ -228,12 +226,12 @@ Operating System :: MacOS :: MacOS X
228
226
  Programming Language :: Python
229
227
  Programming Language :: Python :: 3
230
228
  Programming Language :: Python :: 3 :: Only
231
- Programming Language :: Python :: 3.10
232
229
  Programming Language :: Python :: 3.11
233
230
  Programming Language :: Python :: 3.12
234
231
  Programming Language :: Python :: 3.13
235
232
  Programming Language :: Python :: 3.14
236
233
  Programming Language :: Python :: 3.15
234
+ Programming Language :: Python :: 3.16
237
235
  Programming Language :: Python :: Implementation :: CPython
238
236
  Programming Language :: Python :: Free Threading :: 3 - Stable
239
237
  Programming Language :: Objective C
@@ -499,6 +497,8 @@ def Extension(*args, **kwds):
499
497
  "-DPyObjC_BUILD_RELEASE=%02d%02d"
500
498
  % (tuple(map(int, version.split(".")[:2])))
501
499
  )
500
+ ldflags.append("-isysroot")
501
+ ldflags.append(data)
502
502
  else:
503
503
  cflags.append(
504
504
  "-DPyObjC_BUILD_RELEASE=%02d%02d"
@@ -677,7 +677,7 @@ def setup(
677
677
  zip_safe=False,
678
678
  license="MIT",
679
679
  classifiers=CLASSIFIERS,
680
- python_requires=">=3.10",
680
+ python_requires=">=3.11",
681
681
  keywords=["PyObjC"] + [p for p in k["packages"] if p not in ("PyObjCTools",)],
682
682
  options=options,
683
683
  **k,
@@ -18,7 +18,7 @@ sys.path.insert(0, os.path.dirname(__file__))
18
18
 
19
19
  from pyobjc_setup import setup, Extension # noqa: E402
20
20
 
21
- VERSION = "12.2.2"
21
+ VERSION = "13.0"
22
22
 
23
23
  setup(
24
24
  name="pyobjc-framework-Automator",
@@ -1,3 +0,0 @@
1
- macOS 26.6 (25G70)
2
- Apple clang version 21.0.0 (clang-2100.1.1.101)
3
- SDK: macOS 26.5
@@ -1,2 +0,0 @@
1
- pyobjc-core>=12.2.2
2
- pyobjc-framework-Cocoa>=12.2.2