build: migrate deps to pyproject.toml (#201)

This commit is contained in:
delewer
2026-03-19 01:33:12 +07:00
committed by GitHub
parent 9924440c48
commit 99b5c722e1
7 changed files with 115 additions and 14 deletions

69
pyproject.toml Normal file
View File

@@ -0,0 +1,69 @@
[build-system]
requires = ["hatchling>=1.25.0"]
build-backend = "hatchling.build"
[project]
name = "tg-ws-proxy"
dynamic=["version"]
description = "Telegram Desktop WebSocket Bridge Proxy"
readme = "README.md"
requires-python = ">=3.8"
license = { name = "MIT", file = "LICENSE" }
authors = [
{ name = "Flowseal" }
]
keywords = [
"telegram",
"proxy",
"websocket"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Win32 (MS Windows)",
"Intended Audience :: Customer Service",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Topic :: System :: Networking :: Firewalls",
]
dependencies = [
"customtkinter==5.2.2",
"pystray==0.19.5",
"pyperclip==1.9.0",
]
[project.optional-dependencies]
win7 = [
"cryptography==41.0.7",
"Pillow==10.4.0",
"psutil==5.9.8",
]
win10 = [
"cryptography==46.0.5",
"Pillow==12.1.1",
"psutil==7.0.0",
]
[project.scripts]
tg-ws-proxy = "proxy.tg_ws_proxy:main"
tg-ws-proxy-tray = "windows:main"
[project.urls]
Source = "https://github.com/Flowseal/tg-ws-proxy"
Issues = "https://github.com/Flowseal/tg-ws-proxy/issues"
[tool.hatch.build.targets.wheel]
packages = ["proxy"]
[tool.hatch.build.force-include]
"windows.py" = "windows.py"
[tool.hatch.version]
path = "proxy/__init__.py"