pyobjc-framework-StoreKit 12.2.1__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.
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Lib/StoreKit/_metadata.py +10 -2
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Lib/pyobjc_framework_StoreKit.egg-info/PKG-INFO +5 -5
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Lib/pyobjc_framework_StoreKit.egg-info/SOURCES.txt +2 -2
- pyobjc_framework_storekit-13.0/Lib/pyobjc_framework_StoreKit.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_storekit-13.0/Lib/pyobjc_framework_StoreKit.egg-info/requires.txt +2 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Modules/_StoreKit.m +9 -2
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Modules/_StoreKit_protocols.m +7 -5
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Modules/pyobjc-api.h +18 -4
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Modules/pyobjc-compat.h +0 -18
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PKG-INFO +5 -5
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skcloudservicecontroller.py +2 -4
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skdownloaderextension.py +1 -1
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skpaymentqueue.py +8 -7
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skpaymenttransaction.py +1 -3
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skproduct.py +1 -3
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skproductdiscount.py +2 -4
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skproductsrequest.py +1 -1
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skreceiptrefreshrequest.py +0 -1
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skrequest.py +1 -1
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skstoreproductviewcontroller.py +1 -1
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_storekit.py +4 -4
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/metadata/StoreKit.fwinfo +1 -39
- pyobjc_framework_storekit-12.2.1/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_storekit-13.0/metadata/raw/arm64-27.fwinfo +2 -3
- pyobjc_framework_storekit-12.2.1/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_storekit-13.0/metadata/raw/x86_64-27.fwinfo +2 -3
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/pyobjc_setup.py +7 -7
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/setup.py +1 -1
- pyobjc_framework_storekit-12.2.1/Lib/pyobjc_framework_StoreKit.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_storekit-12.2.1/Lib/pyobjc_framework_StoreKit.egg-info/requires.txt +0 -2
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Lib/StoreKit/__init__.py +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Lib/pyobjc_framework_StoreKit.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Lib/pyobjc_framework_StoreKit.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Lib/pyobjc_framework_StoreKit.egg-info/top_level.txt +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/License.txt +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/MANIFEST.in +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skarcadeservice.py +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skdownload.py +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skerror.py +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skpayment.py +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skproductstorepromotioncontroller.py +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_storekitdefines.py +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/metadata/metadata.ini +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/pyproject.toml +0 -0
- {pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/setup.cfg +0 -0
{pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Lib/StoreKit/_metadata.py
RENAMED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update: Sun May 24 11:59:30 2026
|
|
4
|
-
#
|
|
5
3
|
# flake8: noqa
|
|
6
4
|
|
|
7
5
|
import objc, sys
|
|
@@ -608,5 +606,15 @@ objc.registerNewKeywords("SKPayment", ("product",), "paymentWithProduct_")
|
|
|
608
606
|
expressions = {
|
|
609
607
|
"StoreKitBundle": "NSBundle.bundleWithPath_('/System/Library/Frameworks/StoreKit.framework')"
|
|
610
608
|
}
|
|
609
|
+
formal_protocols = {
|
|
610
|
+
"SKCloudServiceSetupViewControllerDelegate": "SKCloudServiceSetupViewControllerDelegate",
|
|
611
|
+
"SKDownloaderExtension": "SKDownloaderExtension",
|
|
612
|
+
"SKOverlayDelegate": "SKOverlayDelegate",
|
|
613
|
+
"SKPaymentQueueDelegate": "SKPaymentQueueDelegate",
|
|
614
|
+
"SKPaymentTransactionObserver": "SKPaymentTransactionObserver",
|
|
615
|
+
"SKProductsRequestDelegate": "SKProductsRequestDelegate",
|
|
616
|
+
"SKRequestDelegate": "SKRequestDelegate",
|
|
617
|
+
"SKStoreProductViewControllerDelegate": "SKStoreProductViewControllerDelegate",
|
|
618
|
+
}
|
|
611
619
|
|
|
612
620
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-StoreKit
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.0
|
|
4
4
|
Summary: Wrappers for the framework StoreKit on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,21 +17,21 @@ 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
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=13.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.0
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -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 <StoreKit/StoreKit.h>
|
|
6
10
|
|
|
7
11
|
/* We include the source code here instead of
|
|
@@ -9,6 +13,8 @@
|
|
|
9
13
|
*/
|
|
10
14
|
#include "_StoreKit_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,11 @@ static struct PyModuleDef mod_module = {
|
|
|
54
60
|
.m_free = NULL,
|
|
55
61
|
};
|
|
56
62
|
|
|
57
|
-
PyObject* PyInit__StoreKit(void);
|
|
63
|
+
PyObject* _Nullable PyInit__StoreKit(void);
|
|
58
64
|
|
|
59
|
-
PyObject* __attribute__((__visibility__("default")))
|
|
65
|
+
PyObject* _Nullable __attribute__((__visibility__("default")))
|
|
60
66
|
PyInit__StoreKit(void)
|
|
61
67
|
{
|
|
62
68
|
return PyModuleDef_Init(&mod_module);
|
|
63
69
|
}
|
|
70
|
+
NS_ASSUME_NONNULL_END
|
{pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Modules/_StoreKit_protocols.m
RENAMED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
1
|
+
// LCOV_EXCL_START
|
|
2
|
+
// This function is only present to ensure protocols are
|
|
3
|
+
// available at runtime.
|
|
4
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
6
5
|
|
|
7
6
|
static void __attribute__((__used__))
|
|
8
7
|
use_protocols(void)
|
|
@@ -27,3 +26,6 @@ use_protocols(void)
|
|
|
27
26
|
Py_XDECREF(p);
|
|
28
27
|
#endif /* PyObjC_BUILD_RELEASE >= 2600 */
|
|
29
28
|
}
|
|
29
|
+
|
|
30
|
+
NS_ASSUME_NONNULL_END
|
|
31
|
+
// 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-StoreKit
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.0
|
|
4
4
|
Summary: Wrappers for the framework StoreKit on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,21 +17,21 @@ 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
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=13.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.0
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -4,16 +4,14 @@ from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TestSKCloudServiceController(TestCase):
|
|
7
|
-
def
|
|
7
|
+
def test_enums(self):
|
|
8
8
|
self.assertIsEnumType(StoreKit.SKCloudServiceAuthorizationStatus)
|
|
9
|
-
self.assertIsEnumType(StoreKit.SKCloudServiceCapability)
|
|
10
|
-
|
|
11
|
-
def test_constants(self):
|
|
12
9
|
self.assertEqual(StoreKit.SKCloudServiceAuthorizationStatusNotDetermined, 0)
|
|
13
10
|
self.assertEqual(StoreKit.SKCloudServiceAuthorizationStatusDenied, 1)
|
|
14
11
|
self.assertEqual(StoreKit.SKCloudServiceAuthorizationStatusRestricted, 2)
|
|
15
12
|
self.assertEqual(StoreKit.SKCloudServiceAuthorizationStatusAuthorized, 3)
|
|
16
13
|
|
|
14
|
+
self.assertIsEnumType(StoreKit.SKCloudServiceCapability)
|
|
17
15
|
self.assertEqual(StoreKit.SKCloudServiceCapabilityNone, 0)
|
|
18
16
|
self.assertEqual(StoreKit.SKCloudServiceCapabilityMusicCatalogPlayback, 1 << 0)
|
|
19
17
|
self.assertEqual(
|
|
@@ -14,6 +14,14 @@ class TestSKPaymentQueue(TestCase):
|
|
|
14
14
|
def test_methods(self):
|
|
15
15
|
self.assertResultIsBOOL(StoreKit.SKPaymentQueue.canMakePayments)
|
|
16
16
|
|
|
17
|
+
def test_protocols(self):
|
|
18
|
+
self.assertProtocolExists("SKPaymentTransactionObserver", StoreKit)
|
|
19
|
+
|
|
20
|
+
@min_sdk_level("10.15")
|
|
21
|
+
def test_protocols10_15(self):
|
|
22
|
+
self.assertProtocolExists("SKPaymentQueueDelegate", StoreKit)
|
|
23
|
+
|
|
24
|
+
def test_protocol_methods(self):
|
|
17
25
|
self.assertResultIsBOOL(
|
|
18
26
|
TestSKPaymentQueueHelper.paymentQueue_shouldContinueTransaction_inStorefront_
|
|
19
27
|
)
|
|
@@ -21,10 +29,3 @@ class TestSKPaymentQueue(TestCase):
|
|
|
21
29
|
self.assertResultIsBOOL(
|
|
22
30
|
TestSKPaymentQueueHelper.paymentQueue_shouldAddStorePayment_forProduct_
|
|
23
31
|
)
|
|
24
|
-
|
|
25
|
-
def test_protocols(self):
|
|
26
|
-
self.assertProtocolExists("SKPaymentTransactionObserver")
|
|
27
|
-
|
|
28
|
-
@min_sdk_level("10.15")
|
|
29
|
-
def test_protocols10_15(self):
|
|
30
|
-
self.assertProtocolExists("SKPaymentQueueDelegate")
|
|
@@ -3,10 +3,8 @@ from PyObjCTools.TestSupport import TestCase
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestSKPaymentTransaction(TestCase):
|
|
6
|
-
def
|
|
6
|
+
def test_enums(self):
|
|
7
7
|
self.assertIsEnumType(StoreKit.SKPaymentTransactionState)
|
|
8
|
-
|
|
9
|
-
def test_constants(self):
|
|
10
8
|
self.assertEqual(StoreKit.SKPaymentTransactionStatePurchasing, 0)
|
|
11
9
|
self.assertEqual(StoreKit.SKPaymentTransactionStatePurchased, 1)
|
|
12
10
|
self.assertEqual(StoreKit.SKPaymentTransactionStateFailed, 2)
|
{pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skproduct.py
RENAMED
|
@@ -3,10 +3,8 @@ from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestSKDownload(TestCase):
|
|
6
|
-
def
|
|
6
|
+
def test_enums(self):
|
|
7
7
|
self.assertIsEnumType(StoreKit.SKProductPeriodUnit)
|
|
8
|
-
|
|
9
|
-
def test_constants(self):
|
|
10
8
|
self.assertEqual(StoreKit.SKProductPeriodUnitDay, 0)
|
|
11
9
|
self.assertEqual(StoreKit.SKProductPeriodUnitWeek, 1)
|
|
12
10
|
self.assertEqual(StoreKit.SKProductPeriodUnitMonth, 2)
|
|
@@ -3,14 +3,12 @@ from PyObjCTools.TestSupport import TestCase
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestSKProductDiscount(TestCase):
|
|
6
|
-
def
|
|
6
|
+
def test_enums(self):
|
|
7
7
|
self.assertIsEnumType(StoreKit.SKProductDiscountPaymentMode)
|
|
8
|
-
self.assertIsEnumType(StoreKit.SKProductDiscountType)
|
|
9
|
-
|
|
10
|
-
def test_constants(self):
|
|
11
8
|
self.assertEqual(StoreKit.SKProductDiscountPaymentModePayAsYouGo, 0)
|
|
12
9
|
self.assertEqual(StoreKit.SKProductDiscountPaymentModePayUpFront, 1)
|
|
13
10
|
self.assertEqual(StoreKit.SKProductDiscountPaymentModeFreeTrial, 2)
|
|
14
11
|
|
|
12
|
+
self.assertIsEnumType(StoreKit.SKProductDiscountType)
|
|
15
13
|
self.assertEqual(StoreKit.SKProductDiscountTypeIntroductory, 0)
|
|
16
14
|
self.assertEqual(StoreKit.SKProductDiscountTypeSubscription, 1)
|
|
@@ -3,7 +3,6 @@ from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestSKReceiptRefreshRequest(TestCase):
|
|
6
|
-
@min_os_level("10.9")
|
|
7
6
|
def test_constants(self):
|
|
8
7
|
self.assertIsInstance(StoreKit.SKReceiptPropertyIsExpired, str)
|
|
9
8
|
self.assertIsInstance(StoreKit.SKReceiptPropertyIsRevoked, str)
|
|
@@ -22,7 +22,7 @@ class TestSKStoreProductViewController(TestCase):
|
|
|
22
22
|
|
|
23
23
|
@min_sdk_level("11.0")
|
|
24
24
|
def test_protocols11_0(self):
|
|
25
|
-
self.assertProtocolExists("SKStoreProductViewControllerDelegate")
|
|
25
|
+
self.assertProtocolExists("SKStoreProductViewControllerDelegate", StoreKit)
|
|
26
26
|
|
|
27
27
|
@min_os_level("11.0")
|
|
28
28
|
def test_methods11_0(self):
|
{pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_storekit.py
RENAMED
|
@@ -3,10 +3,10 @@ from PyObjCTools.TestSupport import TestCase
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestProtocols(TestCase):
|
|
6
|
-
def
|
|
7
|
-
self.assertProtocolExists("SKPaymentTransactionObserver")
|
|
8
|
-
self.assertProtocolExists("SKProductsRequestDelegate")
|
|
9
|
-
self.assertProtocolExists("SKRequestDelegate")
|
|
6
|
+
def test_protocols(self):
|
|
7
|
+
self.assertProtocolExists("SKPaymentTransactionObserver", StoreKit)
|
|
8
|
+
self.assertProtocolExists("SKProductsRequestDelegate", StoreKit)
|
|
9
|
+
self.assertProtocolExists("SKRequestDelegate", StoreKit)
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class TestCallableMetadata(TestCase):
|
{pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/metadata/StoreKit.fwinfo
RENAMED
|
@@ -48,44 +48,6 @@
|
|
|
48
48
|
}
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
|
-
}
|
|
52
|
-
"enum": {
|
|
53
|
-
"SKErrorOverlayCancelled": { "value": 15 },
|
|
54
|
-
"SKErrorOverlayInvalidConfiguration": { "value": 16 },
|
|
55
|
-
"SKErrorOverlayTimeout": { "value": 17 },
|
|
56
|
-
"SKErrorIneligibleForOffer": { "value": 18 },
|
|
57
|
-
"SKProductDiscountPaymentModeFreeTrial": {
|
|
58
|
-
"value": 2
|
|
59
|
-
},
|
|
60
|
-
"SKProductDiscountPaymentModePayAsYouGo": {
|
|
61
|
-
"value": 0
|
|
62
|
-
},
|
|
63
|
-
"SKProductDiscountPaymentModePayUpFront": {
|
|
64
|
-
"value": 1
|
|
65
|
-
},
|
|
66
|
-
"SKProductPeriodUnitDay": {
|
|
67
|
-
"value": 0
|
|
68
|
-
},
|
|
69
|
-
"SKProductPeriodUnitMonth": {
|
|
70
|
-
"value": 2
|
|
71
|
-
},
|
|
72
|
-
"SKProductPeriodUnitWeek": {
|
|
73
|
-
"value": 1
|
|
74
|
-
},
|
|
75
|
-
"SKProductPeriodUnitYear": {
|
|
76
|
-
"value": 3
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"externs": {
|
|
80
|
-
"SKStoreProductParameterCustomProductPageIdentifier": {
|
|
81
|
-
"typestr": "d"
|
|
82
|
-
},
|
|
83
|
-
"SKDownloadTimeRemainingUnknown": {
|
|
84
|
-
"typestr": "d"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"formal_protocols": {},
|
|
88
|
-
"functions": {},
|
|
89
|
-
"informal_protocols": {}
|
|
51
|
+
}
|
|
90
52
|
}
|
|
91
53
|
}
|
|
@@ -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:59:30 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "arm64",
|
|
7
6
|
"definitions": {
|
|
@@ -6172,6 +6171,6 @@
|
|
|
6172
6171
|
"SKStorefront.h",
|
|
6173
6172
|
"StoreKitDefines.h"
|
|
6174
6173
|
],
|
|
6175
|
-
"release": "
|
|
6176
|
-
"sdk": "
|
|
6174
|
+
"release": "macOS 27.2",
|
|
6175
|
+
"sdk": "Xcode 27.2 (27B5038i)/MacOSX27.sdk"
|
|
6177
6176
|
}
|
|
@@ -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:59:26 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "x86_64",
|
|
7
6
|
"definitions": {
|
|
@@ -6172,6 +6171,6 @@
|
|
|
6172
6171
|
"SKStorefront.h",
|
|
6173
6172
|
"StoreKitDefines.h"
|
|
6174
6173
|
],
|
|
6175
|
-
"release": "
|
|
6176
|
-
"sdk": "
|
|
6174
|
+
"release": "macOS 27.2",
|
|
6175
|
+
"sdk": "Xcode 27.2 (27B5038i)/MacOSX27.sdk"
|
|
6177
6176
|
}
|
|
@@ -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
|
|
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.
|
|
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,
|
{pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/Lib/StoreKit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skdownload.py
RENAMED
|
File without changes
|
{pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skerror.py
RENAMED
|
File without changes
|
{pyobjc_framework_storekit-12.2.1 → pyobjc_framework_storekit-13.0}/PyObjCTest/test_skpayment.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|