comtypes 1.4.3__zip → 1.4.5__zip

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 (132) hide show
  1. {comtypes-1.4.3 → comtypes-1.4.5}/CHANGES.txt +18 -0
  2. {comtypes-1.4.3/comtypes.egg-info → comtypes-1.4.5}/PKG-INFO +2 -3
  3. {comtypes-1.4.3 → comtypes-1.4.5}/README.md +0 -1
  4. comtypes-1.4.5/comtypes/__init__.py +268 -0
  5. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/_comobject.py +2 -1
  6. comtypes-1.4.5/comtypes/_idl_stuff.py +67 -0
  7. comtypes-1.4.5/comtypes/_post_coinit/__init__.py +15 -0
  8. comtypes-1.4.5/comtypes/_post_coinit/bstr.py +30 -0
  9. comtypes-1.4.5/comtypes/_post_coinit/misc.py +385 -0
  10. comtypes-1.4.5/comtypes/_post_coinit/unknwn.py +537 -0
  11. comtypes-1.4.5/comtypes/_py_instance_method.py +13 -0
  12. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/_safearray.py +3 -2
  13. comtypes-1.4.5/comtypes/_tlib_version_checker.py +18 -0
  14. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/automation.py +22 -6
  15. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/client/_generate.py +2 -1
  16. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/hints.pyi +34 -0
  17. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/safearray.py +11 -4
  18. comtypes-1.4.5/comtypes/stream.py +65 -0
  19. comtypes-1.4.5/comtypes/test/mylib.tlb +0 -0
  20. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_client.py +11 -0
  21. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_dispifc_records.py +1 -1
  22. comtypes-1.4.5/comtypes/test/test_dispifc_safearrays.py +89 -0
  23. comtypes-1.4.5/comtypes/test/test_istream.py +53 -0
  24. comtypes-1.4.5/comtypes/test/test_midl_safearray_create.py +100 -0
  25. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_wmi.py +11 -18
  26. comtypes-1.4.5/comtypes/test/urlhist.tlb +0 -0
  27. {comtypes-1.4.3 → comtypes-1.4.5/comtypes.egg-info}/PKG-INFO +2 -3
  28. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes.egg-info/SOURCES.txt +15 -0
  29. comtypes-1.4.5/pyproject.toml +3 -0
  30. comtypes-1.4.5/setup.cfg +52 -0
  31. comtypes-1.4.5/setup.py +117 -0
  32. comtypes-1.4.3/comtypes/__init__.py +0 -1229
  33. comtypes-1.4.3/setup.cfg +0 -4
  34. comtypes-1.4.3/setup.py +0 -173
  35. {comtypes-1.4.3 → comtypes-1.4.5}/LICENSE.txt +0 -0
  36. {comtypes-1.4.3 → comtypes-1.4.5}/MANIFEST.in +0 -0
  37. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/GUID.py +0 -0
  38. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/_memberspec.py +0 -0
  39. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/_meta.py +0 -0
  40. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/_npsupport.py +0 -0
  41. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/clear_cache.py +0 -0
  42. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/client/__init__.py +0 -0
  43. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/client/_code_cache.py +0 -0
  44. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/client/_constants.py +0 -0
  45. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/client/_events.py +0 -0
  46. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/client/dynamic.py +0 -0
  47. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/client/lazybind.py +0 -0
  48. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/connectionpoints.py +0 -0
  49. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/errorinfo.py +0 -0
  50. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/git.py +0 -0
  51. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/hresult.py +0 -0
  52. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/logutil.py +0 -0
  53. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/messageloop.py +0 -0
  54. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/patcher.py +0 -0
  55. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/persist.py +0 -0
  56. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/server/__init__.py +0 -0
  57. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/server/automation.py +0 -0
  58. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/server/connectionpoints.py +0 -0
  59. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/server/inprocserver.py +0 -0
  60. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/server/localserver.py +0 -0
  61. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/server/register.py +0 -0
  62. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/server/w_getopt.py +0 -0
  63. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/shelllink.py +0 -0
  64. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/TestComServer.idl +0 -0
  65. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/TestComServer.py +0 -0
  66. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/TestComServer.tlb +0 -0
  67. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/TestDispServer.idl +0 -0
  68. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/TestDispServer.py +0 -0
  69. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/TestDispServer.tlb +0 -0
  70. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/__init__.py +0 -0
  71. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/find_memleak.py +0 -0
  72. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/mylib.idl +0 -0
  73. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/mytypelib.idl +0 -0
  74. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/runtests.py +0 -0
  75. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/setup.py +0 -0
  76. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_BSTR.py +0 -0
  77. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_DISPPARAMS.py +0 -0
  78. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_GUID.py +0 -0
  79. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_QueryService.py +0 -0
  80. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_agilent.py +0 -0
  81. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_avmc.py +0 -0
  82. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_basic.py +0 -0
  83. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_casesensitivity.py +0 -0
  84. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_clear_cache.py +0 -0
  85. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_client_dynamic.py +0 -0
  86. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_client_regenerate_modules.py +0 -0
  87. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_collections.py +0 -0
  88. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_comserver.py +0 -0
  89. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_createwrappers.py +0 -0
  90. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_dict.py +0 -0
  91. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_dispinterface.py +0 -0
  92. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_dyndispatch.py +0 -0
  93. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_excel.py +0 -0
  94. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_findgendir.py +0 -0
  95. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_getactiveobj.py +0 -0
  96. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_ie.py +0 -0
  97. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_ienum.py +0 -0
  98. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_imfattributes.py +0 -0
  99. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_inout_args.py +0 -0
  100. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_jscript.js +0 -0
  101. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_msscript.py +0 -0
  102. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_npsupport.py +0 -0
  103. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_outparam.py +0 -0
  104. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_propputref.py +0 -0
  105. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_pump_events.py +0 -0
  106. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_safearray.py +0 -0
  107. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_sapi.py +0 -0
  108. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_server.py +0 -0
  109. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_showevents.py +0 -0
  110. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_subinterface.py +0 -0
  111. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_typeinfo.py +0 -0
  112. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_urlhistory.py +0 -0
  113. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_variant.py +0 -0
  114. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_win32com_interop.py +0 -0
  115. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/test/test_word.py +0 -0
  116. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/__init__.py +0 -0
  117. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/codegenerator/__init__.py +0 -0
  118. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/codegenerator/codegenerator.py +0 -0
  119. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/codegenerator/helpers.py +0 -0
  120. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/codegenerator/modulenamer.py +0 -0
  121. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/codegenerator/namespaces.py +0 -0
  122. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/codegenerator/packing.py +0 -0
  123. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/codegenerator/typeannotator.py +0 -0
  124. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/tlbparser.py +0 -0
  125. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/typedesc.py +0 -0
  126. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/tools/typedesc_base.py +0 -0
  127. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/typeinfo.py +0 -0
  128. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/util.py +0 -0
  129. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes/viewobject.py +0 -0
  130. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes.egg-info/dependency_links.txt +0 -0
  131. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes.egg-info/entry_points.txt +0 -0
  132. {comtypes-1.4.3 → comtypes-1.4.5}/comtypes.egg-info/top_level.txt +0 -0
