Upgrade dependencies

This commit is contained in:
Rebecca Breu 2024-05-05 18:11:43 +02:00
parent 0891df8a20
commit 3bd65b644f
8 changed files with 22 additions and 23 deletions

View file

@ -3,16 +3,16 @@ name: flake8
on: [push, pull_request]
jobs:
build:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip

View file

@ -3,13 +3,12 @@ name: pytest
on: [push, pull_request]
jobs:
build:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.11']
pyqt-version: ['6.5.0', '6.6.1']
python-version: ["3.9", "3.10", "3.11", "3.12"]
pyqt-version: ["6.5.3", "6.7.0"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
@ -38,4 +37,4 @@ jobs:
with:
verbose: true
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}

View file

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="146.0" height="20"><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="round"><rect width="146.0" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#round)"><rect width="48.1" height="20" fill="#555"/><rect x="48.1" width="97.9" height="20" fill="#007ec6"/><rect width="146.0" height="20" fill="url(#smooth)"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"><text x="250.5" y="150" fill="#010101" fill-opacity=".3" transform="scale(0.1)" textLength="381.0" lengthAdjust="spacing">Python</text><text x="250.5" y="140" transform="scale(0.1)" textLength="381.0" lengthAdjust="spacing">Python</text><text x="960.5000000000001" y="150" fill="#010101" fill-opacity=".3" transform="scale(0.1)" textLength="879.0" lengthAdjust="spacing">3.9 | 3.10 | 3.11</text><text x="960.5000000000001" y="140" transform="scale(0.1)" textLength="879.0" lengthAdjust="spacing">3.9 | 3.10 | 3.11</text></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="146.0" height="20"><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="round"><rect width="146.0" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#round)"><rect width="48.1" height="20" fill="#555"/><rect x="48.1" width="97.9" height="20" fill="#007ec6"/><rect width="146.0" height="20" fill="url(#smooth)"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"><text x="250.5" y="150" fill="#010101" fill-opacity=".3" transform="scale(0.1)" textLength="381.0" lengthAdjust="spacing">Python</text><text x="250.5" y="140" transform="scale(0.1)" textLength="381.0" lengthAdjust="spacing">Python</text><text x="960.5000000000001" y="150" fill="#010101" fill-opacity=".3" transform="scale(0.1)" textLength="879.0" lengthAdjust="spacing">3.9 | 3.10 | 3.11 | 3.12</text><text x="960.5000000000001" y="140" transform="scale(0.1)" textLength="879.0" lengthAdjust="spacing">3.9 | 3.10 | 3.11 | 3.12</text></g></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -11,12 +11,12 @@ license = {file = "LICENSE"}
authors = [
{ name = "Rebecca Breu", email = "rebecca@rbreu.de" },
]
requires-python = ">=3.9"
requires-python = ">=3.9,<3.13"
dependencies = [
"exif>=1.3.5,<=1.6.0",
"lxml==5.1.0",
"pyQt6-Qt6>=6.5.0,<=6.6.1",
"pyQt6>=6.5.0,<=6.6.1",
"pyQt6-Qt6>=6.5.3,<=6.7.0",
"pyQt6>=6.5.0,<=6.7.0",
"rectangle-packer>=2.0.1,<=2.0.2",
]

View file

@ -1,3 +1,3 @@
# For the test action on github
# For the build action on github
pyinstaller==6.3.0
pyinstaller==6.6.0

View file

@ -3,6 +3,6 @@
-r test.txt
-r build.txt
flake8==6.1.0
flake8==7.0.0
pybadges==3.0.1
yamllint==1.33.0
yamllint==1.35.1

View file

@ -1,6 +1,6 @@
# For the test action on github
coverage==7.3.2
coverage==7.5.1
httpretty==1.1.4
pytest==7.4.3
pytest-qt==4.2.0
pytest-cov==4.1.0
pytest==8.2.0
pytest-qt==4.4.0
pytest-cov==5.0.0

View file

@ -887,7 +887,7 @@ def test_mouse_move_event_when_rubberband_new(
view.scene.rubberband_item.rect().bottomRight().x() == 10
view.scene.rubberband_item.rect().bottomRight().y() == 20
assert item.isSelected() is True
assert mouse_mock.called_once_with(event)
mouse_mock.assert_called_once_with(event)
@patch('PyQt6.QtWidgets.QGraphicsScene.mouseMoveEvent')
@ -911,7 +911,7 @@ def test_mouse_move_event_when_rubberband_not_new(
view.scene.rubberband_item.rect().bottomRight().x() == 10
view.scene.rubberband_item.rect().bottomRight().y() == 20
assert item.isSelected() is True
assert mouse_mock.called_once_with(event)
mouse_mock.assert_called_once_with(event)
@patch('PyQt6.QtWidgets.QGraphicsScene.mouseMoveEvent')
@ -933,7 +933,7 @@ def test_mouse_move_event_when_no_rubberband(mouse_mock, view, imgfilename3x3):
view.scene.rubberband_item.rect().bottomRight().x() == 0
view.scene.rubberband_item.rect().bottomRight().y() == 0
assert item.isSelected() is False
assert mouse_mock.called_once_with(event)
mouse_mock.assert_called_once_with(event)
@patch('PyQt6.QtWidgets.QGraphicsScene.mouseReleaseEvent')