py2docfx 0.1.13.dev2016838__py3-none-any.whl → 0.1.13.dev2021865__py3-none-any.whl

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 (346) hide show
  1. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
  2. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
  3. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
  4. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
  5. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
  6. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
  7. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
  8. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
  9. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
  10. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
  11. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
  12. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
  13. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
  14. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
  15. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
  16. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
  17. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
  18. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
  19. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
  20. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
  21. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
  22. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
  23. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
  24. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
  25. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
  26. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
  27. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
  28. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
  29. py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
  30. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
  31. py2docfx/venv/{venv1/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
  32. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
  33. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
  34. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
  35. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
  36. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
  37. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
  38. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
  39. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
  40. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
  41. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
  42. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
  43. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
  44. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
  45. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/util.py +38 -23
  46. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
  47. py2docfx/venv/basevenv/Lib/site-packages/setuptools/_static.py +1 -1
  48. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
  49. py2docfx/venv/basevenv/Lib/site-packages/setuptools/command/install.py +1 -1
  50. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
  51. py2docfx/venv/basevenv/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
  52. py2docfx/venv/basevenv/Lib/site-packages/setuptools/unicode_utils.py +1 -1
  53. py2docfx/venv/venv1/Lib/site-packages/adodbapi/__init__.py +2 -1
  54. py2docfx/venv/venv1/Lib/site-packages/adodbapi/ado_consts.py +3 -1
  55. py2docfx/venv/venv1/Lib/site-packages/adodbapi/adodbapi.py +22 -26
  56. py2docfx/venv/venv1/Lib/site-packages/adodbapi/apibase.py +3 -4
  57. py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_print.py +1 -1
  58. py2docfx/venv/venv1/Lib/site-packages/adodbapi/examples/db_table_names.py +1 -1
  59. py2docfx/venv/venv1/Lib/site-packages/adodbapi/process_connect_string.py +7 -7
  60. py2docfx/venv/venv1/Lib/site-packages/adodbapi/setup.py +2 -2
  61. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitest.py +21 -73
  62. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/adodbapitestconfig.py +1 -1
  63. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/dbapi20.py +11 -17
  64. py2docfx/venv/venv1/Lib/site-packages/adodbapi/test/setuptestframework.py +2 -1
  65. py2docfx/venv/venv1/Lib/site-packages/isapi/install.py +8 -11
  66. py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector.py +1 -1
  67. py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_asynch.py +1 -1
  68. py2docfx/venv/venv1/Lib/site-packages/isapi/samples/redirector_with_filter.py +2 -1
  69. py2docfx/venv/venv1/Lib/site-packages/isapi/simple.py +1 -0
  70. py2docfx/venv/venv1/Lib/site-packages/isapi/threaded_extension.py +1 -0
  71. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/basictimerapp.py +1 -1
  72. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/customprint.py +1 -3
  73. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/app/demoutils.py +1 -3
  74. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/cmdserver.py +2 -5
  75. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/guidemo.py +14 -41
  76. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/objdoc.py +1 -1
  77. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/demoutils.py +1 -3
  78. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/flash.py +1 -1
  79. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxserialtest.py +1 -2
  80. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/ocxtest.py +1 -2
  81. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/webbrowser.py +3 -3
  82. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/openGLDemo.py +57 -12
  83. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/toolbar.py +0 -1
  84. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/configui.py +1 -1
  85. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/dbgcon.py +0 -1
  86. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/debugger.py +7 -8
  87. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/debugger/fail.py +1 -1
  88. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/ideoptions.py +7 -10
  89. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/list.py +11 -8
  90. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/dialogs/login.py +0 -1
  91. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/docking/DockingBar.py +0 -1
  92. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/app.py +19 -22
  93. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/dbgcommands.py +2 -3
  94. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/ModuleBrowser.py +1 -1
  95. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/__init__.py +3 -1
  96. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/document.py +0 -1
  97. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/editor.py +6 -6
  98. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/editor/vss.py +2 -2
  99. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/help.py +2 -1
  100. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/interact.py +1 -1
  101. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpyapp.py +5 -7
  102. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/intpydde.py +7 -2
  103. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/scriptutils.py +4 -6
  104. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py +13 -22
  105. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/startup.py +1 -1
  106. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/stdin.py +1 -0
  107. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/toolmenu.py +0 -2
  108. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/AutoIndent.py +3 -3
  109. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/idle/CallTips.py +1 -3
  110. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/activex.py +1 -2
  111. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/mfc/dialog.py +7 -10
  112. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/IDLEenvironment.py +1 -5
  113. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/bindings.py +4 -2
  114. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/config.py +3 -5
  115. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/configui.py +2 -3
  116. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/document.py +1 -1
  117. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/formatter.py +3 -3
  118. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/keycodes.py +2 -2
  119. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/scintillacon.py +1178 -78
  120. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/scintilla/view.py +17 -21
  121. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/browser.py +6 -18
  122. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/tools/hierlist.py +2 -2
  123. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_modified.py +26 -4
  124. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/_msvccompiler.py +2 -603
  125. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/archive_util.py +48 -18
  126. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/ccompiler.py +17 -1257
  127. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cmd.py +133 -41
  128. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist.py +19 -8
  129. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_dumb.py +2 -1
  130. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/bdist_rpm.py +6 -5
  131. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build.py +8 -4
  132. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_clib.py +8 -7
  133. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_ext.py +32 -13
  134. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_py.py +10 -9
  135. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/build_scripts.py +3 -14
  136. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/check.py +1 -1
  137. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/clean.py +2 -1
  138. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/config.py +1 -8
  139. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install.py +22 -19
  140. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_data.py +4 -3
  141. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_headers.py +1 -1
  142. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_lib.py +11 -7
  143. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/install_scripts.py +4 -3
  144. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/command/sdist.py +22 -16
  145. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compat/__init__.py +6 -1
  146. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/base.py +1391 -0
  147. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/cygwin.py +340 -0
  148. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/errors.py +24 -0
  149. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/msvc.py +614 -0
  150. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_ccompiler.py → compilers/C/tests/test_base.py} +9 -19
  151. py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_cygwinccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_cygwin.py} +7 -12
  152. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_mingwccompiler.py → compilers/C/tests/test_mingw.py} +12 -20
  153. py2docfx/venv/{basevenv/Lib/site-packages/setuptools/_distutils/tests/test_msvccompiler.py → venv1/Lib/site-packages/setuptools/_distutils/compilers/C/tests/test_msvc.py} +11 -12
  154. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/{tests/test_unixccompiler.py → compilers/C/tests/test_unix.py} +5 -5
  155. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/unix.py +409 -0
  156. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/compilers/C/zos.py +230 -0
  157. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/cygwinccompiler.py +20 -328
  158. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/dist.py +148 -80
  159. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/errors.py +11 -27
  160. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/extension.py +19 -16
  161. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/filelist.py +80 -15
  162. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/spawn.py +22 -5
  163. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/sysconfig.py +32 -7
  164. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_build_ext.py +13 -0
  165. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/tests/test_sdist.py +1 -1
  166. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/unixccompiler.py +2 -401
  167. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/util.py +38 -23
  168. py2docfx/venv/venv1/Lib/site-packages/setuptools/_distutils/zosccompiler.py +2 -228
  169. py2docfx/venv/venv1/Lib/site-packages/setuptools/_static.py +1 -1
  170. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/editable_wheel.py +3 -3
  171. py2docfx/venv/venv1/Lib/site-packages/setuptools/command/install.py +1 -1
  172. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/config/test_setupcfg.py +2 -0
  173. py2docfx/venv/venv1/Lib/site-packages/setuptools/tests/test_build_py.py +1 -1
  174. py2docfx/venv/venv1/Lib/site-packages/setuptools/unicode_utils.py +1 -1
  175. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtFormatMessage.py +1 -1
  176. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/EvtSubscribe_push.py +8 -1
  177. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/GetSaveFileName.py +8 -8
  178. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/c_extension/setup.py +1 -1
  179. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeclient.py +1 -1
  180. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/dde/ddeserver.py +1 -1
  181. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/getfilever.py +1 -1
  182. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/pipes/runproc.py +2 -2
  183. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/rastest.py +4 -6
  184. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/GetTokenInformation.py +4 -4
  185. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/account_rights.py +0 -2
  186. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/explicit_entries.py +0 -1
  187. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/get_policy_info.py +0 -3
  188. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/list_rights.py +0 -2
  189. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/localized_names.py +7 -2
  190. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/query_information.py +1 -1
  191. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_audit.py +1 -2
  192. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_file_owner.py +0 -1
  193. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/set_policy_info.py +0 -3
  194. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setkernelobjectsecurity.py +0 -1
  195. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setsecurityinfo.py +0 -1
  196. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py +0 -1
  197. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/fetch_url.py +3 -3
  198. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/simple_auth.py +3 -3
  199. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/security/sspi/socket_server.py +1 -2
  200. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestService.py +10 -9
  201. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/service/pipeTestServiceClient.py +6 -3
  202. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32clipboardDemo.py +17 -5
  203. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32comport_demo.py +32 -2
  204. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32console_demo.py +1 -4
  205. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_devicenotify.py +0 -1
  206. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_menu.py +60 -5
  207. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32gui_taskbar.py +1 -1
  208. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32netdemo.py +2 -5
  209. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32ts_logoff_disconnected.py +1 -1
  210. py2docfx/venv/venv1/Lib/site-packages/win32/Demos/win32wnet/testwnet.py +1 -1
  211. py2docfx/venv/venv1/Lib/site-packages/win32/lib/commctrl.py +1 -1
  212. py2docfx/venv/venv1/Lib/site-packages/win32/lib/netbios.py +8 -10
  213. py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_bootstrap.py +2 -10
  214. py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywin32_testutil.py +2 -2
  215. py2docfx/venv/venv1/Lib/site-packages/win32/lib/pywintypes.py +1 -1
  216. py2docfx/venv/venv1/Lib/site-packages/win32/lib/regutil.py +1 -1
  217. py2docfx/venv/venv1/Lib/site-packages/win32/lib/sspi.py +3 -3
  218. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win2kras.py +14 -7
  219. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32con.py +16 -35
  220. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32cryptcon.py +1 -4
  221. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32evtlogutil.py +1 -2
  222. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32gui_struct.py +6 -6
  223. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhquery.py +10 -11
  224. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32pdhutil.py +5 -5
  225. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32rcparser.py +1 -0
  226. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32serviceutil.py +4 -6
  227. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32timezone.py +304 -121
  228. py2docfx/venv/venv1/Lib/site-packages/win32/lib/win32verstamp.py +1 -1
  229. py2docfx/venv/venv1/Lib/site-packages/win32/lib/winerror.py +4926 -604
  230. py2docfx/venv/venv1/Lib/site-packages/win32/lib/winxptheme.py +1 -1
  231. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/h2py.py +194 -0
  232. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_postinstall.py +733 -0
  233. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/pywin32_testall.py +120 -0
  234. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/regsetup.py +4 -7
  235. py2docfx/venv/venv1/Lib/site-packages/win32/scripts/setup_d.py +1 -1
  236. py2docfx/venv/venv1/Lib/site-packages/win32/test/handles.py +13 -5
  237. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_clipboard.py +12 -1
  238. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_sspi.py +1 -1
  239. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32api.py +8 -4
  240. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32clipboard.py +2 -3
  241. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32cred.py +0 -1
  242. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32crypt.py +16 -3
  243. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32file.py +24 -8
  244. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32gui.py +0 -1
  245. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32guistruct.py +2 -5
  246. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32inet.py +23 -6
  247. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32net.py +0 -1
  248. py2docfx/venv/venv1/Lib/site-packages/win32/test/test_win32ts.py +19 -0
  249. py2docfx/venv/venv1/Lib/site-packages/win32/winxpgui.py +3 -11
  250. py2docfx/venv/venv1/Lib/site-packages/win32com/client/CLSIDToClass.py +3 -1
  251. py2docfx/venv/venv1/Lib/site-packages/win32com/client/__init__.py +97 -65
  252. py2docfx/venv/venv1/Lib/site-packages/win32com/client/build.py +24 -24
  253. py2docfx/venv/venv1/Lib/site-packages/win32com/client/combrowse.py +17 -33
  254. py2docfx/venv/venv1/Lib/site-packages/win32com/client/dynamic.py +14 -14
  255. py2docfx/venv/venv1/Lib/site-packages/win32com/client/gencache.py +30 -12
  256. py2docfx/venv/venv1/Lib/site-packages/win32com/client/genpy.py +50 -98
  257. py2docfx/venv/venv1/Lib/site-packages/win32com/client/makepy.py +12 -8
  258. py2docfx/venv/venv1/Lib/site-packages/win32com/client/selecttlb.py +3 -4
  259. py2docfx/venv/venv1/Lib/site-packages/win32com/client/util.py +1 -1
  260. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/dump_clipboard.py +1 -1
  261. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelAddin.py +1 -1
  262. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/excelRTDServer.py +1 -1
  263. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/iebutton.py +0 -3
  264. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/ietoolbar.py +1 -1
  265. py2docfx/venv/venv1/Lib/site-packages/win32com/demos/outlookAddin.py +1 -3
  266. py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegw.py +48 -56
  267. py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwenum.py +2 -6
  268. py2docfx/venv/venv1/Lib/site-packages/win32com/makegw/makegwparse.py +9 -11
  269. py2docfx/venv/venv1/Lib/site-packages/win32com/olectl.py +1 -1
  270. py2docfx/venv/venv1/Lib/site-packages/win32com/server/connect.py +2 -2
  271. py2docfx/venv/venv1/Lib/site-packages/win32com/server/dispatcher.py +20 -24
  272. py2docfx/venv/venv1/Lib/site-packages/win32com/server/exception.py +8 -8
  273. py2docfx/venv/venv1/Lib/site-packages/win32com/server/policy.py +4 -18
  274. py2docfx/venv/venv1/Lib/site-packages/win32com/server/register.py +5 -6
  275. py2docfx/venv/venv1/Lib/site-packages/win32com/servers/dictionary.py +2 -5
  276. py2docfx/venv/venv1/Lib/site-packages/win32com/servers/interp.py +7 -7
  277. py2docfx/venv/venv1/Lib/site-packages/win32com/servers/test_pycomtest.py +0 -1
  278. py2docfx/venv/venv1/Lib/site-packages/win32com/test/GenTestScripts.py +2 -4
  279. py2docfx/venv/venv1/Lib/site-packages/win32com/test/errorSemantics.py +3 -3
  280. py2docfx/venv/venv1/Lib/site-packages/win32com/test/pippo_server.py +1 -4
  281. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testADOEvents.py +1 -1
  282. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testAXScript.py +1 -2
  283. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDictionary.py +4 -3
  284. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testDynamic.py +3 -5
  285. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testExchange.py +2 -7
  286. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testGatewayAddresses.py +1 -1
  287. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testIterators.py +1 -1
  288. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOffice.py +40 -57
  289. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testMSOfficeEvents.py +3 -3
  290. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPersist.py +7 -7
  291. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPippo.py +2 -3
  292. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testPyComTest.py +143 -7
  293. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testServers.py +1 -2
  294. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testall.py +1 -2
  295. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testmakepy.py +1 -2
  296. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testvb.py +12 -8
  297. py2docfx/venv/venv1/Lib/site-packages/win32com/test/util.py +1 -3
  298. py2docfx/venv/venv1/Lib/site-packages/win32com/universal.py +1 -3
  299. py2docfx/venv/venv1/Lib/site-packages/win32com/util.py +1 -1
  300. py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/scp.py +1 -1
  301. py2docfx/venv/venv1/Lib/site-packages/win32comext/adsi/demos/search.py +0 -1
  302. py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditSecurity.py +1 -24
  303. py2docfx/venv/venv1/Lib/site-packages/win32comext/authorization/demos/EditServiceSecurity.py +0 -20
  304. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/adb.py +2 -8
  305. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/codecontainer.py +16 -12
  306. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/contexts.py +1 -3
  307. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/debugger.py +2 -2
  308. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/documents.py +2 -3
  309. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/dump.py +2 -4
  310. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/expressions.py +2 -2
  311. py2docfx/venv/venv1/Lib/site-packages/win32comext/axdebug/util.py +7 -14
  312. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/debug.py +2 -14
  313. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/error.py +4 -5
  314. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/framework.py +5 -5
  315. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pydumper.py +0 -1
  316. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/pyscript.py +5 -10
  317. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/client/scriptdispatch.py +3 -4
  318. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/server/axsite.py +1 -2
  319. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/leakTest.py +2 -3
  320. py2docfx/venv/venv1/Lib/site-packages/win32comext/axscript/test/testHost4Dbg.py +0 -3
  321. py2docfx/venv/venv1/Lib/site-packages/win32comext/bits/test/test_bits.py +3 -3
  322. py2docfx/venv/venv1/Lib/site-packages/win32comext/ifilter/demo/filterDemo.py +1 -1
  323. py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/demos/mapisend.py +1 -1
  324. py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/emsabtags.py +1 -0
  325. py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapitags.py +1 -3
  326. py2docfx/venv/venv1/Lib/site-packages/win32comext/mapi/mapiutil.py +2 -2
  327. py2docfx/venv/venv1/Lib/site-packages/win32comext/propsys/test/testpropsys.py +1 -1
  328. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/IFileOperationProgressSink.py +1 -1
  329. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/ITransferAdviseSink.py +5 -3
  330. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/column_provider.py +0 -1
  331. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/copy_hook.py +1 -1
  332. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/empty_volume_cache.py +1 -1
  333. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/folder_view.py +2 -2
  334. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/icon_handler.py +1 -2
  335. py2docfx/venv/venv1/Lib/site-packages/win32comext/shell/demos/servers/shell_view.py +4 -5
  336. py2docfx/venv/venv1/Lib/site-packages/win32comext/taskscheduler/test/test_addtask_2.py +0 -1
  337. py2docfx/venv/venv1/Scripts/pywin32_postinstall.py +77 -122
  338. py2docfx/venv/venv1/Scripts/pywin32_testall.py +4 -9
  339. {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/METADATA +1 -1
  340. {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/RECORD +342 -330
  341. py2docfx/venv/venv1/Lib/site-packages/docs/conf.py +0 -384
  342. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/Demos/ocx/__init__.py +0 -0
  343. py2docfx/venv/venv1/Lib/site-packages/pythonwin/pywin/framework/mdi_pychecker.py +0 -850
  344. py2docfx/venv/venv1/Lib/site-packages/win32com/test/testNetscape.py +0 -24
  345. {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/WHEEL +0 -0
  346. {py2docfx-0.1.13.dev2016838.dist-info → py2docfx-0.1.13.dev2021865.dist-info}/top_level.txt +0 -0
@@ -1,229 +1,3 @@
1
- """distutils.zosccompiler
1
+ from .compilers.C import zos
2
2
 
3
- Contains the selection of the c & c++ compilers on z/OS. There are several
4
- different c compilers on z/OS, all of them are optional, so the correct
5
- one needs to be chosen based on the users input. This is compatible with
6
- the following compilers:
7
-
8
- IBM C/C++ For Open Enterprise Languages on z/OS 2.0
9
- IBM Open XL C/C++ 1.1 for z/OS
10
- IBM XL C/C++ V2.4.1 for z/OS 2.4 and 2.5
11
- IBM z/OS XL C/C++
12
- """
13
-
14
- import os
15
-
16
- from . import sysconfig
17
- from .errors import CompileError, DistutilsExecError
18
- from .unixccompiler import UnixCCompiler
19
-
20
- _cc_args = {
21
- 'ibm-openxl': [
22
- '-m64',
23
- '-fvisibility=default',
24
- '-fzos-le-char-mode=ascii',
25
- '-fno-short-enums',
26
- ],
27
- 'ibm-xlclang': [
28
- '-q64',
29
- '-qexportall',
30
- '-qascii',
31
- '-qstrict',
32
- '-qnocsect',
33
- '-Wa,asa,goff',
34
- '-Wa,xplink',
35
- '-qgonumber',
36
- '-qenum=int',
37
- '-Wc,DLL',
38
- ],
39
- 'ibm-xlc': [
40
- '-q64',
41
- '-qexportall',
42
- '-qascii',
43
- '-qstrict',
44
- '-qnocsect',
45
- '-Wa,asa,goff',
46
- '-Wa,xplink',
47
- '-qgonumber',
48
- '-qenum=int',
49
- '-Wc,DLL',
50
- '-qlanglvl=extc99',
51
- ],
52
- }
53
-
54
- _cxx_args = {
55
- 'ibm-openxl': [
56
- '-m64',
57
- '-fvisibility=default',
58
- '-fzos-le-char-mode=ascii',
59
- '-fno-short-enums',
60
- ],
61
- 'ibm-xlclang': [
62
- '-q64',
63
- '-qexportall',
64
- '-qascii',
65
- '-qstrict',
66
- '-qnocsect',
67
- '-Wa,asa,goff',
68
- '-Wa,xplink',
69
- '-qgonumber',
70
- '-qenum=int',
71
- '-Wc,DLL',
72
- ],
73
- 'ibm-xlc': [
74
- '-q64',
75
- '-qexportall',
76
- '-qascii',
77
- '-qstrict',
78
- '-qnocsect',
79
- '-Wa,asa,goff',
80
- '-Wa,xplink',
81
- '-qgonumber',
82
- '-qenum=int',
83
- '-Wc,DLL',
84
- '-qlanglvl=extended0x',
85
- ],
86
- }
87
-
88
- _asm_args = {
89
- 'ibm-openxl': ['-fasm', '-fno-integrated-as', '-Wa,--ASA', '-Wa,--GOFF'],
90
- 'ibm-xlclang': [],
91
- 'ibm-xlc': [],
92
- }
93
-
94
- _ld_args = {
95
- 'ibm-openxl': [],
96
- 'ibm-xlclang': ['-Wl,dll', '-q64'],
97
- 'ibm-xlc': ['-Wl,dll', '-q64'],
98
- }
99
-
100
-
101
- # Python on z/OS is built with no compiler specific options in it's CFLAGS.
102
- # But each compiler requires it's own specific options to build successfully,
103
- # though some of the options are common between them
104
- class zOSCCompiler(UnixCCompiler):
105
- src_extensions = ['.c', '.C', '.cc', '.cxx', '.cpp', '.m', '.s']
106
- _cpp_extensions = ['.cc', '.cpp', '.cxx', '.C']
107
- _asm_extensions = ['.s']
108
-
109
- def _get_zos_compiler_name(self):
110
- zos_compiler_names = [
111
- os.path.basename(binary)
112
- for envvar in ('CC', 'CXX', 'LDSHARED')
113
- if (binary := os.environ.get(envvar, None))
114
- ]
115
- if len(zos_compiler_names) == 0:
116
- return 'ibm-openxl'
117
-
118
- zos_compilers = {}
119
- for compiler in (
120
- 'ibm-clang',
121
- 'ibm-clang64',
122
- 'ibm-clang++',
123
- 'ibm-clang++64',
124
- 'clang',
125
- 'clang++',
126
- 'clang-14',
127
- ):
128
- zos_compilers[compiler] = 'ibm-openxl'
129
-
130
- for compiler in ('xlclang', 'xlclang++', 'njsc', 'njsc++'):
131
- zos_compilers[compiler] = 'ibm-xlclang'
132
-
133
- for compiler in ('xlc', 'xlC', 'xlc++'):
134
- zos_compilers[compiler] = 'ibm-xlc'
135
-
136
- return zos_compilers.get(zos_compiler_names[0], 'ibm-openxl')
137
-
138
- def __init__(self, verbose=False, dry_run=False, force=False):
139
- super().__init__(verbose, dry_run, force)
140
- self.zos_compiler = self._get_zos_compiler_name()
141
- sysconfig.customize_compiler(self)
142
-
143
- def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
144
- local_args = []
145
- if ext in self._cpp_extensions:
146
- compiler = self.compiler_cxx
147
- local_args.extend(_cxx_args[self.zos_compiler])
148
- elif ext in self._asm_extensions:
149
- compiler = self.compiler_so
150
- local_args.extend(_cc_args[self.zos_compiler])
151
- local_args.extend(_asm_args[self.zos_compiler])
152
- else:
153
- compiler = self.compiler_so
154
- local_args.extend(_cc_args[self.zos_compiler])
155
- local_args.extend(cc_args)
156
-
157
- try:
158
- self.spawn(compiler + local_args + [src, '-o', obj] + extra_postargs)
159
- except DistutilsExecError as msg:
160
- raise CompileError(msg)
161
-
162
- def runtime_library_dir_option(self, dir):
163
- return '-L' + dir
164
-
165
- def link(
166
- self,
167
- target_desc,
168
- objects,
169
- output_filename,
170
- output_dir=None,
171
- libraries=None,
172
- library_dirs=None,
173
- runtime_library_dirs=None,
174
- export_symbols=None,
175
- debug=False,
176
- extra_preargs=None,
177
- extra_postargs=None,
178
- build_temp=None,
179
- target_lang=None,
180
- ):
181
- # For a built module to use functions from cpython, it needs to use Pythons
182
- # side deck file. The side deck is located beside the libpython3.xx.so
183
- ldversion = sysconfig.get_config_var('LDVERSION')
184
- if sysconfig.python_build:
185
- side_deck_path = os.path.join(
186
- sysconfig.get_config_var('abs_builddir'),
187
- f'libpython{ldversion}.x',
188
- )
189
- else:
190
- side_deck_path = os.path.join(
191
- sysconfig.get_config_var('installed_base'),
192
- sysconfig.get_config_var('platlibdir'),
193
- f'libpython{ldversion}.x',
194
- )
195
-
196
- if os.path.exists(side_deck_path):
197
- if extra_postargs:
198
- extra_postargs.append(side_deck_path)
199
- else:
200
- extra_postargs = [side_deck_path]
201
-
202
- # Check and replace libraries included side deck files
203
- if runtime_library_dirs:
204
- for dir in runtime_library_dirs:
205
- for library in libraries[:]:
206
- library_side_deck = os.path.join(dir, f'{library}.x')
207
- if os.path.exists(library_side_deck):
208
- libraries.remove(library)
209
- extra_postargs.append(library_side_deck)
210
- break
211
-
212
- # Any required ld args for the given compiler
213
- extra_postargs.extend(_ld_args[self.zos_compiler])
214
-
215
- super().link(
216
- target_desc,
217
- objects,
218
- output_filename,
219
- output_dir,
220
- libraries,
221
- library_dirs,
222
- runtime_library_dirs,
223
- export_symbols,
224
- debug,
225
- extra_preargs,
226
- extra_postargs,
227
- build_temp,
228
- target_lang,
229
- )
3
+ zOSCCompiler = zos.Compiler
@@ -27,7 +27,7 @@ class Static:
27
27
  def _prevent_modification(target: type, method: str, copying: str) -> None:
28
28
  """
29
29
  Because setuptools is very flexible we cannot fully prevent
30
- plugins and user customisations from modifying static values that were
30
+ plugins and user customizations from modifying static values that were
31
31
  parsed from config files.
32
32
  But we can attempt to block "in-place" mutations and identify when they
33
33
  were done.
@@ -278,7 +278,7 @@ class editable_wheel(Command):
278
278
  This method implements a temporary workaround to support the ecosystem
279
279
  while the implementations catch up.
280
280
  """
281
- # TODO: Once plugins/customisations had the chance to catch up, replace
281
+ # TODO: Once plugins/customizations had the chance to catch up, replace
282
282
  # `self._run_build_subcommands()` with `self.run_command("build")`.
283
283
  # Also remove _safely_run, TestCustomBuildPy. Suggested date: Aug/2023.
284
284
  build = self.get_finalized_command("build")
@@ -309,7 +309,7 @@ class editable_wheel(Command):
309
309
  https://setuptools.pypa.io/en/latest/userguide/extension.html.
310
310
 
311
311
  For the time being `setuptools` will silence this error and ignore
312
- the faulty command, but this behaviour will change in future versions.
312
+ the faulty command, but this behavior will change in future versions.
313
313
  """,
314
314
  # TODO: define due_date
315
315
  # There is a series of shortcomings with the available editable install
@@ -564,7 +564,7 @@ def _encode_pth(content: str) -> bytes:
564
564
  .pth files are always read with 'locale' encoding, the recommendation
565
565
  from the cpython core developers is to write them as ``open(path, "w")``
566
566
  and ignore warnings (see python/cpython#77102, pypa/setuptools#3937).
567
- This function tries to simulate this behaviour without having to create an
567
+ This function tries to simulate this behavior without having to create an
568
568
  actual file, in a way that supports a range of active Python versions.
569
569
  (There seems to be some variety in the way different version of Python handle
570
570
  ``encoding=None``, not all of them use ``locale.getpreferredencoding(False)``
@@ -68,7 +68,7 @@ class install(orig.install):
68
68
  """,
69
69
  see_url="https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html",
70
70
  # TODO: Document how to bootstrap setuptools without install
71
- # (e.g. by unziping the wheel file)
71
+ # (e.g. by unzipping the wheel file)
72
72
  # and then add a due_date to this warning.
73
73
  )
74
74
 
@@ -420,6 +420,7 @@ class TestMetadata:
420
420
  with get_dist(tmpdir):
421
421
  pass
422
422
 
423
+ @pytest.mark.xfail(reason="#4864")
423
424
  def test_warn_dash_deprecation(self, tmpdir):
424
425
  # warn_dash_deprecation() is a method in setuptools.dist
425
426
  # remove this test and the method when no longer needed
@@ -437,6 +438,7 @@ class TestMetadata:
437
438
  assert metadata.author_email == 'test@test.com'
438
439
  assert metadata.maintainer_email == 'foo@foo.com'
439
440
 
441
+ @pytest.mark.xfail(reason="#4864")
440
442
  def test_make_option_lowercase(self, tmpdir):
441
443
  # remove this test and the method make_option_lowercase() in setuptools.dist
442
444
  # when no longer needed
@@ -168,7 +168,7 @@ def test_excluded_subpackages(tmpdir_cwd):
168
168
  with pytest.warns(SetuptoolsDeprecationWarning, match=msg):
169
169
  # TODO: To fix #3260 we need some transition period to deprecate the
170
170
  # existing behavior of `include_package_data`. After the transition, we
171
- # should remove the warning and fix the behaviour.
171
+ # should remove the warning and fix the behavior.
172
172
 
173
173
  if os.getenv("SETUPTOOLS_USE_DISTUTILS") == "stdlib":
174
174
  # pytest.warns reset the warning filter temporarily
@@ -86,7 +86,7 @@ class _Utf8EncodingNeeded(SetuptoolsDeprecationWarning):
86
86
  """
87
87
 
88
88
  _DETAILS = """
89
- Fallback behaviour for UTF-8 is considered **deprecated** and future versions of
89
+ Fallback behavior for UTF-8 is considered **deprecated** and future versions of
90
90
  `setuptools` may not implement it.
91
91
 
92
92
  Please encode {file!r} with "utf-8" to ensure future builds will succeed.
@@ -76,7 +76,7 @@ def main():
76
76
  # > UnicodeEncodeError: \'charmap\' codec can\'t encode character \'\\u200e\' in position 57: character maps to <undefined>\r\n'
77
77
  # Can't reproduce when running manually, so it seems more a subprocess.Popen()
78
78
  # than ours:
79
- print(" Failed to decode:", repr(message))
79
+ print(f" Failed to decode: {message!r}")
80
80
 
81
81
 
82
82
  if __name__ == "__main__":
@@ -1,4 +1,8 @@
1
1
  ## Demonstrates a "push" subscription with a callback function
2
+ from __future__ import annotations
3
+
4
+ from time import sleep
5
+
2
6
  import win32evtlog
3
7
 
4
8
  query_text = '*[System[Provider[@Name="Microsoft-Windows-Winlogon"]]]'
@@ -15,7 +19,7 @@ def c(reason, context, evt):
15
19
  return 0
16
20
 
17
21
 
18
- evttext = []
22
+ evttext: list[str] = []
19
23
  s = win32evtlog.EvtSubscribe(
20
24
  "System",
21
25
  win32evtlog.EvtSubscribeStartAtOldestRecord,
@@ -23,3 +27,6 @@ s = win32evtlog.EvtSubscribe(
23
27
  Callback=c,
24
28
  Context=evttext,
25
29
  )
30
+
31
+ sleep(0.001)
32
+ print("\n".join(evttext))
@@ -17,10 +17,10 @@ fname, customfilter, flags = win32gui.GetSaveFileNameW(
17
17
  FilterIndex=1,
18
18
  )
19
19
 
20
- print("save file names:", repr(fname))
21
- print("filter used:", repr(customfilter))
22
- print("Flags:", flags)
23
- for k, v in list(win32con.__dict__.items()):
20
+ print(f"save file names: {fname!r}")
21
+ print(f"filter used: {customfilter!r}")
22
+ print(f"Flags: {flags}")
23
+ for k, v in win32con.__dict__.items():
24
24
  if k.startswith("OFN_") and flags & v:
25
25
  print("\t" + k)
26
26
 
@@ -35,9 +35,9 @@ fname, customfilter, flags = win32gui.GetOpenFileNameW(
35
35
  FilterIndex=0,
36
36
  )
37
37
 
38
- print("open file names:", repr(fname))
39
- print("filter used:", repr(customfilter))
40
- print("Flags:", flags)
41
- for k, v in list(win32con.__dict__.items()):
38
+ print(f"open file names: {fname!r}")
39
+ print(f"filter used: {customfilter!r}")
40
+ print(f"Flags: {flags}")
41
+ for k, v in win32con.__dict__.items():
42
42
  if k.startswith("OFN_") and flags & v:
43
43
  print("\t" + k)
@@ -1,7 +1,7 @@
1
1
  # A sample distutils script to show to build your own
2
2
  # extension module which extends pywintypes or pythoncom.
3
3
  #
4
- # Use 'python setup.py build' to build this extension.
4
+ # Use 'python -m build' to build this extension.
5
5
  import os
6
6
  from setuptools import Extension, setup
7
7
  from sysconfig import get_paths
@@ -1,7 +1,7 @@
1
1
  # 'Request' example added jjk 11/20/98
2
2
 
3
+ import win32ui # isort: skip # Must be imported before dde !
3
4
  import dde
4
- import win32ui
5
5
 
6
6
  server = dde.CreateServer()
7
7
  server.Create("TestClient")
@@ -1,7 +1,7 @@
1
1
  # 'Request' example added jjk 11/20/98
2
2
 
3
+ import win32ui # isort: skip # Must be imported before dde !
3
4
  import dde
4
- import win32ui
5
5
  from pywin.mfc import object
6
6
 
7
7
 
@@ -26,7 +26,7 @@ pairs = win32api.GetFileVersionInfo(fname, "\\VarFileInfo\\Translation")
26
26
  ## \VarFileInfo\Translation returns list of available (language, codepage) pairs that can be used to retreive string info
27
27
  ## any other must be of the form \StringfileInfo\%04X%04X\parm_name, middle two are language/codepage pair returned from above
28
28
  for lang, codepage in pairs:
29
- print("lang: ", lang, "codepage:", codepage)
29
+ print("lang:", lang, "codepage:", codepage)
30
30
  for ver_string in ver_strings:
31
31
  str_info = f"\\StringFileInfo\\{lang:04X}{codepage:04X}\\{ver_string}"
32
32
  # print(str_inf)
@@ -100,10 +100,10 @@ class Process:
100
100
  self.stdin.close()
101
101
 
102
102
  self.stdout = os.fdopen(msvcrt.open_osfhandle(self.hStdout_r, 0), "rb")
103
- print("Read on stdout: ", repr(self.stdout.read()))
103
+ print(f"Read on stdout: {self.stdout.read()!r}")
104
104
 
105
105
  self.stderr = os.fdopen(msvcrt.open_osfhandle(self.hStderr_r, 0), "rb")
106
- print("Read on stderr: ", repr(self.stderr.read()))
106
+ print(f"Read on stderr: {self.stderr.read()!r}")
107
107
 
108
108
 
109
109
  if __name__ == "__main__":
@@ -4,18 +4,16 @@
4
4
  import os
5
5
  import sys
6
6
 
7
+ import win32event
7
8
  import win32ras
8
9
 
9
10
  # Build a little dictionary of RAS states to decent strings.
10
11
  # eg win32ras.RASCS_OpenPort -> "OpenPort"
11
- stateMap = {}
12
- for name, val in list(win32ras.__dict__.items()):
13
- if name[:6] == "RASCS_":
14
- stateMap[val] = name[6:]
12
+ stateMap = {
13
+ val: name[6:] for name, val in win32ras.__dict__.items() if name[:6] == "RASCS_"
14
+ }
15
15
 
16
16
  # Use a lock so the callback can tell the main thread when it is finished.
17
- import win32event
18
-
19
17
  callbackEvent = win32event.CreateEvent(None, 0, 0, None)
20
18
 
21
19
 
@@ -1,5 +1,5 @@
1
- """ Lists various types of information about current user's access token,
2
- including UAC status on Vista
1
+ """Lists various types of information about current user's access token,
2
+ including UAC status on Vista
3
3
  """
4
4
 
5
5
  import pywintypes
@@ -40,7 +40,7 @@ def dump_token(th):
40
40
  flag_names, unk = TOKEN_PRIVILEGE_ATTRIBUTES.lookup_flags(priv_flags)
41
41
  flag_desc = " ".join(flag_names)
42
42
  if unk:
43
- flag_desc += "(" + str(unk) + ")"
43
+ flag_desc += f"({unk})"
44
44
 
45
45
  priv_name = win32security.LookupPrivilegeName("", priv_luid)
46
46
  priv_desc = win32security.LookupPrivilegeDisplayName("", priv_name)
@@ -52,7 +52,7 @@ def dump_token(th):
52
52
  flag_names, unk = TOKEN_GROUP_ATTRIBUTES.lookup_flags(group_attr)
53
53
  flag_desc = " ".join(flag_names)
54
54
  if unk:
55
- flag_desc += "(" + str(unk) + ")"
55
+ flag_desc += f"({unk})"
56
56
  if group_attr & TOKEN_GROUP_ATTRIBUTES.SE_GROUP_LOGON_ID:
57
57
  sid_desc = "Logon sid"
58
58
  else:
@@ -1,9 +1,7 @@
1
1
  import ntsecuritycon
2
2
  import win32api
3
3
  import win32con
4
- import win32file
5
4
  import win32security
6
- from security_enums import ACCESS_MODE, ACE_FLAGS, TRUSTEE_FORM, TRUSTEE_TYPE
7
5
 
8
6
  new_privs = (
9
7
  (
@@ -3,7 +3,6 @@ import os
3
3
  import ntsecuritycon
4
4
  import win32api
5
5
  import win32con
6
- import win32file
7
6
  import win32security
8
7
  from security_enums import ACCESS_MODE, ACE_FLAGS, TRUSTEE_FORM, TRUSTEE_TYPE
9
8
 
@@ -1,6 +1,3 @@
1
- import ntsecuritycon
2
- import win32api
3
- import win32file
4
1
  import win32security
5
2
 
6
3
  policy_handle = win32security.GetPolicyHandle("rupole", win32security.POLICY_ALL_ACCESS)
@@ -1,9 +1,7 @@
1
1
  import ntsecuritycon
2
2
  import win32api
3
3
  import win32con
4
- import win32file
5
4
  import win32security
6
- from security_enums import ACCESS_MODE, ACE_FLAGS, TRUSTEE_FORM, TRUSTEE_TYPE
7
5
 
8
6
  new_privs = (
9
7
  (
@@ -1,11 +1,16 @@
1
1
  # A Python port of the MS knowledge base article Q157234
2
2
  # "How to deal with localized and renamed user and group names"
3
- # http://support.microsoft.com/default.aspx?kbid=157234
3
+ # https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/157234
4
4
 
5
5
  import sys
6
6
 
7
7
  import pywintypes
8
- from ntsecuritycon import *
8
+ from ntsecuritycon import (
9
+ DOMAIN_ALIAS_RID_ADMINS,
10
+ DOMAIN_USER_RID_ADMIN,
11
+ SECURITY_BUILTIN_DOMAIN_RID,
12
+ SECURITY_NT_AUTHORITY,
13
+ )
9
14
  from win32net import NetUserModalsGet
10
15
  from win32security import LookupAccountSid
11
16
 
@@ -1,7 +1,7 @@
1
1
  import win32api
2
2
  import win32security
3
3
  import winerror
4
- from ntsecuritycon import *
4
+ from ntsecuritycon import TOKEN_QUERY, TokenUser
5
5
 
6
6
 
7
7
  # This is a Python implementation of win32api.GetDomainName()
@@ -3,7 +3,6 @@ import os
3
3
  import ntsecuritycon
4
4
  import win32api
5
5
  import win32con
6
- import win32file
7
6
  import win32security
8
7
  from win32security import (
9
8
  ACL_REVISION_DS,
@@ -59,7 +58,7 @@ dir_dacl.AddAccessAllowedAceEx(
59
58
  win32con.GENERIC_ALL,
60
59
  my_sid,
61
60
  )
62
- ## keep dir from inheriting any permissions so it only has ACEs explicitely set here
61
+ ## keep dir from inheriting any permissions so it only has ACEs explicitly set here
63
62
  win32security.SetNamedSecurityInfo(
64
63
  dir_name,
65
64
  SE_FILE_OBJECT,
@@ -3,7 +3,6 @@ fname = r"h:\tmp.txt"
3
3
  import ntsecuritycon
4
4
  import win32api
5
5
  import win32con
6
- import win32file
7
6
  import win32security
8
7
 
9
8
  new_privs = (
@@ -1,6 +1,3 @@
1
- import ntsecuritycon
2
- import win32api
3
- import win32file
4
1
  import win32security
5
2
 
6
3
  policy_handle = win32security.GetPolicyHandle("rupole", win32security.POLICY_ALL_ACCESS)
@@ -1,6 +1,5 @@
1
1
  import win32api
2
2
  import win32con
3
- import win32process
4
3
  import win32security
5
4
 
6
5
  ## You need SE_RESTORE_NAME to be able to set the owner of a security descriptor to anybody
@@ -1,6 +1,5 @@
1
1
  import win32api
2
2
  import win32con
3
- import win32process
4
3
  import win32security
5
4
 
6
5
  ## You need SE_RESTORE_NAME to be able to set the owner of a security descriptor to anybody
@@ -1,4 +1,3 @@
1
- import win32api
2
1
  import win32con
3
2
  import win32process
4
3
  import win32security
@@ -36,7 +36,7 @@ def open_url(host, url):
36
36
  print("After redirect response is", resp.status, resp.reason)
37
37
  if options.show_headers:
38
38
  print("Initial response headers:")
39
- for name, val in list(resp.msg.items()):
39
+ for name, val in resp.msg.items():
40
40
  print(f" {name}: {val}")
41
41
  if options.show_body:
42
42
  print(body)
@@ -60,7 +60,7 @@ def open_url(host, url):
60
60
  resp = h.getresponse()
61
61
  if options.show_headers:
62
62
  print("Token dance headers:")
63
- for name, val in list(resp.msg.items()):
63
+ for name, val in resp.msg.items():
64
64
  print(f" {name}: {val}")
65
65
 
66
66
  if err == 0:
@@ -107,7 +107,7 @@ def open_url(host, url):
107
107
  print("Second fetch response is", resp.status, resp.reason)
108
108
  if options.show_headers:
109
109
  print("Second response headers:")
110
- for name, val in list(resp.msg.items()):
110
+ for name, val in resp.msg.items():
111
111
  print(f" {name}: {val}")
112
112
 
113
113
  resp.read(int(resp.msg.get("content-length", 0)))
@@ -9,7 +9,7 @@ import win32security
9
9
 
10
10
 
11
11
  def lookup_ret_code(err):
12
- for k, v in list(sspicon.__dict__.items()):
12
+ for k, v in sspicon.__dict__.items():
13
13
  if k[0:6] in ("SEC_I_", "SEC_E_") and v == err:
14
14
  return k
15
15
 
@@ -67,6 +67,6 @@ encbuf.append(win32security.PySecBufferType(len(msg), sspicon.SECBUFFER_DATA))
67
67
  encbuf.append(win32security.PySecBufferType(trailersize, sspicon.SECBUFFER_TOKEN))
68
68
  encbuf[0].Buffer = msg
69
69
  sspiclient.ctxt.EncryptMessage(0, encbuf, 1)
70
- print("Encrypted data:", repr(encbuf[0].Buffer))
70
+ print(f"Encrypted data: {encbuf[0].Buffer!r}")
71
71
  sspiserver.ctxt.DecryptMessage(encbuf, 1)
72
- print("Unencrypted data:", encbuf[0].Buffer)
72
+ print(f"Encrypted data: {encbuf[0].Buffer}")