comtypes-1.4.3/setup.cfg DELETED
@@ -1,4 +0,0 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
comtypes-1.4.3/setup.py DELETED
@@ -1,173 +0,0 @@
1
- """comtypes package install script"""
2
- import sys
3
- import os
4
- import subprocess
5
-
6
- from setuptools import Command, setup
7
- from setuptools.command.install import install
8
- from setuptools.command.build_py import build_py
9
-
10
-
11
- with open('README.md') as readme_stream:
12
- readme = readme_stream.read()
13
-
14
-
15
- class test(Command):
16
- # Original version of this class posted
17
- # by Berthold Hoellmann to distutils-sig@python.org
18
- description = "run tests"
19
-
20
- user_options = [
21
- ('tests=', 't',
22
- "comma-separated list of packages that contain test modules"),
23
- ('use-resources=', 'u',
24
- "resources to use - resource names are defined by tests"),
25
- ('refcounts', 'r',
26
- "repeat tests to search for refcount leaks (requires "
27
- "'sys.gettotalrefcount')"),
28
- ]
29
-
30
- boolean_options = ["refcounts"]
31
-
32
- def initialize_options(self):
33
- self.use_resources = ""
34
- self.refcounts = False
35
- self.tests = "comtypes.test"
36
- self.failure = False
37
-
38
- def finalize_options(self):
39
- if self.refcounts and not hasattr(sys, "gettotalrefcount"):
40
- raise Exception("refcount option requires Python debug build")
41
- self.tests = self.tests.split(",")
42
- self.use_resources = self.use_resources.split(",")
43
-
44
- def run(self):
45
- build = self.reinitialize_command('build')
46
- build.run()
47
- if build.build_lib is not None:
48
- sys.path.insert(0, build.build_lib)
49
-
50
- # Register our ATL COM tester dll
51
- import comtypes.test
52
- script_path = os.path.dirname(__file__)
53
- source_dir = os.path.abspath(os.path.join(script_path, "source"))
54
- comtypes.test.register_server(source_dir)
55
-
56
- comtypes.test.use_resources.extend(self.use_resources)
57
- for name in self.tests:
58
- package = __import__(name, globals(), locals(), ['*'])
59
- sys.stdout.write("Testing package %s %s\n"
60
- % (name, (sys.version, sys.platform, os.name)))
61
- package_failure = comtypes.test.run_tests(package,
62
- "test_*.py",
63
- self.verbose,
64
- self.refcounts)
65
- self.failure = self.failure or package_failure
66
-
67
-
68
- classifiers = [
69
- 'Development Status :: 5 - Production/Stable',
70
- 'Intended Audience :: Developers',
71
- 'License :: OSI Approved :: MIT License',
72
- 'Operating System :: Microsoft :: Windows',
73
- 'Programming Language :: Python',
74
- 'Programming Language :: Python :: 3',
75
- 'Topic :: Software Development :: Libraries :: Python Modules',
76
- ]
77
-
78
-
79
- def read_version():
80
- # Determine the version number by reading it from the file
81
- # 'comtypes\__init__.py'. We cannot import this file (with py3,
82
- # at least) because it is in py2.x syntax.
83
- for line in open("comtypes/__init__.py"):
84
- if line.startswith("__version__ = "):
85
- var, value = line.split('=')
86
- return value.strip().strip('"').strip("'")
87
- raise NotImplementedError("__version__ is not found in __init__.py")
88
-
89
-
90
- class post_install(install):
91
-
92
- # both this static variable and method initialize_options() help to avoid
93
- # weird setuptools error with "pip install comtypes", details are here:
94
- # https://github.com/enthought/comtypes/issues/155
95
- # the working solution was found here:
96
- # https://github.com/pypa/setuptools/blob/3b90be7bb6323eb44d0f28864509c1d47aa098de/setuptools/command/install.py
97
- user_options = install.user_options + [
98
- ('old-and-unmanageable', None, "Try not to use this!"),
99
- ('single-version-externally-managed', None,
100
- "used by system package builders to create 'flat' eggs"),
101
- ]
102
-
103
- def initialize_options(self):
104
- install.initialize_options(self)
105
- self.old_and_unmanageable = None
106
- self.single_version_externally_managed = None
107
-
108
- def run(self):
109
- install.run(self)
110
- # Custom script we run at the end of installing
111
- if not self.dry_run and not self.root:
112
- print("Executing post install script...")
113
- print(f'"{sys.executable}" -m comtypes.clear_cache -y')
114
- try:
115
- subprocess.check_call([sys.executable, "-m", "comtypes.clear_cache", '-y'])
116
- except subprocess.CalledProcessError:
117
- print("Failed to run post install script!")
118
-
119
-
120
- setup_params = dict(
121
- name="comtypes",
122
- description="Pure Python COM package",
123
- long_description=readme,
124
- long_description_content_type="text/markdown",
125
- author="Thomas Heller",
126
- author_email="theller@python.net",
127
- url="https://github.com/enthought/comtypes",
128
- download_url="https://github.com/enthought/comtypes/releases",
129
- license="MIT License",
130
- package_data={
131
- "comtypes.test": [
132
- "TestComServer.idl",
133
- "TestComServer.tlb",
134
- "TestDispServer.idl",
135
- "TestDispServer.tlb",
136
- "mytypelib.idl",
137
- "mylib.idl",
138
- "mylib.tlb"
139
- "urlhist.tlb",
140
- "test_jscript.js",
141
- ],
142
- "comtypes": [
143
- "hints.pyi"
144
- ]},
145
- classifiers=classifiers,
146
-
147
- entry_points={
148
- "console_scripts": ["clear_comtypes_cache=comtypes.clear_cache:main"]
149
- },
150
-
151
- cmdclass={
152
- 'test': test,
153
- 'build_py': build_py,
154
- 'install': post_install,
155
- },
156
-
157
- version=read_version(),
158
- packages=[
159
- "comtypes",
160
- "comtypes.client",
161
- "comtypes.server",
162
- "comtypes.tools",
163
- "comtypes.tools.codegenerator",
164
- "comtypes.test",
165
- ],
166
- )
167
-
168
- if __name__ == '__main__':
169
- dist = setup(**setup_params)
170
- # Exit with a failure code if only running the tests and they failed
171
- if dist.commands == ['test']:
172
- command = dist.command_obj['test']
173
- sys.exit(command.failure)
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
File without changes
File without changes