Skip to content

Commit ef97753

Browse files
authored
Merge pull request nabla-c0d3#622 from nabla-c0d3/nabla-c0d3#588-python-3-11-for-windows-executable
[nabla-c0d3#588]Update Windows executable to Python 3.11
2 parents a28f562 + 52202c5 commit ef97753

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/build_windows_exe.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ on:
77
jobs:
88
build:
99

10-
runs-on: windows-2019
10+
runs-on: windows-2022
1111

1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Set up Python
1515
uses: actions/setup-python@v2
1616
with:
17-
python-version: 3.8
17+
python-version: "3.11"
1818

1919
- name: Install pip
2020
run: python -m pip install --upgrade pip setuptools wheel

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ faker
1414
types-pyOpenSSL
1515

1616
# For building the Windows executable
17-
cx-freeze==6.13.1; sys.platform == 'win32'
17+
cx-freeze==6.15.8; sys.platform == 'win32'

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Create fake Executable that does nothing so the setup.py file can be used on Linux
1919
class Executable: # type: ignore
20-
def __init__(self, script, targetName): # type: ignore
20+
def __init__(self, script, target_name): # type: ignore
2121
pass
2222

2323

@@ -106,5 +106,5 @@ def get_include_files() -> List[Tuple[str, str]]:
106106
],
107107
# cx_freeze info for Windows builds with Python embedded
108108
options={"build_exe": {"packages": ["cffi", "cryptography"], "include_files": get_include_files()}},
109-
executables=[Executable(path.join("sslyze", "__main__.py"), targetName="sslyze.exe")],
109+
executables=[Executable(path.join("sslyze", "__main__.py"), target_name="sslyze.exe")],
110110
)

tests/server_connectivity_tests/test_direct_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def test_server_triggers_unexpected_connection_error(self):
159159

160160
# When testing connectivity against it
161161
# It fails and the actual error / root cause is mentioned in the message
162-
with pytest.raises(ConnectionToServerFailed, match="unrecognized name") as e:
162+
with pytest.raises(ConnectionToServerFailed, match="unrecognized name"):
163163
check_connectivity_to_server(
164164
server_location=server_location,
165165
network_configuration=ServerNetworkConfiguration.default_for_server_location(server_location),
@@ -175,7 +175,7 @@ def test_server_only_supports_sslv2(self):
175175

176176
# When testing connectivity against it
177177
# It fails and the fact that the server only supports SSL 2.0 is mentioned in the error
178-
with pytest.raises(ConnectionToServerFailed, match="SSL 2.0") as e:
178+
with pytest.raises(ConnectionToServerFailed, match="SSL 2.0"):
179179
check_connectivity_to_server(
180180
server_location=server_location,
181181
network_configuration=ServerNetworkConfiguration.default_for_server_location(server_location),

0 commit comments

Comments
 (0)