Skip to content

Commit 22ee7ca

Browse files
Merge branch 'main' into udpclient-remote-addr
2 parents 440f12a + bee9070 commit 22ee7ca

74 files changed

Lines changed: 936 additions & 1009 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/python-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
# stop the build if there are Python syntax errors or undefined names
3535
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3636
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=221 --statistics --exclude tests
38-
- name: Test with pytest
39-
run: |
40-
pytest
41-
env:
42-
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}
37+
flake8 opengsq --count --exit-zero --max-complexity=10 --max-line-length=221 --statistics --exclude tests
38+
# - name: Test with pytest
39+
# run: |
40+
# pytest
41+
# env:
42+
# STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}

.github/workflows/python-publish.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,34 @@ name: Upload Python Package
55

66
on:
77
release:
8-
types: [created]
8+
types: [published]
99

10-
jobs:
11-
deploy:
10+
permissions:
11+
contents: read
12+
id-token: write
1213

14+
jobs:
15+
publish:
1316
runs-on: ubuntu-latest
17+
environment:
18+
name: release
19+
url: https://pypi.org/p/opengsq
1420

1521
steps:
1622
- uses: actions/checkout@v5
23+
1724
- name: Set up Python
1825
uses: actions/setup-python@v6
1926
with:
2027
python-version: '3.x'
28+
2129
- name: Install dependencies
2230
run: |
2331
python -m pip install --upgrade pip
2432
pip install build
33+
2534
- name: Build package
2635
run: python -m build
36+
2737
- name: Publish package
2838
uses: pypa/gh-action-pypi-publish@release/v1
29-
with:
30-
user: __token__
31-
password: ${{ secrets.PYPI_API_TOKEN }}

docs/tests/protocols/index.rst

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,45 @@ Protocols Tests
44
===============
55

66
.. toctree::
7-
test_cod4/index
8-
test_halo1/index
9-
test_flatout2/index
7+
test_ase/index
8+
test_avp2/index
9+
test_battlefield/index
1010
test_battlefield2/index
11-
test_ssc/index
12-
test_source/index
13-
test_won/index
14-
test_fivem/index
15-
test_gamespy2/index
16-
test_nadeo/index
17-
test_trackmania_nations/index
18-
test_ut3/index
11+
test_cod1/index
12+
test_cod4/index
13+
test_doom3/index
1914
test_eldewrito/index
2015
test_eos/index
21-
test_renegadex/index
22-
test_stronghold_ce/index
23-
test_quake2/index
16+
test_fivem/index
17+
test_flatout2/index
18+
test_gamespy1/index
19+
test_gamespy2/index
2420
test_gamespy3/index
25-
test_stronghold_crusader/index
21+
test_gamespy4/index
22+
test_halo1/index
2623
test_kaillera/index
27-
test_toxikk/index
28-
test_avp2/index
29-
test_gamespy1/index
30-
test_scum/index
31-
test_raknet/index
3224
test_killingfloor/index
33-
test_battlefield/index
25+
test_minecraft/index
26+
test_nadeo/index
3427
test_palworld/index
35-
test_tmn/index
36-
test_doom3/index
37-
test_w40kdow/index
28+
test_quake1/index
29+
test_quake2/index
30+
test_quake3/index
31+
test_raknet/index
32+
test_renegadex/index
3833
test_samp/index
39-
test_ase/index
34+
test_satisfactory/index
35+
test_scum/index
36+
test_source/index
37+
test_ssc/index
38+
test_stronghold_ce/index
39+
test_stronghold_crusader/index
4040
test_teamspeak3/index
41+
test_toxikk/index
42+
test_trackmania_nations/index
43+
test_unreal2/index
44+
test_ut3/index
4145
test_vcmp/index
42-
test_minecraft/index
43-
test_quake3/index
46+
test_w40kdow/index
4447
test_warcraft3/index
45-
test_quake1/index
46-
test_unreal2/index
47-
test_gamespy4/index
48-
test_cod1/index
49-
test_satisfactory/index
48+
test_won/index

opengsq/binary_reader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,3 @@ def read_pascal_string(self, encoding='utf-8', errors='ignore'):
7373
length = self.read_byte()
7474
pascal_string = str(self.read_bytes(length - 1), encoding=encoding, errors=errors)
7575
return pascal_string
76-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
class ServerNotFoundException(Exception):
2-
pass
2+
pass

opengsq/protocol_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ def __init__(self, host: str, port: int, timeout: float = 5.0):
1111
self._host = host
1212
self._port = port
1313
self._timeout = timeout
14-
self._allow_broadcast = False
14+
self._allow_broadcast = False

opengsq/protocols/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
from opengsq.protocols.vcmp import Vcmp
4545
from opengsq.protocols.w40kdow import W40kDow
4646
from opengsq.protocols.warcraft3 import Warcraft3
47-
from opengsq.protocols.won import WON
47+
from opengsq.protocols.won import WON

0 commit comments

Comments
 (0)