Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency pywin32 to v308 #1401

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 20, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pywin32 ==306 -> ==308 age adoption passing confidence

Release Notes

mhammond/pywin32 (pywin32)

v308

  • Fix Pythonwin displaying syntax errors in Python 3.13 (#​2393)
  • Allowed installs from source w/o having pywin32 pre-installed (for instance, from GitHub) (#​2349, @​Avasam)
  • Restored version stamping of installed DLLs (#​2349, @​Avasam)
  • Fixed a circular import between win32comext.axscript.client.framework and win32comext.axscript.client.error (#​2381, @​Avasam)
  • Remove long-deprecated win32com.server.dispatcher.DispatcherWin32dbg (#​2382, @​Avasam)

v307

Release process changes

pywin32 is now released from artifacts created by Github actions, whereas previously they were
created from an environment where certain tools and libraries were located and installed
by hand.

This means some capabilities are no longer provided - this includes some documentation artifacts, such
as the .chm file, certain MAPI libraries etc, and .exe installers.

pywin32
  • Remove obsolete and unused pywin.is_platform_unicode (#​2343, @​Avasam)
  • Fix isapi.ThreadPoolExtension's printing of exception traceback broken on Python 3.8+ (#​2312, @​Avasam)
  • Add RealGetWindowClass (#​2299, @​CristiFati)
  • Make it compile on Python 3.13 (#​2260, @​clin1234)
  • Fixed accidentally trying to raise a str instead of an Exception in (#​2270, @​Avasam)
    • Pythonwin/pywin/debugger/debugger.py
    • Pythonwin/pywin/framework/dlgappcore.py
    • com/win32com/server/policy.py
    • win32/Lib/regutil.py
    • win32/scripts/VersionStamp/vssutil.py
  • Removed the following unused symbols. They were meant to be used as Exceptions, but were accidentally strings (#​2270, #​2269, @​Avasam)
    • pywin.debugger.debugger.error
    • pywin.framework.dlgappcore.error
    • win32com.server.policy.error
    • regutil.error
    • win32.scripts.VersionStamp.vssutil.error
    • win32com.universal.com_error
    • win32com.client.build.error
    • win32com.client.genpy.error
  • Add EnumDesktopWindows (#​2219, @​CristiFati)
  • Marked exc_type and exc_traceback in win32comext.axscript.client.error.AXScriptException.__init__ as deprecated. (#​2236, @​Avasam)
    They are now unused and all information is taken from the exc_value parameter.
  • Fixed non-overriden pywin.scintilla.formatter.Formatter.ColorizeString raising TypeError instead of RuntimeError due to too many parameters (#​2216, @​Avasam)
  • Fixed broken since Python 3 tokenization in win32comext.axdebug.codecontainer.pySourceCodeContainer.GetSyntaxColorAttributes (#​2216, @​Avasam)
  • Fixed a TypeError due to incorrect kwargs in win32comext.axscript.client.pydumper.Register (#​2216, @​Avasam)
  • Fixed error reporting of file copy failure for for installing debug dlls (#​2216, @​Avasam)
  • Fixed py.exe -m win32verstamp command and other quote typos caused by Implied String Concatenation (#​2225, @​Avasam)
  • Fixed tons of quote-related typos in strings, docs and comments (#​2271 , @​Avasam)
  • Fixed VT_SAFEARRAY(VT_RECORD) which were missing the last element (#​2247)
  • Fixed MFC redist DLLs not found by preferring corresponding version but accepting different version (#​2248, @​andreabravetti)
  • Fixed pywintypes.error: (5, 'RegOpenKeyEx', 'Access is denied.') when running service with debug parameter and no elevation (#​2238, @​jmartens)
  • Fixed handling of SyntaxError exception from a Windows Scripting Host Python Script on Python 3.10+ (#​2235, @​nbbeatty)
  • Add CredGetSessionTypes support (#​2232, @​CristiFati)
  • Fixed win32clipboard increasing size of data when SetClipboardData used with CF_DIB (#​2184, @​CristiFati)
  • Add StoreLogoff to PyIMsgStore to prevent possible hang when MAPI uninitializes or during session logoff (#​2196, @​avivbrg)
  • Enhance CredDelete to work with dictionaries (#​2198, @​CristiFati)
  • Add UnregisterHotKey support (#​2185, @​CristiFati)
  • IFolderView COM client support (#​2180, #​2181, #​2182, @​CristiFati)
  • Release GIL when calling CreateService or StartService (#​2062, @​adamkbmc)
  • Drop support for Internet Explorer 10 (#​2229, @​Avasam)
  • Removed considerations for never-built Windows CE (#​2218, @​Avasam)
  • Stopped building winxpgui (#​2217, @​Avasam)
    • Raise DeprecationWarning when importing winxpgui
    • Added GetWindowRgnBox to win32gui
    • winxpgui.GetConsoleWindow now aliases win32console.GetConsoleWindow
    • Everything else is re-exported from win32gui
  • Fixed the win32com.demos.ietoolbar demo (#​2217, @​Avasam)
  • Fixed undefined names reported by Flake8/Ruff (#​2101, @​Avasam, @​kxrob)
    Fixed the following public API:
    • Fixed NameError in pywin.Demos's fontdemo.FontView.SetFont
    • The Pythonwin/pywin/Demos/ocx/msoffice demo now uses the docName argument
    • Fixed NameError in WordFrame.Create, even though it wasn't used
    • Fixed a handful of NameError in pywin.dialogs.ideoptions.OptionsPropPage with format
    • Fixed AttributeError in pywin.framework.dlgappcore.AppDialog.OnPaint
    • Fixed trying to write banner to sdterr in pywin.framework.interact.InteractiveCore.Init
    • Fixed a NameError in pywin.framework.mdi_pychecker.TheDocument.doSearch
    • Removes unusable HandleToUlong, UlongToHandle, UlongToPtr and UintToPtr from pywin.scintilla.scintillacon
    • Fixed a NameError in win32comext.axscript.client.pydumper.Register
    • Fixed a NameError in win32comext.shell.demos.servers.context_menu.ShellExtension.QueryContextMenu
    • Fixed a NameError in win32comext.shell.demos.servers.shell_view.ScintillaShellView.CreateViewWindow
      The following methods no longer throw errors (although their implementation is still unvalidated):
    • mmsystem.MEVT_EVENTTYPE
    • mmsystem.MEVT_EVENTPARM
    • mmsystem.MCI_MSF_MINUTE
    • mmsystem.MCI_MSF_SECOND
    • mmsystem.MCI_TMSF_TRACK
    • mmsystem.MCI_TMSF_MINUTE
    • mmsystem.MCI_TMSF_SECOND
    • mmsystem.MCI_TMSF_FRAME
    • mmsystem.MCI_HMS_HOUR
    • mmsystem.MCI_HMS_MINUTE
    • mmsystem.MCI_HMS_SECOND
    • mmsystem.DIBINDEX
    • winnt.IMAGE_SNAP_BY_ORDINAL
    • winnt.IMAGE_ORDINAL
  • Removed Unicode and UnicodeType from pywintypes and win32api (#​2200, @​Avasam)
  • Deprecate afxres in favor of pywin.mfc.afxres. The modules were identical (#​2177, @​Avasam)
  • Improved DispatcherWin32dbg's deprecation warning and raise an error when used (#​2145, @​Avasam)
  • Removed obsolete/legacy way of registering a Pythonwin app and its Idle handlers from pywin.framework.app (#​2144, @​Avasam)
  • Removed unused win32comext.axscript.server.error (#​2202, @​Avasam)
  • Removed deprecated win32com.server.exception.Exception (#​2142, @​Avasam)
  • Removed long-deprecated UnicodeToString param from multiple methods (#​2143, @​Avasam)
  • Fixed win32api.SetClassWord being overwritten by win32api.SetWindowWord (#​2199, @​Avasam)
    • If you were using win32api.SetClassWord for its current behaviour, use win32api.SetWindowWord instead.
    • This also adds missing support for win32api.SetWindowWord
  • Annotated module-level variables with ambiguous typing (#​2175, @​Avasam)
  • win32com.client.build.NoTranslateMap is now a set (#​2176, @​Avasam)
  • Fixed ModuleNotFoundError: No module named 'dialog' in pywin.tools.regpy (#​2187, @​Avasam)
  • Fixed passing a float to range in win32pdhquery.Query.collectdatafor (#​2170, @​Avasam)
  • Check that the filename w/o extension ends with _d rather than checking for _d anywhere in the file path (#​2169, @​Avasam)
  • Cleaned up and fixed Axdebug (#​2126, @​Avasam)
    • win32comext.axdebug.codecontainer.SourceCodeContainer now uses the debugDocument parameter
    • win32comext.axdebug.codecontainer script can now be run independent of location
    • Fixed Method Resolution Order issue in win32comext.axdebug.documents (also #​2071, @​wxinix-2022)
    • Fixed undefined names (NameError) in win32comext.axdebug.expressions.DebugProperty.GetPropertyInfo
    • Removed unused win32comext.axdebug.util.all_wrapped
    • Fixed multiple ModuleNotFoundError in win32comext.axdebug (#​1983, @​Avasam)
  • Change mbcs encoding to utf-8 in com.win32com.client (#​2097, @​Avasam)
  • Avoid using importlib directly (#​2123, @​Avasam)
  • Replace most usages of deprecated distutils:
  • Replaced usages of the removed (in Python 3.12) imp module (#​2113, @​Avasam)
    • Fixed registering Python as a scripting language for axscript
    • Fixed isapi install
  • Use collection literals and comprehensions where applicable (slight performance improvement) (#​2108, @​Avasam)
  • Cleanup obsolete code for unsupported Python versions (#​1990, #​2127, #​2205, #​2214, @​Avasam)
    The following public names have been removed:
    • pywin.framework.app.Win32RawInput
    • win32com.client.makepy.error
    • Long obsoleted dbi module, use the odbc module instead
    • win32com.client.dynamic.MakeMethod
      Added support for the following Python 3 methods:
    • pywin.mfc.dialog.Dialog.__contains__
    • win32com.client.CoClassBaseClass.__bool__
    • win32com.client.combrowse.HLIRoot.__lt__
    • win32com.client.genpy.WritableItem.__lt__
    • __bool__ in classes generated by win32com.client.genpy.WritableItem.WriteClassBody
    • win32/Demos's win32clipboardDemo.Foo.__lt__
    • win32timezone._SimpleStruct.__le__ (subclassed by SYSTEMTIME, TIME_ZONE_INFORMATION, DYNAMIC_TIME_ZONE_INFORMATION, TimeZoneDefinition)
      The following methods no longer throw errors (although their implementation is still unvalidated):
    • winnt.PRIMARYLANGID
    • winnt.SUBLANGID
    • winnt.LANGIDFROMLCID
    • winnt.SORTIDFROMLCID
  • Removed obsolete compatibility aliases (#​2087, @​Avasam)
    The following public names have been removed:
    • win32comext.mapi.mapiutil.TupleType
    • win32comext.mapi.mapiutil.ListType
    • win32comext.mapi.mapiutil.IntType
    • netbios.byte_to_int
  • Resolved invalid string escapes warnings (#​2045, #​2124, @​Avasam)
  • Idiomatic type comparisons. Better handling of subclasses. (#​1991, @​Avasam)
  • Cleaned up obsolete and redundant code (this should not directly affect the end-user):
  • Small generalized optimization by using augmented assignments (in-place operators) where possible (#​2274, @​Avasam)
  • General speed and size improvements due to all the removed code. (#​2046, #​1986, #​2050, #​1950, #​2085, #​2087, #​2051, #​1990, #​2106, #​2127, #​2124, #​2126, #​2177, #​2218, #​2202, #​2205, #​2217)
adodbapi
  • Remove references to outdated IronPython (#​2049, @​Avasam)
    This removes the following public names:
    • adodbapi.adodbapi.onWin32
    • adodbapi.apibase.onIronPython
    • adodbapi.apibase.NullTypes
    • adodbapi.apibase.DateTime
  • Remove references to outdated mxDateTime (#​2048, @​Avasam)
    This removes the following public names:
    • adodbapi.apibase.mxDateTime
    • adodbapi.apibase.mxDateTimeConverter
  • Removed obsolete Python 2 aliases (#​2088, @​Avasam)
    This removes the following public names:
    • adodbapi.adodbapi.unicodeType
    • adodbapi.adodbapi.longType
    • adodbapi.adodbapi.StringTypes
    • adodbapi.adodbapi.maxint
    • adodbapi.apibase.unicodeType
    • adodbapi.apibase.longType
    • adodbapi.apibase.StringTypes
    • adodbapi.apibase.makeByteBuffer
    • adodbapi.apibase.memoryViewType
  • Remove outdated and unused remote feature (#​2098, @​Avasam)
  • Migrated from distutils to setuptools (#​2133, @​Avasam)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants