Skip to content

Commit

Permalink
Merge pull request #622 from nabla-c0d3/#588-python-3-11-for-windows-…
Browse files Browse the repository at this point in the history
…executable

[#588]Update Windows executable to Python 3.11
  • Loading branch information
nabla-c0d3 authored Sep 24, 2023
2 parents a28f562 + 52202c5 commit ef97753
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_windows_exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
jobs:
build:

runs-on: windows-2019
runs-on: windows-2022

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: "3.11"

- name: Install pip
run: python -m pip install --upgrade pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ faker
types-pyOpenSSL

# For building the Windows executable
cx-freeze==6.13.1; sys.platform == 'win32'
cx-freeze==6.15.8; sys.platform == 'win32'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

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


Expand Down Expand Up @@ -106,5 +106,5 @@ def get_include_files() -> List[Tuple[str, str]]:
],
# cx_freeze info for Windows builds with Python embedded
options={"build_exe": {"packages": ["cffi", "cryptography"], "include_files": get_include_files()}},
executables=[Executable(path.join("sslyze", "__main__.py"), targetName="sslyze.exe")],
executables=[Executable(path.join("sslyze", "__main__.py"), target_name="sslyze.exe")],
)
4 changes: 2 additions & 2 deletions tests/server_connectivity_tests/test_direct_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_server_triggers_unexpected_connection_error(self):

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

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

0 comments on commit ef97753

Please sign in to comment.