splitguides 0.10.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. splitguides-0.10.1/.coveragerc +4 -0
  2. splitguides-0.10.1/.github/dependabot.yml +7 -0
  3. splitguides-0.10.1/.github/workflows/auto-test.yml +31 -0
  4. splitguides-0.10.1/.github/workflows/build-exe.yml +62 -0
  5. splitguides-0.10.1/.github/workflows/publish_to_pypi.yml +87 -0
  6. splitguides-0.10.1/.github/workflows/test-builds.yml +58 -0
  7. splitguides-0.10.1/.gitignore +193 -0
  8. splitguides-0.10.1/COPYING +674 -0
  9. splitguides-0.10.1/MANIFEST.in +9 -0
  10. splitguides-0.10.1/PKG-INFO +199 -0
  11. splitguides-0.10.1/application/setup.py +93 -0
  12. splitguides-0.10.1/pyproject.toml +72 -0
  13. splitguides-0.10.1/readme.md +174 -0
  14. splitguides-0.10.1/resources/logo_alpha.ico +0 -0
  15. splitguides-0.10.1/resources/logo_alpha.png +0 -0
  16. splitguides-0.10.1/resources/splitguides_server_example.jpg +0 -0
  17. splitguides-0.10.1/resources/splits_example.png +0 -0
  18. splitguides-0.10.1/scripts/clean_compiled_ui_files.py +10 -0
  19. splitguides-0.10.1/setup.cfg +4 -0
  20. splitguides-0.10.1/setup.py +14 -0
  21. splitguides-0.10.1/src/splitguides/__init__.py +1 -0
  22. splitguides-0.10.1/src/splitguides/__main__.py +15 -0
  23. splitguides-0.10.1/src/splitguides/_version.py +2 -0
  24. splitguides-0.10.1/src/splitguides/build_ui.py +71 -0
  25. splitguides-0.10.1/src/splitguides/exceptions.py +4 -0
  26. splitguides-0.10.1/src/splitguides/hotkeys.py +54 -0
  27. splitguides-0.10.1/src/splitguides/livesplit_client.py +303 -0
  28. splitguides-0.10.1/src/splitguides/note_parser.py +260 -0
  29. splitguides-0.10.1/src/splitguides/server/__init__.py +1 -0
  30. splitguides-0.10.1/src/splitguides/server/__main__.py +58 -0
  31. splitguides-0.10.1/src/splitguides/server/split_server.py +129 -0
  32. splitguides-0.10.1/src/splitguides/settings.py +231 -0
  33. splitguides-0.10.1/src/splitguides/static/desktop.css +146 -0
  34. splitguides-0.10.1/src/splitguides/static/server.css +160 -0
  35. splitguides-0.10.1/src/splitguides/static/streamlistener.js +18 -0
  36. splitguides-0.10.1/src/splitguides/templates/desktop.html +25 -0
  37. splitguides-0.10.1/src/splitguides/templates/server.html +12 -0
  38. splitguides-0.10.1/src/splitguides/ui/__init__.py +0 -0
  39. splitguides-0.10.1/src/splitguides/ui/color.py +50 -0
  40. splitguides-0.10.1/src/splitguides/ui/custom_elements/__init__.py +18 -0
  41. splitguides-0.10.1/src/splitguides/ui/hotkey_manager.py +92 -0
  42. splitguides-0.10.1/src/splitguides/ui/layouts/__init__.py +8 -0
  43. splitguides-0.10.1/src/splitguides/ui/layouts/build/__init__.py +0 -0
  44. splitguides-0.10.1/src/splitguides/ui/layouts/build/main_window.py +61 -0
  45. splitguides-0.10.1/src/splitguides/ui/layouts/build/server_settings.py +349 -0
  46. splitguides-0.10.1/src/splitguides/ui/layouts/build/settings.py +318 -0
  47. splitguides-0.10.1/src/splitguides/ui/layouts/main_window.ui +64 -0
  48. splitguides-0.10.1/src/splitguides/ui/layouts/server_settings.ui +394 -0
  49. splitguides-0.10.1/src/splitguides/ui/layouts/settings.ui +382 -0
  50. splitguides-0.10.1/src/splitguides/ui/main.pyproject +3 -0
  51. splitguides-0.10.1/src/splitguides/ui/main_window.py +492 -0
  52. splitguides-0.10.1/src/splitguides/ui/server_settings_ui.py +191 -0
  53. splitguides-0.10.1/src/splitguides/ui/settings_ui.py +241 -0
  54. splitguides-0.10.1/src/splitguides.egg-info/PKG-INFO +199 -0
  55. splitguides-0.10.1/src/splitguides.egg-info/SOURCES.txt +68 -0
  56. splitguides-0.10.1/src/splitguides.egg-info/dependency_links.txt +1 -0
  57. splitguides-0.10.1/src/splitguides.egg-info/entry_points.txt +3 -0
  58. splitguides-0.10.1/src/splitguides.egg-info/requires.txt +8 -0
  59. splitguides-0.10.1/src/splitguides.egg-info/top_level.txt +1 -0
  60. splitguides-0.10.1/tests/conftest.py +16 -0
  61. splitguides-0.10.1/tests/test_livesplit_client/test_get_client.py +8 -0
  62. splitguides-0.10.1/tests/test_livesplit_client/test_messaging.py +217 -0
  63. splitguides-0.10.1/tests/test_livesplit_client/test_networking.py +163 -0
  64. splitguides-0.10.1/tests/test_parser.py +99 -0
  65. splitguides-0.10.1/tests/test_ui/settings.json +19 -0
  66. splitguides-0.10.1/tests/test_ui/test_livesplit_link.py +0 -0
  67. splitguides-0.10.1/tests/test_ui/test_main_window.py +270 -0
  68. splitguides-0.10.1/tests/test_ui/test_settings.py +208 -0
  69. splitguides-0.10.1/uv.lock +488 -0
