Skip to content

Commit 000a137

Browse files
authored
Merge branch 'main' into Native-ARM64-CI-wheels
2 parents ca2ec6f + e86ff6f commit 000a137

33 files changed

+55
-107
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222

2323
- name: Set up Python
24-
uses: actions/setup-python@v5
24+
uses: actions/setup-python@v6
2525
with:
2626
python-version: "3.9"
2727

.github/workflows/main.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- uses: actions/checkout@v4
4444

4545
- name: Set up Python ${{ matrix.python-version }}
46-
uses: actions/setup-python@v5
46+
uses: actions/setup-python@v6
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949
architecture: ${{ matrix.python-architecture }}
@@ -52,14 +52,6 @@ jobs:
5252
check-latest: true
5353
allow-prereleases: true
5454

55-
- name: Fix user Scripts missing from PATH
56-
if: matrix.python-architecture == 'x86' || matrix.python-architecture == 'arm64'
57-
run: |
58-
# Work around https://github.com/actions/setup-python/issues/1005
59-
$ScriptsPath = python -c "import sysconfig,os; print(sysconfig.get_path('scripts', f'{os.name}_user'))"
60-
echo $ScriptsPath
61-
Add-Content $env:GITHUB_PATH $ScriptsPath
62-
6355
- name: Build and install
6456
run: pip install . -v --user
6557

@@ -117,8 +109,8 @@ jobs:
117109
steps:
118110
- uses: actions/checkout@v4
119111

120-
- name: Set up latest stable Python
121-
uses: actions/setup-python@v5
112+
- name: Set up Python ${{ matrix.python-version }}
113+
uses: actions/setup-python@v6
122114
with:
123115
python-version: ${{ matrix.python-version }}
124116
architecture: x64
@@ -162,7 +154,7 @@ jobs:
162154
timeout-minutes: 30
163155
steps:
164156
- uses: actions/checkout@v4
165-
- uses: actions/setup-python@v5
157+
- uses: actions/setup-python@v6
166158
with:
167159
# This job only needs to target the oldest supported version
168160
python-version: "3.8"
@@ -198,7 +190,7 @@ jobs:
198190
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
199191
steps:
200192
- uses: actions/checkout@v4
201-
- uses: actions/setup-python@v5
193+
- uses: actions/setup-python@v6
202194
with:
203195
python-version: ${{ matrix.python-version }}
204196
cache: pip

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ As of build 305, installation .exe files have been deprecated; see
1818
Coming in build 312, as yet unreleased
1919
--------------------------------------
2020

