Skip to content

Commit

Permalink
fix/build/ci: Python 3.12 requires setuptools to be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Jul 2, 2024
1 parent 1ccd053 commit 235f5c5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.1.7

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v5.1.0
with:
python-version: 3.11
python-version: '*'
cache: pip

- name: Install the development dependencies
Expand All @@ -32,31 +32,31 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.1.7

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v5.1.0
with:
python-version: 3.11
python-version: '*'
cache: pip

- name: Install the development dependencies
run: pip install -r requirements.txt

- name: Run linter
run: pylint $(git ls-files '*.py')
run: pylint --recursive=y .

build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.1.7

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v5.1.0
with:
python-version: 3.11
python-version: '*'
cache: pip

- name: Install the development dependencies
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pylint >= 2.17.4
pyright >= 1.1.308
pytest >= 7.1.2
isort >= 5.12.0
setuptools >= 70.2.0
4 changes: 0 additions & 4 deletions tests/test_keywin.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,3 @@ def test_mouse_helpers():
assert move_relative(0, 0)
assert not move(0xFFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFFF)
assert not move_relative(0xFFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFFF)
assert not scroll(0xFFFFFFFFFFFFFFFFF)
assert not scroll_horizontal(0xFFFFFFFFFFFFFFFFF)
assert not scroll(-1)
assert not scroll_horizontal(-1)

0 comments on commit 235f5c5

Please sign in to comment.