Skip to content

Commit 9436eca

Browse files
committed
support up to python 3.13
1 parent 431f86b commit 9436eca

8 files changed

Lines changed: 29 additions & 21 deletions

File tree

.github/workflows/define-pylint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
matrix:
2121
os: [Linux]
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up Python ${{ inputs.python-version }}
25-
uses: actions/setup-python@v3
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ inputs.python-version }}
2828
- name: Install dependencies

.github/workflows/define-pytest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
matrix:
2121
os: [Linux]
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Set up Python ${{ inputs.python-version }}
25-
uses: actions/setup-python@v3
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ inputs.python-version }}
2828
- name: Install dependencies

.github/workflows/release_package.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
pylint:
1111
strategy:
1212
matrix:
13-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1414
uses: ./.github/workflows/define-pylint.yml
1515
with:
1616
python-version: ${{ matrix.python-version }}
@@ -19,7 +19,7 @@ jobs:
1919
pytest:
2020
strategy:
2121
matrix:
22-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
22+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2323
uses: ./.github/workflows/define-pytest.yml
2424
with:
2525
python-version: ${{ matrix.python-version }}
@@ -29,11 +29,11 @@ jobs:
2929
runs-on: self-hosted
3030
strategy:
3131
matrix:
32-
python-version: ["3.12"]
32+
python-version: ["3.13"]
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
- name: Set up Python ${{ matrix.python-version }}
36-
uses: actions/setup-python@v3
36+
uses: actions/setup-python@v5
3737
with:
3838
python-version: ${{ matrix.python-version }}
3939
- name: Install dependencies
@@ -55,11 +55,11 @@ jobs:
5555
outputs:
5656
release-tag: ${{ steps.read-tag.outputs.release-tag }}
5757
steps:
58-
- uses: actions/checkout@v3
59-
- name: Set up Python 3.12
60-
uses: actions/setup-python@v3
58+
- uses: actions/checkout@v4
59+
- name: Set up Python 3.13
60+
uses: actions/setup-python@v5
6161
with:
62-
python-version: "3.12"
62+
python-version: "3.13"
6363
- name: Install dependencies
6464
run: |
6565
python -m pip install --upgrade pip
@@ -91,7 +91,7 @@ jobs:
9191
permissions:
9292
contents: write
9393
steps:
94-
- uses: actions/checkout@v3
94+
- uses: actions/checkout@v4
9595
- name: Load persisted builds
9696
uses: actions/download-artifact@v4
9797
with:

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
pylint:
1111
strategy:
1212
matrix:
13-
python-version: ["3.8", "3.12"]
13+
python-version: ["3.8", "3.13"]
1414
uses: ./.github/workflows/define-pylint.yml
1515
with:
1616
python-version: ${{ matrix.python-version }}
@@ -19,7 +19,7 @@ jobs:
1919
pytest:
2020
strategy:
2121
matrix:
22-
python-version: ["3.8", "3.12"]
22+
python-version: ["3.8", "3.13"]
2323
needs: pylint
2424
if: |
2525
(github.event_name == 'push' && github.ref_name == 'main') ||

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ A python package which wraps around a minecraft server, providing easy access fo
88

99
#### Vanilla
1010

11-
Supports versions 1.7.10 to 1.20.4 (excluding 1.8.0, which is severely bugged, 1.8.1+ is fine)
11+
Supports versions 1.7.10 to 1.20.4 (excluding 1.8.0, which is severely bugged, 1.8.1+ is fine again)
1212

1313
#### Forge
1414

1515
Supports versions 1.7.10 to 1.16.5 as well as 1.20.3 to 1.20.4
1616

17+
### Supported Python versions
18+
19+
Tested to work with Python versions 3.8 to 3.13.
20+
1721
### Supported operating systems
1822

1923
Tested to work on Windows 10 and Ubuntu.

mcserverwrapper/src/util/info_getter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from __future__ import annotations
44

55
from mcstatus import JavaServer
6-
from mcstatus.pinger import PingResponse
6+
from mcstatus.responses import JavaStatusResponse
77

8-
def ping_address_with_return(address, port, timeout=3) -> PingResponse | None:
8+
def ping_address_with_return(address, port, timeout=3) -> JavaStatusResponse | None:
99
"""Pings a given address/port combination and returns the result or None"""
1010

1111
if isinstance(port, str):

mcserverwrapper/test/helpers/common_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def get_vanilla_urls():
158158
soup = BeautifulSoup(page.content, 'html.parser')
159159
for server_jar_link in soup.find_all('a',{'class':'text-xs whitespace-nowrap py-3 px-8 ' + \
160160
'bg-green-700 hover:bg-green-900 rounded text-white ' + \
161-
'no-underline font-bold transition-colors duration-200'}):
161+
'no-underline font-bold transition-colors duration-200 downloadJar'}):
162162
links.append((server_jar_link.get('href'), version_name))
163163
return links
164164

mcserverwrapper/test/helpers/vanilla_helper.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ def run_vanilla_test(jarfile, offline_mode=False):
6666
"1.20.5",
6767
"1.20.6",
6868
"1.21",
69-
"1.21.1"]:
69+
"1.21.1",
70+
"1.21.2",
71+
"1.21.3",
72+
"1.21.4",
73+
"1.21.5"]:
7074
bot = connect_mineflayer(port=port, offline_mode=offline_mode)
7175
assert bot is not None
7276

0 commit comments

Comments
 (0)