pyobjc-framework-CFNetwork 11.0__tar.gz → 12.2.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_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/LICENSE.txt +1 -1
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Lib/CFNetwork/_metadata.py +8 -10
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Lib/pyobjc_framework_CFNetwork.egg-info/PKG-INFO +21 -8
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Lib/pyobjc_framework_CFNetwork.egg-info/SOURCES.txt +2 -9
- pyobjc_framework_cfnetwork-12.2.1/Lib/pyobjc_framework_CFNetwork.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_cfnetwork-12.2.1/Lib/pyobjc_framework_CFNetwork.egg-info/requires.txt +2 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Modules/_manual.m +40 -22
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Modules/pyobjc-api.h +6 -3
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Modules/pyobjc-compat.h +137 -86
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PKG-INFO +21 -8
- pyobjc_framework_cfnetwork-12.2.1/PyObjCTest/__init__.py +1 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfproxysupport.py +5 -3
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/metadata/CFNetwork.fwinfo +90 -72
- pyobjc_framework_cfnetwork-11.0/metadata/raw/arm64-14.5.fwinfo → pyobjc_framework_cfnetwork-12.2.1/metadata/raw/arm64-26.5.fwinfo +1168 -136
- pyobjc_framework_cfnetwork-11.0/metadata/raw/x86_64-14.5.fwinfo → pyobjc_framework_cfnetwork-12.2.1/metadata/raw/x86_64-26.5.fwinfo +1168 -136
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/pyobjc_setup.py +12 -45
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/setup.py +1 -1
- pyobjc_framework_cfnetwork-11.0/Lib/pyobjc_framework_CFNetwork.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_cfnetwork-11.0/Lib/pyobjc_framework_CFNetwork.egg-info/requires.txt +0 -2
- pyobjc_framework_cfnetwork-11.0/PyObjCTest/__init__.py +0 -1
- pyobjc_framework_cfnetwork-11.0/metadata/raw/arm64-12.3.fwinfo +0 -2323
- pyobjc_framework_cfnetwork-11.0/metadata/raw/arm64-15.0.fwinfo +0 -2349
- pyobjc_framework_cfnetwork-11.0/metadata/raw/x86_64-10.10.fwinfo +0 -2356
- pyobjc_framework_cfnetwork-11.0/metadata/raw/x86_64-10.15.fwinfo +0 -2290
- pyobjc_framework_cfnetwork-11.0/metadata/raw/x86_64-10.16.fwinfo +0 -2293
- pyobjc_framework_cfnetwork-11.0/metadata/raw/x86_64-12.3.fwinfo +0 -2323
- pyobjc_framework_cfnetwork-11.0/metadata/raw/x86_64-15.0.fwinfo +0 -2349
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Lib/CFNetwork/__init__.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Lib/pyobjc_framework_CFNetwork.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Lib/pyobjc_framework_CFNetwork.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Lib/pyobjc_framework_CFNetwork.egg-info/top_level.txt +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/MANIFEST.in +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/proxy.pac +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfftpstream.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfhost.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfhttpauthentication.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfhttpmessage.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfhttpstream.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfnetservices.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfnetwork.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfnetworkdiagnostics.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfnetworkerrors.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/PyObjCTest/test_cfsocketstream.py +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/README.txt +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/metadata/metadata.ini +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/pyproject.toml +0 -0
- {pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(This is the MIT license, note that libffi-src is a separate product with its own license)
|
|
2
2
|
|
|
3
3
|
Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
|
|
4
|
-
Copyright 2003-
|
|
4
|
+
Copyright 2003-2025 - Ronald Oussoren
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
7
7
|
|
{pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Lib/CFNetwork/_metadata.py
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Wed May 27 16:59:26 2026
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -233,7 +233,7 @@ functions = {
|
|
|
233
233
|
{
|
|
234
234
|
"retval": {"already_cfretained": True},
|
|
235
235
|
"arguments": {
|
|
236
|
-
1: {"
|
|
236
|
+
1: {"type_modifier": "n", "c_array_length_in_arg": 2},
|
|
237
237
|
3: {"already_cfretained": True, "type_modifier": "o"},
|
|
238
238
|
},
|
|
239
239
|
},
|
|
@@ -247,7 +247,7 @@ functions = {
|
|
|
247
247
|
"CFHTTPMessageAppendBytes": (
|
|
248
248
|
b"Z^{__CFHTTPMessage=}^vq",
|
|
249
249
|
"",
|
|
250
|
-
{"arguments": {1: {"
|
|
250
|
+
{"arguments": {1: {"type_modifier": "n", "c_array_length_in_arg": 2}}},
|
|
251
251
|
),
|
|
252
252
|
"CFHostCancelInfoResolution": (b"v^{__CFHost=}i",),
|
|
253
253
|
"CFNetServiceBrowserSearchForServices": (
|
|
@@ -278,7 +278,6 @@ functions = {
|
|
|
278
278
|
"",
|
|
279
279
|
{"arguments": {4: {"type_modifier": "o"}}},
|
|
280
280
|
),
|
|
281
|
-
"CFHTTPReadStreamSetRedirectsAutomatically": (b"v^{__CFReadStream=}Z",),
|
|
282
281
|
"CFNetServiceRegisterWithOptions": (
|
|
283
282
|
b"Z^{__CFNetService=}Q^{CFStreamError=qi}",
|
|
284
283
|
"",
|
|
@@ -297,15 +296,15 @@ functions = {
|
|
|
297
296
|
"retval": {"already_cfretained": True},
|
|
298
297
|
"arguments": {
|
|
299
298
|
2: {
|
|
299
|
+
"null_accepted": True,
|
|
300
300
|
"already_cfretained": True,
|
|
301
301
|
"type_modifier": "o",
|
|
302
|
-
"null_accepted": True,
|
|
303
302
|
}
|
|
304
303
|
},
|
|
305
304
|
},
|
|
306
305
|
),
|
|
307
|
-
"
|
|
308
|
-
b"^{
|
|
306
|
+
"CFHTTPMessageCopySerializedMessage": (
|
|
307
|
+
b"^{__CFData=}^{__CFHTTPMessage=}",
|
|
309
308
|
"",
|
|
310
309
|
{"retval": {"already_cfretained": True}},
|
|
311
310
|
),
|
|
@@ -314,8 +313,8 @@ functions = {
|
|
|
314
313
|
"",
|
|
315
314
|
{"arguments": {1: {"type_modifier": "o"}}},
|
|
316
315
|
),
|
|
317
|
-
"
|
|
318
|
-
b"^{
|
|
316
|
+
"CFNetServiceCreateDictionaryWithTXTData": (
|
|
317
|
+
b"^{__CFDictionary=}^{__CFAllocator=}^{__CFData=}",
|
|
319
318
|
"",
|
|
320
319
|
{"retval": {"already_cfretained": True}},
|
|
321
320
|
),
|
|
@@ -413,7 +412,6 @@ functions = {
|
|
|
413
412
|
"",
|
|
414
413
|
{"retval": {"already_cfretained": True}},
|
|
415
414
|
),
|
|
416
|
-
"CFNetServiceSetProtocolSpecificInformation": (b"v^{__CFNetService=}@",),
|
|
417
415
|
"CFSocketStreamSOCKSGetErrorSubdomain": (b"i^{CFStreamError=qi}",),
|
|
418
416
|
"CFStreamCreatePairWithSocketToCFHost": (
|
|
419
417
|
b"v^{__CFAllocator=}^{__CFHost=}i^^{__CFReadStream=}^^{__CFWriteStream=}",
|
|
@@ -1,38 +1,51 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-CFNetwork
|
|
3
|
-
Version:
|
|
3
|
+
Version: 12.2.1
|
|
4
4
|
Summary: Wrappers for the framework CFNetwork on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
7
7
|
Author-email: pyobjc-dev@lists.sourceforge.net
|
|
8
|
-
License: MIT
|
|
8
|
+
License: MIT
|
|
9
9
|
Keywords: PyObjC,CFNetwork
|
|
10
10
|
Platform: MacOS X
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Environment :: Console
|
|
13
13
|
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Natural Language :: English
|
|
17
16
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
17
|
Classifier: Programming Language :: Python
|
|
19
18
|
Classifier: Programming Language :: Python :: 3
|
|
20
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
24
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
24
|
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
27
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
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.10
|
|
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>=12.2.1
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.2.1
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: description
|
|
40
|
+
Dynamic: description-content-type
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: keywords
|
|
43
|
+
Dynamic: license
|
|
44
|
+
Dynamic: license-file
|
|
45
|
+
Dynamic: platform
|
|
46
|
+
Dynamic: requires-dist
|
|
47
|
+
Dynamic: requires-python
|
|
48
|
+
Dynamic: summary
|
|
36
49
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
37
50
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
38
51
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -31,12 +31,5 @@ PyObjCTest/test_cfproxysupport.py
|
|
|
31
31
|
PyObjCTest/test_cfsocketstream.py
|
|
32
32
|
metadata/CFNetwork.fwinfo
|
|
33
33
|
metadata/metadata.ini
|
|
34
|
-
metadata/raw/arm64-
|
|
35
|
-
metadata/raw/
|
|
36
|
-
metadata/raw/arm64-15.0.fwinfo
|
|
37
|
-
metadata/raw/x86_64-10.10.fwinfo
|
|
38
|
-
metadata/raw/x86_64-10.15.fwinfo
|
|
39
|
-
metadata/raw/x86_64-10.16.fwinfo
|
|
40
|
-
metadata/raw/x86_64-12.3.fwinfo
|
|
41
|
-
metadata/raw/x86_64-14.5.fwinfo
|
|
42
|
-
metadata/raw/x86_64-15.0.fwinfo
|
|
34
|
+
metadata/raw/arm64-26.5.fwinfo
|
|
35
|
+
metadata/raw/x86_64-26.5.fwinfo
|
|
@@ -22,8 +22,29 @@ mod_release(const void* info)
|
|
|
22
22
|
PyGILState_Release(state);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
static CFStringRef
|
|
26
|
+
mod_copyDescription(const void* info)
|
|
27
|
+
{
|
|
28
|
+
PyObject* repr;
|
|
29
|
+
PyGILState_STATE state = PyGILState_Ensure();
|
|
30
|
+
|
|
31
|
+
repr = PyObject_Repr((PyObject*)info);
|
|
32
|
+
if (repr == NULL) {
|
|
33
|
+
PyErr_Clear();
|
|
34
|
+
PyGILState_Release(state);
|
|
35
|
+
return (CFStringRef)CFRetain([NSString stringWithFormat:@"<pyinfo at %p>", info]);
|
|
36
|
+
} else {
|
|
37
|
+
NSString* result =
|
|
38
|
+
[NSString stringWithFormat:@"<pyinfo %s>", PyUnicode_AsUTF8(repr)];
|
|
39
|
+
Py_CLEAR(repr);
|
|
40
|
+
PyGILState_Release(state);
|
|
41
|
+
return (CFStringRef)CFRetain(result);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
25
45
|
static CFStreamClientContext mod_CFStreamClientContext = {
|
|
26
|
-
0,
|
|
46
|
+
0, (CFStringRef (*)(void*))mod_copyDescription, (void* (*)(void*))mod_retain,
|
|
47
|
+
(void (*)(void*))mod_release, NULL};
|
|
27
48
|
|
|
28
49
|
static CFHostClientContext mod_CFHostClientContext = {0, NULL, mod_retain, mod_release,
|
|
29
50
|
0};
|
|
@@ -594,7 +615,8 @@ static PyMethodDef mod_methods[] = {
|
|
|
594
615
|
0,
|
|
595
616
|
}};
|
|
596
617
|
|
|
597
|
-
static int
|
|
618
|
+
static int
|
|
619
|
+
mod_exec_module(PyObject* m)
|
|
598
620
|
{
|
|
599
621
|
if (PyObjC_ImportAPI(m) < 0) {
|
|
600
622
|
return -1;
|
|
@@ -603,44 +625,40 @@ static int mod_exec_module(PyObject* m)
|
|
|
603
625
|
}
|
|
604
626
|
|
|
605
627
|
static struct PyModuleDef_Slot mod_slots[] = {
|
|
606
|
-
{
|
|
607
|
-
.slot = Py_mod_exec,
|
|
608
|
-
.value = (void*)mod_exec_module
|
|
609
|
-
},
|
|
628
|
+
{.slot = Py_mod_exec, .value = (void*)mod_exec_module},
|
|
610
629
|
#if PY_VERSION_HEX >= 0x030c0000
|
|
611
630
|
{
|
|
612
|
-
.slot
|
|
631
|
+
.slot = Py_mod_multiple_interpreters,
|
|
613
632
|
.value = Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED,
|
|
614
633
|
},
|
|
615
634
|
#endif
|
|
616
635
|
#if PY_VERSION_HEX >= 0x030d0000
|
|
617
636
|
{
|
|
618
637
|
/* The code in this extension should be safe to use without the GIL */
|
|
619
|
-
.slot
|
|
638
|
+
.slot = Py_mod_gil,
|
|
620
639
|
.value = Py_MOD_GIL_NOT_USED,
|
|
621
640
|
},
|
|
622
641
|
#endif
|
|
623
|
-
{
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}
|
|
627
|
-
};
|
|
642
|
+
{/* Sentinel */
|
|
643
|
+
.slot = 0,
|
|
644
|
+
.value = 0}};
|
|
628
645
|
|
|
629
646
|
static struct PyModuleDef mod_module = {
|
|
630
|
-
.m_base
|
|
631
|
-
.m_name
|
|
632
|
-
.m_doc
|
|
633
|
-
.m_size
|
|
634
|
-
.m_methods
|
|
635
|
-
.m_slots
|
|
647
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
648
|
+
.m_name = "_manual",
|
|
649
|
+
.m_doc = NULL,
|
|
650
|
+
.m_size = 0,
|
|
651
|
+
.m_methods = mod_methods,
|
|
652
|
+
.m_slots = mod_slots,
|
|
636
653
|
.m_traverse = NULL,
|
|
637
|
-
.m_clear
|
|
638
|
-
.m_free
|
|
654
|
+
.m_clear = NULL,
|
|
655
|
+
.m_free = NULL,
|
|
639
656
|
};
|
|
640
657
|
|
|
641
658
|
PyObject* PyInit__manual(void);
|
|
642
659
|
|
|
643
|
-
PyObject* __attribute__((__visibility__("default")))
|
|
660
|
+
PyObject* __attribute__((__visibility__("default")))
|
|
661
|
+
PyInit__manual(void)
|
|
644
662
|
{
|
|
645
663
|
return PyModuleDef_Init(&mod_module);
|
|
646
664
|
}
|
|
@@ -53,8 +53,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
53
53
|
/*
|
|
54
54
|
* Only add items to the end of this list!
|
|
55
55
|
*/
|
|
56
|
+
|
|
56
57
|
typedef int(RegisterMethodMappingFunctionType)(
|
|
57
|
-
Class, SEL,
|
|
58
|
+
Class _Nullable, SEL,
|
|
58
59
|
PyObject* _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull,
|
|
59
60
|
PyObject* _Nonnull const* _Nonnull, size_t),
|
|
60
61
|
IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
|
|
@@ -83,7 +84,8 @@ struct pyobjc_api {
|
|
|
83
84
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
85
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
86
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state)
|
|
87
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state)
|
|
88
|
+
__attribute__((__noreturn__));
|
|
87
89
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
90
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
91
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
|
@@ -113,7 +115,8 @@ struct pyobjc_api {
|
|
|
113
115
|
int (*_Nonnull checknokwnames)(PyObject* _Nonnull callable,
|
|
114
116
|
PyObject* _Nullable kwnames);
|
|
115
117
|
|
|
116
|
-
PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
|
|
118
|
+
PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
|
|
119
|
+
const char*);
|
|
117
120
|
};
|
|
118
121
|
|
|
119
122
|
#ifndef PYOBJC_BUILD
|
{pyobjc_framework_cfnetwork-11.0 → pyobjc_framework_cfnetwork-12.2.1}/Modules/pyobjc-compat.h
RENAMED
|
@@ -22,12 +22,14 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
22
22
|
* Start of compiler definitions
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
|
+
#if 0
|
|
25
26
|
#ifndef __has_feature
|
|
26
27
|
#define __has_feature(x) 0
|
|
27
28
|
#endif
|
|
28
29
|
#ifndef __has_extension
|
|
29
30
|
#define __has_extension(x) __has_feature(x)
|
|
30
31
|
#endif
|
|
32
|
+
#endif
|
|
31
33
|
|
|
32
34
|
#if __has_extension(c_static_assert)
|
|
33
35
|
#define STATIC_ASSERT(test, message) _Static_assert(test, message)
|
|
@@ -55,46 +57,10 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
55
57
|
/*
|
|
56
58
|
*
|
|
57
59
|
* Start of compiler support helpers
|
|
58
|
-
*
|
|
59
|
-
* XXX: Are these needed?
|
|
60
60
|
*/
|
|
61
61
|
|
|
62
|
-
#ifdef __GNUC__
|
|
63
62
|
#define unlikely(x) __builtin_expect(!!(x), 0)
|
|
64
63
|
#define likely(x) __builtin_expect(!!(x), 1)
|
|
65
|
-
#else
|
|
66
|
-
#define likely(x) x
|
|
67
|
-
#define likely(x) x
|
|
68
|
-
#endif
|
|
69
|
-
|
|
70
|
-
/* On some versions of GCC <limits.h> defines LONG_LONG_MAX but not LLONG_MAX, compensate.
|
|
71
|
-
*/
|
|
72
|
-
#ifndef LLONG_MIN
|
|
73
|
-
#ifdef LONG_LONG_MIN
|
|
74
|
-
#define LLONG_MIN LONG_LONG_MIN
|
|
75
|
-
#define LLONG_MAX LONG_LONG_MAX
|
|
76
|
-
#define ULLONG_MAX ULONG_LONG_MAX
|
|
77
|
-
#endif
|
|
78
|
-
#endif
|
|
79
|
-
|
|
80
|
-
/*
|
|
81
|
-
*
|
|
82
|
-
* End of compiler support helpers
|
|
83
|
-
*
|
|
84
|
-
* XXX: These two are no longer needed, all supported platforms
|
|
85
|
-
* are 64-bit
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
|
-
#if __LP64__
|
|
89
|
-
#define Py_ARG_NSInteger "l"
|
|
90
|
-
#define Py_ARG_NSUInteger "k"
|
|
91
|
-
#else
|
|
92
|
-
#define Py_ARG_NSInteger "i"
|
|
93
|
-
#define Py_ARG_NSUInteger "I"
|
|
94
|
-
#endif
|
|
95
|
-
|
|
96
|
-
#define PyObjC__STR(x) #x
|
|
97
|
-
#define PyObjC_STR(x) PyObjC__STR(x)
|
|
98
64
|
|
|
99
65
|
/*
|
|
100
66
|
*
|
|
@@ -123,34 +89,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
123
89
|
} while (0)
|
|
124
90
|
#endif
|
|
125
91
|
|
|
126
|
-
#if PY_VERSION_HEX < 0x03090000
|
|
127
|
-
|
|
128
|
-
/* For use on Python 3.8 and earlier. PyObjC doesn't use the
|
|
129
|
-
* "flag" bit internally.
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
#ifndef PY_VECTORCALL_ARGUMENTS_OFFSET
|
|
133
|
-
#define PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1))
|
|
134
|
-
#endif
|
|
135
|
-
|
|
136
|
-
#define PyVectorcall_NARGS(nargsf) ((nargsf) & ~PY_VECTORCALL_ARGUMENTS_OFFSET)
|
|
137
|
-
|
|
138
|
-
#ifdef OBJC_VERSION
|
|
139
|
-
/* Don't use PyObject prefixed symbols in our binaries */
|
|
140
|
-
#define PyObject_Vectorcall PyObjC_Vectorcall
|
|
141
|
-
#define PyObject_VectorcallMethod PyObjC_VectorcallMethod
|
|
142
|
-
|
|
143
|
-
extern PyObject* _Nullable PyObject_Vectorcall(PyObject* callable,
|
|
144
|
-
PyObject* _Nonnull const* _Nonnull args,
|
|
145
|
-
size_t nargsf,
|
|
146
|
-
PyObject* _Nullable kwnames);
|
|
147
|
-
extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
148
|
-
PyObject* name, PyObject* _Nonnull const* _Nonnull args, size_t nargsf,
|
|
149
|
-
PyObject* _Nullable kwnames);
|
|
150
|
-
#endif
|
|
151
|
-
|
|
152
|
-
#endif /* Python < 3.9 */
|
|
153
|
-
|
|
154
92
|
/* Use CLINIC_SEP between the prototype and
|
|
155
93
|
* description in doc strings, to get clean
|
|
156
94
|
* docstrings.
|
|
@@ -159,27 +97,13 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
|
159
97
|
|
|
160
98
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
161
99
|
|
|
162
|
-
/*
|
|
163
|
-
* A micro optimization: when using Python 3.3 or later it
|
|
164
|
-
* is possible to access a 'char*' with an ASCII representation
|
|
165
|
-
* of a unicode object without first converting it to a bytes
|
|
166
|
-
* string (if the string can be encoded as ASCII in the first
|
|
167
|
-
* place.
|
|
168
|
-
*
|
|
169
|
-
* This slightly reduces the object allocation rate during
|
|
170
|
-
* attribute access.
|
|
171
|
-
*
|
|
172
|
-
* XXX: Use PyUnicode_AsUTF8 instead.
|
|
173
|
-
*/
|
|
174
|
-
extern const char* _Nullable PyObjC_Unicode_Fast_Bytes(PyObject* object);
|
|
175
|
-
|
|
176
100
|
#ifdef __clang__
|
|
177
101
|
|
|
178
102
|
#ifndef Py_LIMITED_API
|
|
179
103
|
|
|
180
104
|
static inline PyObject* _Nullable* _Nonnull PyTuple_ITEMS(PyObject* tuple)
|
|
181
105
|
{
|
|
182
|
-
return &PyTuple_GET_ITEM(tuple, 0);
|
|
106
|
+
return &PyTuple_GET_ITEM(tuple, 0); // LCOV_BR_EXCL_LINE
|
|
183
107
|
}
|
|
184
108
|
|
|
185
109
|
/* This is a crude hack to disable a otherwise useful warning in the context of
|
|
@@ -198,7 +122,10 @@ _PyObjCTuple_SetItem(PyObject* tuple, Py_ssize_t idx, PyObject* _Nullable value)
|
|
|
198
122
|
static inline PyObject*
|
|
199
123
|
_PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
200
124
|
{
|
|
201
|
-
|
|
125
|
+
/* The protocol for tuples is that they are full initialized
|
|
126
|
+
* before handing them over to other code.
|
|
127
|
+
*/
|
|
128
|
+
return (PyObject* _Nonnull)PyTuple_GET_ITEM(tuple, idx); // LCOV_BR_EXCL_LINE
|
|
202
129
|
}
|
|
203
130
|
#undef PyTuple_GET_ITEM
|
|
204
131
|
#define PyTuple_GET_ITEM(a, b) _PyObjCTuple_GetItem(a, b)
|
|
@@ -242,13 +169,15 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
242
169
|
|
|
243
170
|
#if PY_VERSION_HEX < 0x030a0000
|
|
244
171
|
|
|
245
|
-
static inline PyObject*
|
|
172
|
+
static inline PyObject*
|
|
173
|
+
Py_NewRef(PyObject* o)
|
|
246
174
|
{
|
|
247
175
|
Py_INCREF(o);
|
|
248
176
|
return o;
|
|
249
177
|
}
|
|
250
178
|
|
|
251
|
-
static inline PyObject*
|
|
179
|
+
static inline PyObject*
|
|
180
|
+
Py_XNewRef(PyObject* o)
|
|
252
181
|
{
|
|
253
182
|
Py_XINCREF(o);
|
|
254
183
|
return o;
|
|
@@ -257,11 +186,16 @@ static inline PyObject* Py_XNewRef(PyObject* o)
|
|
|
257
186
|
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
187
|
|
|
259
188
|
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
-
#define Py_BEGIN_CRITICAL_SECTION(value)
|
|
189
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) \
|
|
190
|
+
{ \
|
|
191
|
+
(void)(value);
|
|
261
192
|
#define Py_END_CRITICAL_SECTION() }
|
|
262
193
|
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
194
|
|
|
264
|
-
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2)
|
|
195
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) \
|
|
196
|
+
{ \
|
|
197
|
+
(void)(value1); \
|
|
198
|
+
(void)(value2);
|
|
265
199
|
#define Py_END_CRITICAL_SECTION2() }
|
|
266
200
|
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
201
|
|
|
@@ -282,7 +216,8 @@ static inline PyObject* Py_XNewRef(PyObject* o)
|
|
|
282
216
|
#endif
|
|
283
217
|
|
|
284
218
|
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
-
static inline int
|
|
219
|
+
static inline int
|
|
220
|
+
PyDict_GetItemRef(PyObject* p, PyObject* key, PyObject* _Nonnull* _Nullable result)
|
|
286
221
|
{
|
|
287
222
|
*result = PyDict_GetItemWithError(p, key);
|
|
288
223
|
if (*result == NULL) {
|
|
@@ -303,10 +238,28 @@ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
|
303
238
|
Py_XINCREF(result);
|
|
304
239
|
return result;
|
|
305
240
|
}
|
|
241
|
+
|
|
242
|
+
static inline int
|
|
243
|
+
PyDict_SetDefaultRef(PyObject* p, PyObject* key, PyObject* default_value,
|
|
244
|
+
PyObject* _Nonnull* _Nullable result)
|
|
245
|
+
{
|
|
246
|
+
*result = PyDict_SetDefault(p, key, default_value);
|
|
247
|
+
if (*result == NULL) {
|
|
248
|
+
return -1;
|
|
249
|
+
}
|
|
250
|
+
Py_INCREF(*result);
|
|
251
|
+
|
|
252
|
+
/* This does not follow the spec, should return 1 when the key was already
|
|
253
|
+
* in the dict. That part of the API is not used in PyObjC though.
|
|
254
|
+
*/
|
|
255
|
+
return 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
306
258
|
#endif
|
|
307
259
|
|
|
308
260
|
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
-
static inline PyObject*
|
|
261
|
+
static inline PyObject*
|
|
262
|
+
PyType_GetDict(PyTypeObject* type)
|
|
310
263
|
{
|
|
311
264
|
PyObject* result = type->tp_dict;
|
|
312
265
|
Py_INCREF(result);
|
|
@@ -314,6 +267,104 @@ static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
|
314
267
|
}
|
|
315
268
|
#endif
|
|
316
269
|
|
|
270
|
+
#if PY_VERSION_HEX >= 0x030c0000 && PY_VERSION_HEX < 0x030e0000
|
|
271
|
+
/*
|
|
272
|
+
* These are available in 3.14 and above, the definitions below
|
|
273
|
+
* mirror the private implementation in 3.13.
|
|
274
|
+
*/
|
|
275
|
+
static inline int
|
|
276
|
+
PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
|
|
277
|
+
{
|
|
278
|
+
#ifdef Py_GIL_DISABLED
|
|
279
|
+
return (_Py_IsOwnedByCurrentThread(ob)
|
|
280
|
+
&& _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local) == 1
|
|
281
|
+
&& _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared) == 0);
|
|
282
|
+
#else
|
|
283
|
+
return Py_REFCNT(ob) == 1;
|
|
284
|
+
#endif
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
static inline void
|
|
288
|
+
PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
|
|
289
|
+
{
|
|
290
|
+
#ifdef Py_GIL_DISABLED
|
|
291
|
+
for (;;) {
|
|
292
|
+
Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
|
|
293
|
+
if ((shared & _Py_REF_SHARED_FLAG_MASK) != 0) {
|
|
294
|
+
// Nothing to do if it's in WEAKREFS, QUEUED, or MERGED states.
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
|
|
298
|
+
shared | _Py_REF_MAYBE_WEAKREF)) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
#endif
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
#ifdef Py_GIL_DISABLED
|
|
306
|
+
static inline int
|
|
307
|
+
_Py_TryIncrefFast(PyObject* op)
|
|
308
|
+
{
|
|
309
|
+
uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
|
|
310
|
+
local += 1;
|
|
311
|
+
if (local == 0) {
|
|
312
|
+
// immortal
|
|
313
|
+
return 1;
|
|
314
|
+
}
|
|
315
|
+
if (_Py_IsOwnedByCurrentThread(op)) {
|
|
316
|
+
_Py_INCREF_STAT_INC();
|
|
317
|
+
_Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local);
|
|
318
|
+
#ifdef Py_REF_DEBUG
|
|
319
|
+
_Py_IncRefTotal(_PyThreadState_GET());
|
|
320
|
+
#endif
|
|
321
|
+
return 1;
|
|
322
|
+
}
|
|
323
|
+
return 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
static inline int
|
|
327
|
+
_Py_TryIncRefShared(PyObject* op)
|
|
328
|
+
{
|
|
329
|
+
Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
|
|
330
|
+
for (;;) {
|
|
331
|
+
// If the shared refcount is zero and the object is either merged
|
|
332
|
+
// or may not have weak references, then we cannot incref it.
|
|
333
|
+
if (shared == 0 || shared == _Py_REF_MERGED) {
|
|
334
|
+
return 0;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
|
|
338
|
+
shared + (1 << _Py_REF_SHARED_SHIFT))) {
|
|
339
|
+
#ifdef Py_REF_DEBUG
|
|
340
|
+
_Py_IncRefTotal(_PyThreadState_GET());
|
|
341
|
+
#endif
|
|
342
|
+
_Py_INCREF_STAT_INC();
|
|
343
|
+
return 1;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
#endif
|
|
348
|
+
|
|
349
|
+
static inline int
|
|
350
|
+
PyUnstable_TryIncRef(PyObject* op __attribute__((__unused__)))
|
|
351
|
+
{
|
|
352
|
+
#ifdef Py_GIL_DISABLED
|
|
353
|
+
return _Py_TryIncrefFast(op) || _Py_TryIncRefShared(op);
|
|
354
|
+
#else
|
|
355
|
+
if (Py_REFCNT(op) > 0) {
|
|
356
|
+
Py_INCREF(op);
|
|
357
|
+
return 1;
|
|
358
|
+
}
|
|
359
|
+
return 0;
|
|
360
|
+
#endif
|
|
361
|
+
}
|
|
362
|
+
#endif
|
|
363
|
+
|
|
364
|
+
#if PY_VERSION_HEX < 0x030f00a7
|
|
365
|
+
#define PyAnyDict_CheckExact PyDict_CheckExact
|
|
366
|
+
#define PyAnyDict_Check PyDict_Check
|
|
367
|
+
#endif
|
|
317
368
|
|
|
318
369
|
NS_ASSUME_NONNULL_END
|
|
319
370
|
|
|
@@ -1,38 +1,51 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-CFNetwork
|
|
3
|
-
Version:
|
|
3
|
+
Version: 12.2.1
|
|
4
4
|
Summary: Wrappers for the framework CFNetwork on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
7
7
|
Author-email: pyobjc-dev@lists.sourceforge.net
|
|
8
|
-
License: MIT
|
|
8
|
+
License: MIT
|
|
9
9
|
Keywords: PyObjC,CFNetwork
|
|
10
10
|
Platform: MacOS X
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Environment :: Console
|
|
13
13
|
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Natural Language :: English
|
|
17
16
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
17
|
Classifier: Programming Language :: Python
|
|
19
18
|
Classifier: Programming Language :: Python :: 3
|
|
20
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
24
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
25
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
24
|
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
27
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
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.10
|
|
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>=12.2.1
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.2.1
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: description
|
|
40
|
+
Dynamic: description-content-type
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: keywords
|
|
43
|
+
Dynamic: license
|
|
44
|
+
Dynamic: license-file
|
|
45
|
+
Dynamic: platform
|
|
46
|
+
Dynamic: requires-dist
|
|
47
|
+
Dynamic: requires-python
|
|
48
|
+
Dynamic: summary
|
|
36
49
|
|
|
37
50
|
|
|
38
51
|
PyObjC wrappers for the framework "CFNetwork", part of "CoreServices" on
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""testsuite"""
|