Skip to content

Commit

Permalink
[#16] Re-enabled building wxPython for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
eoyilmaz committed Oct 22, 2024
1 parent a36be9b commit fbb0f34
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ jobs:
python3 -m pip install --upgrade pip
pip install wheel
# Disabling temporarily
# - name: Install wxPython ${{ matrix.wx-version }}
# run: |
# pip install wxPython==${{ matrix.wx-version }}
- name: Install wxPython ${{ matrix.wx-version }}
run: |
pip install wxPython==${{ matrix.wx-version }}
- name: Install Python dependencies
run: |
Expand Down
7 changes: 3 additions & 4 deletions DisplayCAL/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,10 +936,9 @@ def findall(
if not setuptools or sys.platform != "win32":
# wxPython windows installer doesn't add egg-info entry, so
# a dependency check from pkg_resources would always fail
# requires.append(
# "wxPython (>= {})".format(".".join(str(n) for n in wx_minversion))
# )
pass
requires.append(
"wxPython (>= {})".format(".".join(str(n) for n in wx_minversion))
)
if sys.platform == "win32":
requires.append("pywin32 (>= 213.0)")

Expand Down
4 changes: 2 additions & 2 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ numpy
Pillow
PyChromecast
Send2Trash
# wxPython>=4.2.2;python_version>="3.12"
# wxPython>=4.1.1;python_version<"3.12"
wxPython>=4.2.2;python_version>="3.12"
wxPython>=4.1.1;python_version<"3.12"
zeroconf
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ Pillow
PyChromecast
pywin32; sys_platform=='win32'
Send2Trash
# wxPython>=4.2.2
wxPython>=4.2.2
zeroconf
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ install_requires =
PyChromecast
pywin32; sys_platform=='win32'
Send2Trash
# wxPython
wxPython
zeroconf

[bdist_wheel]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_real_display_size_mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def patched_get_argyll_util(*args):
monkeypatch.setattr(
"DisplayCAL.RealDisplaySizeMM.argyll.get_argyll_util", patched_get_argyll_util
)
assert RealDisplaySizeMM.get_dispwin_output() is b""
assert RealDisplaySizeMM.get_dispwin_output() == b""


def test_get_dispwin_output_returns_dispwin_output_as_bytes(
Expand Down

0 comments on commit fbb0f34

Please sign in to comment.