pyobjc-framework-LaunchServices 9.2__tar.gz → 10.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-LaunchServices-10.1/Lib/LaunchServices/__init__.py +40 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/Lib/pyobjc_framework_LaunchServices.egg-info/PKG-INFO +6 -3
- pyobjc-framework-LaunchServices-10.1/Lib/pyobjc_framework_LaunchServices.egg-info/requires.txt +2 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PKG-INFO +6 -3
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/test_launchservices.py +7 -1
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/pyobjc_setup.py +16 -6
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/setup.py +1 -1
- pyobjc-framework-LaunchServices-9.2/Lib/LaunchServices/__init__.py +0 -33
- pyobjc-framework-LaunchServices-9.2/Lib/pyobjc_framework_LaunchServices.egg-info/requires.txt +0 -2
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/LICENSE.txt +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/Lib/pyobjc_framework_LaunchServices.egg-info/SOURCES.txt +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/Lib/pyobjc_framework_LaunchServices.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/Lib/pyobjc_framework_LaunchServices.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/Lib/pyobjc_framework_LaunchServices.egg-info/top_level.txt +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/MANIFEST.in +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/test_iconscore.py +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/test_lsinfo.py +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/test_lsopen.py +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/test_lsquarantine.py +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/test_lssharedfilelist.py +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/test_utcoretypes.py +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/test_uttype.py +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/README.txt +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/pyproject.toml +0 -0
- {pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/setup.cfg +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python mapping for the LaunchServices framework.
|
|
3
|
+
|
|
4
|
+
This module does not contain docstrings for the wrapped code, check Apple's
|
|
5
|
+
documentation for details on how to use these functions and classes.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _setup():
|
|
10
|
+
import warnings
|
|
11
|
+
|
|
12
|
+
import CoreServices
|
|
13
|
+
import objc
|
|
14
|
+
|
|
15
|
+
warnings.warn(
|
|
16
|
+
"pyobjc-framework-LaunchServices is deprecated, use 'import CoreServices' instead",
|
|
17
|
+
DeprecationWarning,
|
|
18
|
+
stacklevel=2,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
22
|
+
name="LaunchServices",
|
|
23
|
+
frameworkIdentifier="com.apple.CoreServices",
|
|
24
|
+
frameworkPath=objc.pathForFramework(
|
|
25
|
+
"/System/Library/Frameworks/CoreServices.framework"
|
|
26
|
+
),
|
|
27
|
+
globals_dict=globals(),
|
|
28
|
+
inline_list=None,
|
|
29
|
+
parents=(CoreServices,),
|
|
30
|
+
metadict={},
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
globals()["__dir__"] = dir_func
|
|
34
|
+
globals()["__getattr__"] = getattr_func
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
globals().pop("_setup")()
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
from CoreServices import _LSCopyAllApplicationURLs # isort:skip # noqa: F401,E402
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-LaunchServices
|
|
3
|
-
Version:
|
|
3
|
+
Version: 10.1
|
|
4
4
|
Summary: Wrappers for the framework LaunchServices on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,18 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.8
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.9
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.10
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
28
|
Classifier: Programming Language :: Objective C
|
|
28
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
29
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
30
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.8
|
|
31
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
32
33
|
License-File: LICENSE.txt
|
|
34
|
+
Requires-Dist: pyobjc-core>=10.1
|
|
35
|
+
Requires-Dist: pyobjc-framework-CoreServices>=10.1
|
|
33
36
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
34
37
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
35
38
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-LaunchServices
|
|
3
|
-
Version:
|
|
3
|
+
Version: 10.1
|
|
4
4
|
Summary: Wrappers for the framework LaunchServices on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,18 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.8
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.9
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.10
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
28
|
Classifier: Programming Language :: Objective C
|
|
28
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
29
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
30
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.8
|
|
31
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
32
33
|
License-File: LICENSE.txt
|
|
34
|
+
Requires-Dist: pyobjc-core>=10.1
|
|
35
|
+
Requires-Dist: pyobjc-framework-CoreServices>=10.1
|
|
33
36
|
|
|
34
37
|
|
|
35
38
|
Deprecated wrappers for the "LaunchServices" framework on macOS.
|
|
@@ -71,4 +71,10 @@ class TestLaunchServices(TestCase):
|
|
|
71
71
|
|
|
72
72
|
class TestCallableMetadata(TestCase):
|
|
73
73
|
def test_callable_metadata_is_sane(self):
|
|
74
|
-
self.assertCallableMetadataIsSane(
|
|
74
|
+
self.assertCallableMetadataIsSane(
|
|
75
|
+
LaunchServices,
|
|
76
|
+
exclude_attrs=(
|
|
77
|
+
"MDQuerySetCreateResultFunction",
|
|
78
|
+
"MDQuerySetCreateValueFunction",
|
|
79
|
+
),
|
|
80
|
+
)
|
{pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/pyobjc_setup.py
RENAMED
|
@@ -208,11 +208,12 @@ Operating System :: MacOS :: MacOS X
|
|
|
208
208
|
Programming Language :: Python
|
|
209
209
|
Programming Language :: Python :: 3
|
|
210
210
|
Programming Language :: Python :: 3 :: Only
|
|
211
|
-
Programming Language :: Python :: 3.7
|
|
212
211
|
Programming Language :: Python :: 3.8
|
|
213
212
|
Programming Language :: Python :: 3.9
|
|
214
213
|
Programming Language :: Python :: 3.10
|
|
215
214
|
Programming Language :: Python :: 3.11
|
|
215
|
+
Programming Language :: Python :: 3.12
|
|
216
|
+
Programming Language :: Python :: 3.13
|
|
216
217
|
Programming Language :: Python :: Implementation :: CPython
|
|
217
218
|
Programming Language :: Objective C
|
|
218
219
|
Topic :: Software Development :: Libraries :: Python Modules
|
|
@@ -510,6 +511,15 @@ def Extension(*args, **kwds):
|
|
|
510
511
|
% (tuple(map(int, os_level.split(".")[:2])))
|
|
511
512
|
)
|
|
512
513
|
|
|
514
|
+
# XCode 15 has a bug w.r.t. weak linking for older macOS versions,
|
|
515
|
+
# fall back to older linker when using that compiler.
|
|
516
|
+
# XXX: This should be in _fixup_compiler but doesn't work there...
|
|
517
|
+
lines = subprocess.check_output(["xcodebuild", "-version"], text=True).splitlines()
|
|
518
|
+
if lines[0].startswith("Xcode"):
|
|
519
|
+
xcode_vers = int(lines[0].split()[-1].split(".")[0])
|
|
520
|
+
if xcode_vers >= 15:
|
|
521
|
+
ldflags.append("-Wl,-ld_classic")
|
|
522
|
+
|
|
513
523
|
if os_level == "10.4":
|
|
514
524
|
cflags.append("-DNO_OBJC2_RUNTIME")
|
|
515
525
|
|
|
@@ -567,19 +577,19 @@ def setup(min_os_level=None, max_os_level=None, cmdclass=None, **kwds):
|
|
|
567
577
|
if min_os_level is not None:
|
|
568
578
|
if max_os_level is not None:
|
|
569
579
|
msg = (
|
|
570
|
-
"This distribution is only supported on
|
|
580
|
+
"This distribution is only supported on macOS "
|
|
571
581
|
"versions %s up to and including %s" % (min_os_level, max_os_level)
|
|
572
582
|
)
|
|
573
583
|
else:
|
|
574
|
-
msg = "This distribution is only supported on
|
|
584
|
+
msg = "This distribution is only supported on macOS >= {}".format(
|
|
575
585
|
min_os_level,
|
|
576
586
|
)
|
|
577
587
|
elif max_os_level is not None:
|
|
578
|
-
msg = "This distribution is only supported on
|
|
588
|
+
msg = "This distribution is only supported on macOS <= {}".format(
|
|
579
589
|
max_os_level,
|
|
580
590
|
)
|
|
581
591
|
else:
|
|
582
|
-
msg = "This distribution is only supported on
|
|
592
|
+
msg = "This distribution is only supported on macOS"
|
|
583
593
|
|
|
584
594
|
def create_command_subclass(base_class):
|
|
585
595
|
class subcommand(base_class):
|
|
@@ -661,7 +671,7 @@ def setup(min_os_level=None, max_os_level=None, cmdclass=None, **kwds):
|
|
|
661
671
|
zip_safe=False,
|
|
662
672
|
license="MIT License",
|
|
663
673
|
classifiers=CLASSIFIERS,
|
|
664
|
-
python_requires=">=3.
|
|
674
|
+
python_requires=">=3.8",
|
|
665
675
|
keywords=["PyObjC"] + [p for p in k["packages"] if p not in ("PyObjCTools",)],
|
|
666
676
|
**k,
|
|
667
677
|
)
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Python mapping for the LaunchServices framework.
|
|
3
|
-
|
|
4
|
-
This module does not contain docstrings for the wrapped code, check Apple's
|
|
5
|
-
documentation for details on how to use these functions and classes.
|
|
6
|
-
"""
|
|
7
|
-
import sys
|
|
8
|
-
import warnings
|
|
9
|
-
|
|
10
|
-
import CoreServices
|
|
11
|
-
import objc
|
|
12
|
-
|
|
13
|
-
warnings.warn(
|
|
14
|
-
"pyobjc-framework-LaunchServices is deprecated, use 'import CoreServices' instead",
|
|
15
|
-
DeprecationWarning,
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
sys.modules["LaunchServices"] = mod = objc.ObjCLazyModule(
|
|
19
|
-
"LaunchServices",
|
|
20
|
-
"com.apple.CoreServices",
|
|
21
|
-
objc.pathForFramework(
|
|
22
|
-
"/System/Library/Frameworks/CoreServices.framework/CoreServices"
|
|
23
|
-
),
|
|
24
|
-
{},
|
|
25
|
-
None,
|
|
26
|
-
{
|
|
27
|
-
"__doc__": __doc__,
|
|
28
|
-
"objc": objc,
|
|
29
|
-
"__path__": __path__,
|
|
30
|
-
"__loader__": globals().get("__loader__", None),
|
|
31
|
-
},
|
|
32
|
-
(CoreServices,),
|
|
33
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyobjc-framework-LaunchServices-9.2 → pyobjc-framework-LaunchServices-10.1}/PyObjCTest/__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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|