Skip to content

Commit 6b38329

Browse files
committed
refactor: remove unused imports and files, streamline dependencies in project configuration
1 parent 78e6576 commit 6b38329

File tree

10 files changed

+5
-290
lines changed

10 files changed

+5
-290
lines changed

.github/workflows/python-package.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,13 @@ jobs:
103103
--add-data "venv/Lib/site-packages/tls_client;tls_client" `
104104
--add-data "venv/Lib/site-packages/tls_client/dependencies;tls_client/dependencies" `
105105
--add-data "venv/Lib/site-packages/cffi;cffi" `
106-
--add-data "venv/Lib/site-packages/Crypto;Crypto" `
107106
--add-data "venv/Lib/site-packages/psutil;psutil" `
108107
--collect-data fake_useragent `
109108
--collect-submodules streamlink `
110109
--collect-submodules websockets `
111110
--collect-submodules tls_client `
112111
--collect-submodules cffi `
113-
--collect-submodules Crypto `
114112
--hidden-import rich `
115-
--hidden-import dotenv `
116113
--hidden-import trio `
117114
"backend/main.py" `
118115
--name "KickViewerBOT.exe"

KickViewerBOT-macOS.spec

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,10 @@ a = Analysis(
4747
(os.path.join(site_packages, 'websockets'), 'websockets'),
4848
(os.path.join(site_packages, 'tls_client'), 'tls_client'),
4949
(os.path.join(site_packages, 'cffi'), 'cffi'),
50-
(os.path.join(site_packages, 'Crypto'), 'Crypto'),
5150
(os.path.join(site_packages, 'psutil'), 'psutil'),
5251
],
5352
hiddenimports=[
5453
'rich',
55-
'dotenv',
5654
'trio',
5755
'resource',
5856
'websockets',
@@ -61,7 +59,6 @@ a = Analysis(
6159
'fake_useragent',
6260
'streamlink',
6361
'cffi',
64-
'Crypto',
6562
'psutil',
6663
],
6764
hookspath=[],

KickViewerBOT.spec

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ dependencies = [
4040
('websockets', 'websockets'),
4141
('tls_client', 'tls_client'),
4242
('cffi', 'cffi'),
43-
('Crypto', 'Crypto'),
4443
('psutil', 'psutil'),
4544
]
4645

@@ -65,15 +64,13 @@ a = Analysis(
6564
datas=datas,
6665
hiddenimports=[
6766
'rich',
68-
'dotenv',
6967
'trio',
7068
'websockets',
7169
'tls_client',
7270
'tls_client.dependencies',
7371
'fake_useragent',
7472
'streamlink',
7573
'cffi',
76-
'Crypto',
7774
'psutil',
7875
],
7976
hookspath=[],

backend/api/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from flask import Blueprint
2-
from .bot_controller import bot_api
1+
"""Utilities for backend bot implementations."""
32

4-
api = Blueprint('api', __name__)
5-
api.register_blueprint(bot_api, url_prefix='/bot')
3+
__all__ = [
4+
"viewer_bot",
5+
"viewer_bot_stability",
6+
]

backend/api/app.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

backend/api/bot_controller.py

Lines changed: 0 additions & 241 deletions
This file was deleted.

backend/app.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

backend/certs/.gitkeep

Whitespace-only changes.

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ dependencies = [
1212
# Core Web Framework
1313
"flask>=2.0.0",
1414
"flask-cors>=4.0.0",
15-
"flask-jwt-extended>=4.5.0",
1615
"werkzeug>=2.0.0",
17-
"python-dotenv>=0.19.0",
1816
"gevent>=23.9.1",
1917

2018
# Network and Streaming
@@ -25,9 +23,6 @@ dependencies = [
2523
"tls_client",
2624

2725
# Security
28-
"PyJWT>=2.6.0",
29-
"cryptography>=40.0.0",
30-
3126
# UI and Formatting
3227
"rich>=13.0.0",
3328

requirements.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Core dependencies
22
flask>=2.0.0
33
flask-cors>=4.0.0
4-
flask-jwt-extended>=4.5.0
54
flask-socketio>=5.3.0
65
python-socketio>=5.10.0
76
werkzeug>=2.0.0
8-
python-dotenv>=0.19.0
97
gevent>=23.9.1
108
gevent-websocket>=0.10.1
119

@@ -16,10 +14,6 @@ fake-useragent>=1.1.1
1614
websockets>=12.0
1715
tls_client
1816

19-
# Security
20-
PyJWT>=2.6.0
21-
cryptography>=40.0.0
22-
2317
# UI and Formatting
2418
rich>=13.0.0
2519

0 commit comments

Comments
 (0)