From 8a5254fbc4ef88591138afb4b63f201e38e98aa1 Mon Sep 17 00:00:00 2001 From: Scrappy Date: Fri, 18 Jul 2025 10:38:32 +0200 Subject: [PATCH] Test upgrade to python 3.13 --- .devcontainer/devcontainer.json | 2 +- .github/workflows/manual-publish-version.yml | 2 +- .github/workflows/python-test-dev.yml | 2 +- .github/workflows/python-test-pr.yml | 2 +- .github/workflows/python-test-release.yml | 2 +- howlongtobeatpy/howlongtobeatpy/HowLongToBeatEntry.py | 2 +- howlongtobeatpy/howlongtobeatpy/JSONResultParser.py | 6 +++--- howlongtobeatpy/setup.py | 10 +++++----- sonar-project.properties | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 87807a8..7694689 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name":"howlongtobeatpy-devcontainer", - "image":"mcr.microsoft.com/devcontainers/python:3.9", + "image":"mcr.microsoft.com/devcontainers/python:3.13", "features":{ }, diff --git a/.github/workflows/manual-publish-version.yml b/.github/workflows/manual-publish-version.yml index 2905797..e415be7 100644 --- a/.github/workflows/manual-publish-version.yml +++ b/.github/workflows/manual-publish-version.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.13' - name: Install pypa/build run: | python3 -m pip install build --user diff --git a/.github/workflows/python-test-dev.yml b/.github/workflows/python-test-dev.yml index 59893da..3214d50 100644 --- a/.github/workflows/python-test-dev.yml +++ b/.github/workflows/python-test-dev.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.13' - name: Install dependencies run: | cd howlongtobeatpy diff --git a/.github/workflows/python-test-pr.yml b/.github/workflows/python-test-pr.yml index 595bace..e04de31 100644 --- a/.github/workflows/python-test-pr.yml +++ b/.github/workflows/python-test-pr.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.13' - name: Install dependencies run: | cd howlongtobeatpy diff --git a/.github/workflows/python-test-release.yml b/.github/workflows/python-test-release.yml index dd0ffb2..ddd3761 100644 --- a/.github/workflows/python-test-release.yml +++ b/.github/workflows/python-test-release.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.13' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/howlongtobeatpy/howlongtobeatpy/HowLongToBeatEntry.py b/howlongtobeatpy/howlongtobeatpy/HowLongToBeatEntry.py index 7ddd18c..ecfe301 100644 --- a/howlongtobeatpy/howlongtobeatpy/HowLongToBeatEntry.py +++ b/howlongtobeatpy/howlongtobeatpy/HowLongToBeatEntry.py @@ -47,7 +47,7 @@ def __init__(self): self.coop_time = None # invested_mp value self.mp_time = None - # These are used to identify if the game has singpe, coop and/or multiplayer + # These are used to identify if the game has singleplayer, coop and/or multiplayer # So you can filter data based on those self.complexity_lvl_combine = False self.complexity_lvl_sp = False diff --git a/howlongtobeatpy/howlongtobeatpy/JSONResultParser.py b/howlongtobeatpy/howlongtobeatpy/JSONResultParser.py index 6ed8ea9..ba6783a 100644 --- a/howlongtobeatpy/howlongtobeatpy/JSONResultParser.py +++ b/howlongtobeatpy/howlongtobeatpy/JSONResultParser.py @@ -91,14 +91,14 @@ def parse_json_element(self, input_game_element): current_entry.complexity_lvl_mp = bool(input_game_element.get("comp_lvl_mp", 0)) # Auto-Nullify values based on the flags if self.auto_filter_times: - if current_entry.complexity_lvl_sp is False: + if not current_entry.complexity_lvl_sp: current_entry.main_story = None current_entry.main_extra = None current_entry.completionist = None current_entry.all_styles = None - if current_entry.complexity_lvl_co is False: + if not current_entry.complexity_lvl_co: current_entry.coop_time = None - if current_entry.complexity_lvl_mp is False: + if not current_entry.complexity_lvl_mp: current_entry.mp_time = None # Compute Similarity game_name_similarity = self.similar(self.game_name, current_entry.game_name, diff --git a/howlongtobeatpy/setup.py b/howlongtobeatpy/setup.py index 304d0cc..14ef79d 100644 --- a/howlongtobeatpy/setup.py +++ b/howlongtobeatpy/setup.py @@ -14,10 +14,10 @@ license='MIT', keywords='howlongtobeat gaming steam uplay origin time length how long to beat', install_requires=[ - 'aiohttp>=3.11.10', - 'requests>=2.32.3', - 'aiounittest>=1.4.2', - 'fake_useragent>=2.0.3', - 'beautifulsoup4>=4.12.3' + 'aiohttp~=3.12', + 'requests~=2.32', + 'aiounittest~=1.5', + 'fake_useragent~=2.2', + 'beautifulsoup4~=4.13' ], zip_safe=False) diff --git a/sonar-project.properties b/sonar-project.properties index 573d788..eb3775f 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -3,7 +3,7 @@ sonar.projectKey=ScrappyCocco_HowLongToBeat-PythonAPI sonar.projectName=HowLongToBeat-PythonAPI sonar.projectVersion=1.0.18 -sonar.python.version=3.9 +sonar.python.version=3.13 # Define separate root directories for sources and tests sonar.sources=howlongtobeatpy/howlongtobeatpy/