@@ -0,0 +1,4 @@
1
+ [run]
2
+ source =
3
+ src/
4
+ tests/
@@ -0,0 +1,7 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ # Check for updates to GitHub Actions every week
7
+ interval: "weekly"
@@ -0,0 +1,31 @@
1
+ name: UnitTests
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+ test-splitguides:
11
+
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ os: [windows-latest]
17
+ python-version: ["3.12", "3.13"]
18
+
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+ - name: Install dependencies
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ python -m pip install -e . --group dev
29
+ - name: Test with pytest
30
+ run: |
31
+ pytest tests/
@@ -0,0 +1,62 @@
1
+ name: Build Exe Archive
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build executable
10
+ runs-on: windows-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.12"
18
+ - name: Install the module
19
+ run: |
20
+ python -m pip install --upgrade pip
21
+ python -m pip install . --group build
22
+ - name: Build the application
23
+ run: |
24
+ python application/setup.py build
25
+ - name: Store the built application
26
+ uses: actions/upload-artifact@v4
27
+ with:
28
+ name: splitguides-app
29
+ path: build/SplitGuides_v*.zip
30
+
31
+ add-to-github-release:
32
+ name: >-
33
+ Sign the zipapp with Sigstore
34
+ and upload it to GitHub Release
35
+ needs:
36
+ - build
37
+ runs-on: ubuntu-latest
38
+ permissions:
39
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
40
+ id-token: write # IMPORTANT: mandatory for sigstore
41
+ steps:
42
+ - name: Download the zipapp
43
+ uses: actions/download-artifact@v4
44
+ with:
45
+ name: splitguides-app
46
+ path: dist/
47
+ - name: Sign the zipapp with Sigstore
48
+ uses: sigstore/gh-action-sigstore-python@v3.0.0
49
+ with:
50
+ release-signing-artifacts: false
51
+ inputs: >-
52
+ ./dist/*.zip
53
+ - name: Upload artifact signature to GitHub Release
54
+ env:
55
+ GITHUB_TOKEN: ${{ github.token }}
56
+ # Upload to GitHub Release using the `gh` CLI.
57
+ # `dist/` contains the built packages, and the
58
+ # sigstore-produced signatures and certificates.
59
+ run: >-
60
+ gh release upload
61
+ '${{ github.ref_name }}' dist/**
62
+ --repo '${{ github.repository }}'
@@ -0,0 +1,87 @@
1
+ name: Publish Package to PyPI and Github
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build Wheel
10
+ runs-on: windows-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.12"
18
+ - name: Install pypa/build
19
+ run: >-
20
+ python3 -m
21
+ pip install
22
+ build
23
+ --user
24
+ - name: Build a binary wheel and a source tarball
25
+ run: python3 -m build
26
+ - name: Store the distribution packages
27
+ uses: actions/upload-artifact@v4
28
+ with:
29
+ name: python-package-distributions
30
+ path: dist/
31
+
32
+ publish-to-pypi:
33
+ name: >-
34
+ Publish Python 🐍 distribution 📦 to PyPI
35
+ needs:
36
+ - build
37
+ runs-on: ubuntu-latest
38
+ environment:
39
+ name: pypi
40
+ url: https://pypi.org/p/splitguides
41
+ permissions:
42
+ id-token: write # IMPORTANT: mandatory for trusted publishing
43
+
44
+ steps:
45
+ - name: Download all the dists
46
+ uses: actions/download-artifact@v4
47
+ with:
48
+ name: python-package-distributions
49
+ path: dist/
50
+ - name: Publish distribution 📦 to PyPI
51
+ uses: pypa/gh-action-pypi-publish@release/v1
52
+
53
+ github-release:
54
+ name: >-
55
+ Sign the Python 🐍 distribution 📦 with Sigstore
56
+ and upload to the GitHub Release
57
+ needs:
58
+ - build
59
+ runs-on: windows-latest
60
+
61
+ permissions:
62
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
63
+ id-token: write # IMPORTANT: mandatory for sigstore
64
+
65
+ steps:
66
+ - name: Download all the dists
67
+ uses: actions/download-artifact@v4
68
+ with:
69
+ name: python-package-distributions
70
+ path: dist/
71
+ - name: Sign the dists with Sigstore
72
+ uses: sigstore/gh-action-sigstore-python@v3.0.0
73
+ with:
74
+ release-signing-artifacts: false
75
+ inputs: >-
76
+ ./dist/*.tar.gz
77
+ ./dist/*.whl
78
+ - name: Upload artifact signatures to GitHub Release
79
+ env:
80
+ GITHUB_TOKEN: ${{ github.token }}
81
+ # Upload to GitHub Release using the `gh` CLI.
82
+ # `dist/` contains the built packages, and the
83
+ # sigstore-produced signatures and certificates.
84
+ run: >-
85
+ gh release upload
86
+ '${{ github.ref_name }}' dist/**
87
+ --repo '${{ github.repository }}'
@@ -0,0 +1,58 @@
1
+ name: Test Builds
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+
10
+ jobs:
11
+ exe-build:
12
+ name: Test exe Build
13
+ runs-on: windows-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.12" # build with oldest supported python
21
+ - name: Install the module
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ python -m pip install . --group build
25
+ - name: Build the application
26
+ run: >-
27
+ python application/setup.py build
28
+ - name: Store the built app
29
+ uses: actions/upload-artifact@v4
30
+ with:
31
+ name: splitguides-app-dev
32
+ path: build/SplitGuides_v*.zip
33
+ retention-days: 1
34
+
35
+ wheel-build:
36
+ name: Test Wheel Build
37
+ runs-on: windows-latest
38
+
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+ - name: Set up Python
42
+ uses: actions/setup-python@v5
43
+ with:
44
+ python-version: "3.12"
45
+ - name: Install pypa/build
46
+ run: >-
47
+ python3 -m
48
+ pip install
49
+ build
50
+ --user
51
+ - name: Build a binary wheel and a source tarball
52
+ run: python3 -m build
53
+ - name: Store the distribution packages
54
+ uses: actions/upload-artifact@v4
55
+ with:
56
+ name: python-package-distributions
57
+ path: dist/
58
+ retention-days: 1
@@ -0,0 +1,193 @@
1
+ # Created by .ignore support plugin (hsz.mobi)
2
+ ### VisualStudioCode template
3
+ .vscode/*
4
+ !.vscode/settings.json
5
+ !.vscode/tasks.json
6
+ !.vscode/launch.json
7
+ !.vscode/extensions.json
8
+
9
+ ### Visual Studio
10
+ .vs/*
11
+
12
+ ### Python template
13
+ # Byte-compiled / optimized / DLL files
14
+ __pycache__/
15
+ *.py[cod]
16
+ *$py.class
17
+
18
+ # C extensions
19
+ *.so
20
+
21
+ # Distribution / packaging
22
+ .Python
23
+ build/
24
+ develop-eggs/
25
+ dist/
26
+ downloads/
27
+ eggs/
28
+ .eggs/
29
+ lib/
30
+ lib64/
31
+ parts/
32
+ sdist/
33
+ var/
34
+ wheels/
35
+ pip-wheel-metadata/
36
+ share/python-wheels/
37
+ *.egg-info/
38
+ .installed.cfg
39
+ *.egg
40
+ MANIFEST
41
+
42
+ # PyInstaller
43
+ # Usually these files are written by a python script from a template
44
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
45
+ *.manifest
46
+
47
+ # Installer logs
48
+ pip-log.txt
49
+ pip-delete-this-directory.txt
50
+
51
+ # Unit test / coverage reports
52
+ htmlcov/
53
+ .tox/
54
+ .nox/
55
+ .coverage
56
+ .coverage.*
57
+ .cache
58
+ nosetests.xml
59
+ coverage.xml
60
+ *.cover
61
+ .hypothesis/
62
+ .pytest_cache/
63
+
64
+ # Translations
65
+ *.mo
66
+ *.pot
67
+
68
+ # Sphinx documentation
69
+ docs/_build/
70
+
71
+ # PyBuilder
72
+ target/
73
+
74
+ # Jupyter Notebook
75
+ .ipynb_checkpoints
76
+
77
+ # IPython
78
+ profile_default/
79
+ ipython_config.py
80
+
81
+ # pyenv
82
+ .python-version
83
+
84
+ # Environments
85
+ .env
86
+ .venv
87
+ env*/
88
+ venv/
89
+ ENV/
90
+ env.bak/
91
+ venv.bak/
92
+
93
+ # mkdocs documentation
94
+ /site
95
+
96
+ # mypy
97
+ .mypy_cache/
98
+ .dmypy.json
99
+ dmypy.json
100
+
101
+ ### Linux template
102
+ *~
103
+
104
+ # temporary files which can be created if a process still has a handle open of a deleted file
105
+ .fuse_hidden*
106
+
107
+ # KDE directory preferences
108
+ .directory
109
+
110
+ # Linux trash folder which might appear on any partition or disk
111
+ .Trash-*
112
+
113
+ # .nfs files are created when an open file is removed but is still being accessed
114
+ .nfs*
115
+
116
+ ### JetBrains template
117
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
118
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
119
+
120
+ # Jetbrains tries to be really specific but I don't want any IDE config
121
+ .idea/
122
+
123
+ # CMake
124
+ cmake-build-*/
125
+
126
+ # File-based project format
127
+ *.iws
128
+
129
+ # IntelliJ
130
+ out/
131
+
132
+ ### macOS template
133
+ # General
134
+ .DS_Store
135
+ .AppleDouble
136
+ .LSOverride
137
+
138
+ # Icon must end with two \r
139
+ Icon
140
+
141
+ # Thumbnails
142
+ ._*
143
+
144
+ # Files that might appear in the root of a volume
145
+ .DocumentRevisions-V100
146
+ .fseventsd
147
+ .Spotlight-V100
148
+ .TemporaryItems
149
+ .Trashes
150
+ .VolumeIcon.icns
151
+ .com.apple.timemachine.donotpresent
152
+
153
+ # Directories potentially created on remote AFP share
154
+ .AppleDB
155
+ .AppleDesktop
156
+ Network Trash Folder
157
+ Temporary Items
158
+ .apdisk
159
+
160
+ ### Windows template
161
+ # Windows thumbnail cache files
162
+ Thumbs.db
163
+ Thumbs.db:encryptable
164
+ ehthumbs.db
165
+ ehthumbs_vista.db
166
+
167
+ # Dump file
168
+ *.stackdump
169
+
170
+ # Folder config file
171
+ [Dd]esktop.ini
172
+
173
+ # Recycle Bin used on file shares
174
+ $RECYCLE.BIN/
175
+
176
+ # Windows Installer files
177
+ *.cab
178
+ *.msi
179
+ *.msix
180
+ *.msm
181
+ *.msp
182
+
183
+ # Windows shortcuts
184
+ *.lnk
185
+
186
+ # Qt Project User File
187
+ *.pyproject.user
188
+
189
+ # Project settings file
190
+ src/**/settings.json
191
+ src/**/server_settings.json
192
+
193
+ src/splitguides/_version.py