chore: pyproject optimization (#292)

This commit is contained in:
delewer 2026-03-23 13:09:30 +07:00 committed by GitHub
parent e3d4578eed
commit f3d05f7efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 25 additions and 54 deletions

View File

@ -30,7 +30,7 @@ jobs:
cache: "pip" cache: "pip"
- name: Install dependencies - name: Install dependencies
run: pip install ".[win10]" run: pip install .
- name: Install pyinstaller - name: Install pyinstaller
run: pip install "pyinstaller==6.13.0" run: pip install "pyinstaller==6.13.0"
@ -62,7 +62,7 @@ jobs:
cache: "pip" cache: "pip"
- name: Install dependencies (Win7-compatible) - name: Install dependencies (Win7-compatible)
run: pip install ".[win7]" run: pip install .
- name: Install pyinstaller - name: Install pyinstaller
run: pip install "pyinstaller==5.13.2" run: pip install "pyinstaller==5.13.2"
@ -174,7 +174,7 @@ jobs:
-w wheelhouse/universal2 -w wheelhouse/universal2
python3.12 -m pip install --no-deps wheelhouse/universal2/*.whl python3.12 -m pip install --no-deps wheelhouse/universal2/*.whl
python3.12 -m pip install ".[macos]" python3.12 -m pip install .
python3.12 -m pip install pyinstaller==6.13.0 python3.12 -m pip install pyinstaller==6.13.0
- name: Create macOS icon from ICO - name: Create macOS icon from ICO
@ -276,7 +276,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
.venv/bin/pip install --upgrade pip .venv/bin/pip install --upgrade pip
.venv/bin/pip install ".[linux]" .venv/bin/pip install .
.venv/bin/pip install "pyinstaller==6.13.0" .venv/bin/pip install "pyinstaller==6.13.0"
- name: Build binary with PyInstaller - name: Build binary with PyInstaller

View File

@ -91,31 +91,24 @@ pip install -e .
tg-ws-proxy tg-ws-proxy
``` ```
### Windows 10+ ### Windows 7/10+
```bash ```bash
pip install -e ".[win10]" pip install -e .
tg-ws-proxy-tray-win
```
### Windows 7
```bash
pip install -e ".[win7]"
tg-ws-proxy-tray-win tg-ws-proxy-tray-win
``` ```
### macOS ### macOS
```bash ```bash
pip install -e ".[macos]" pip install -e .
tg-ws-proxy-tray-macos tg-ws-proxy-tray-macos
``` ```
### Linux ### Linux
```bash ```bash
pip install -e ".[linux]" pip install -e .
tg-ws-proxy-tray-linux tg-ws-proxy-tray-linux
``` ```

View File

@ -1 +1 @@
__version__ = "1.1.3" __version__ = "1.3.0"

View File

@ -18,59 +18,37 @@ authors = [
keywords = [ keywords = [
"telegram", "telegram",
"tdesktop",
"proxy", "proxy",
"websocket" "bypass",
"websocket",
"socks5",
] ]
classifiers = [ classifiers = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Environment :: Console", "Environment :: Console",
"Environment :: MacOS X :: Cocoa",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications :: GTK",
"Intended Audience :: Customer Service", "Intended Audience :: Customer Service",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X", "Operating System :: OS Independent",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Topic :: System :: Networking :: Firewalls", "Topic :: System :: Networking :: Firewalls",
] ]
dependencies = [ dependencies = [
"pyperclip==1.9.0",
"psutil==5.9.8; platform_system == 'Windows' and python_version < '3.9'",
"cryptography==41.0.7; platform_system == 'Windows' and python_version < '3.9'", "cryptography==41.0.7; platform_system == 'Windows' and python_version < '3.9'",
"Pillow==10.4.0; platform_system == 'Windows' and python_version < '3.9'",
"psutil==7.0.0; platform_system != 'Windows' or python_version >= '3.9'",
"cryptography==46.0.5; platform_system != 'Windows' or python_version >= '3.9'", "cryptography==46.0.5; platform_system != 'Windows' or python_version >= '3.9'",
] "Pillow==12.1.1; (platform_system != 'Windows' or python_version >= '3.9') and platform_system != 'Darwin'",
[project.optional-dependencies] "customtkinter==5.2.2; platform_system != 'Darwin'",
win7 = [ "pystray==0.19.5; platform_system != 'Darwin'",
"customtkinter==5.2.2", "rumps==0.4.0; platform_system == 'Darwin'",
"Pillow==10.4.0", "Pillow==12.1.0; platform_system == 'Darwin'",
"psutil==5.9.8",
"pystray==0.19.5",
"pyperclip==1.9.0",
]
win10 = [
"customtkinter==5.2.2",
"Pillow==12.1.1",
"psutil==7.0.0",
"pystray==0.19.5",
"pyperclip==1.9.0",
]
macos = [
"Pillow==12.1.0",
"psutil==7.0.0",
"pyperclip==1.9.0",
"rumps==0.4.0",
]
linux = [
"customtkinter==5.2.2",
"Pillow==12.1.1",
"psutil==7.0.0",
"pystray==0.19.5",
"pyperclip==1.9.0",
] ]
[project.scripts] [project.scripts]