21+
* Removed considerations for Windows 95/98/ME (mhammond#2400, [@Avasam][Avasam])
22+
This removes the following constants:
23+
* `win32con.FILE_ATTRIBUTE_ATOMIC_WRITE`
24+
* `win32con.FILE_ATTRIBUTE_XACTION_WRITE`
25+
2126
Build 311, released 2025/07/14
2227
------------------------------
2328

Pythonwin/doc/debugger/probs.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
<H1><IMG SRC="pythonwin.gif" WIDTH=64 HEIGHT=64>Pythonwin Debugger Known Problems </H1>
1111
<P>This document lists the currently known problems with the pywin.debugger package. </P>
1212
<P>You may also wish to view the <A HREF="index.html">debugger overview</A>, the <A HREF="tutorial.html">debugger tutorial</A>, or the <A HREF="general.html">general debugger documentation</A>. </P>
13-
<H3>Exiting the debugger on Windows 95 sometimes causes a crash.</H3>
14-
<P>There is a problem with the "hierlist" control on Windows 95. I don't know what it is. </P>
1513
<H3>Closing the main debugger application while debugging may cause strange results. </H3>
1614
<P>This is particularly true when debugging non-Pythonwin applications. I have made some efforts in this area, but it is pretty hard and complex. </P>
1715
<P>Closing the debugger dialog, selecting "End/Close" from one of the property pages, or "Close" from the debugging toolbar should always work as expected. </P>

Pythonwin/doc/debugger/tutorial.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ <H3>From the MS-DOS Prompt</H3>
3333
<P>Change to the Pythonwin\pywin\debugger directory.</P>
3434
<P>For Windows NT users, type:</P>
3535
<CODE><P>fail.py&lt;enter&gt;</CODE> </P>
36-
<P>Or Windows 95/98 (sob - you would hope that 98 would have fixed some of 95s dumbness!)</P>
37-
<CODE><P>&lt;path to python.exe&gt;\python.exe fail.py</P>
38-
</CODE><P>or</P>
36+
<P>or</P>
3937
<CODE><P>start fail.py</CODE> </P>
4038
<H2>Using the Debugger</H2>
4139
<P>If all goes well, you should see the debugger appear in a full GUI frame, with a particular line in fail.py highlighted. Part of the screen should look something like: </P>

Pythonwin/pywin/Demos/splittst.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def OnCreateClient(self, cp, context):
3939
self.v3.InsertItem(0, "Icon 1", 0)
4040
self.v3.InsertItem(0, "Icon 2", 1)
4141
self.v3.InsertItem(0, "Icon 3", 2)
42-
# self.v3.Arrange(commctrl.LVA_DEFAULT) Hmmm - win95 aligns left always???
4342
return 1
4443

4544
def OnDestroy(self, msg):

Pythonwin/pywin/framework/dlgappcore.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def OnPaint(self):
3434
dc.DrawIcon((left, top), hIcon)
3535
self.EndPaint(paintStruct)
3636

37-
# Only needed to provide a minimized icon (and this seems
38-
# less important under win95/NT4
37+
# Only needed to provide a minimized icon
3938
def OnEraseBkgnd(self, dc):
4039
if self.IsIconic():
4140
return 1

Pythonwin/readme.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ <H2><a name="KnownProblems">Known Problems</a></H2>
3737
<UL>
3838
<LI>Some of the configuration options (eg, &quot;Docking Windows&quot;) do not
3939
take affect until you restart Pythonwin. </LI>
40-
<LI>Under Windows 9x, any attempt to use Pythonwin features from an MS-DOS
41-
prompt seems to cause immediate death.&nbsp; This means that you can not use
42-
the Pythonwin debugger for programs running under Python.exe on Windows
43-
9x.&nbsp; You should still be able to use the debugger normally from inside
44-
Pythonwin itself. </LI>
45-
<LI>Pythonwin will occasionally crash upon exiting under Windows 9x. The crash is in
46-
&quot;user.exe&quot; (old 16 bit code) which makes debugging difficult. It does not happen on Windows NT, so I'm stumped on this one. If someone could even just narrow it down to exactly what code will cause the crash at exit I would really appreciate it. </LI>
4740
<LI>Some of the menu items are always grey.&nbsp; This functionality is simply not yet implemented in
4841
Pythonwin. </LI>
4942
</UL>

com/win32com/src/PythonCOM.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ static CoSetCancelObjectfunc pfnCoSetCancelObject = NULL;
107107
// WinXP or later
108108
LPFNOBJECTFROMLRESULT pfnObjectFromLresult = NULL;
109109

110-
// May not be available on Windows 95, although I'm not sure that's even a concern anymore
111110
typedef HRESULT(STDAPICALLTYPE *CoCreateInstanceExfunc)(REFCLSID, IUnknown *, DWORD, COSERVERINFO *, ULONG, MULTI_QI *);
112111
static CoCreateInstanceExfunc pfnCoCreateInstanceEx = NULL;
113112
typedef HRESULT(STDAPICALLTYPE *CoInitializeSecurityfunc)(PSECURITY_DESCRIPTOR, LONG, SOLE_AUTHENTICATION_SERVICE *,

com/win32com/src/dllmain.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ HRESULT PyCom_CoInitializeEx(LPVOID reserved, DWORD dwInit)
165165
CEnterLeaveFramework _celf;
166166
if (g_bCoInitThreadHasInit && g_dwCoInitThread == GetCurrentThreadId())
167167
return S_OK;
168-
// Do a LoadLibrary, as the Ex version may not always exist
169-
// on Win95.
170168
HMODULE hMod = GetModuleHandle(_T("ole32.dll"));
171169
if (hMod == 0)
172170
return E_HANDLE;

0 commit comments

Comments
 (0)