[PR #201] [MERGED] build: migrate deps to pyproject.toml #96

Closed
opened 2026-08-05 21:16:13 +03:00 by mirror-bot · 0 comments

📋 Pull Request Information

Original PR: https://github.com/Flowseal/tg-ws-proxy/pull/201
Author: @IMDelewer
Created: 3/17/2026
Status: ✅ Merged
Merged: 3/18/2026
Merged by: @Flowseal

Base: main ← Head: build/pyproject-migration


📝 Commits (10+)

  • 37d6df7 build: add pyproject.toml
  • ba6e1cd feat(cli): add tray script
  • 5935568 chore: point requirements files to pyproject extras
  • 616b7dd ci: install deps from pyproject extras
  • d9bd6f0 docs: update install and cli scripts
  • 55ff0bb fix(tray): handle missing tkinter
  • d478ab2 docs: note tkinter requirement for tray
  • 76d1485 fix: change way to find version from vsc to file
  • e148679 chore: bump version to 1.1.3
  • da22bec fix: apply all requested changes from PR review

📊 Changes

7 files changed (+115 additions, -14 deletions)

View changed files

📝 .github/workflows/build.yml (+2 -2)
📝 README.md (+35 -4)
➕ proxy/__init__.py (+1 -0)
➕ pyproject.toml (+69 -0)
📝 requirements-win7.txt (+1 -6)
📝 requirements.txt (+4 -0)
📝 windows.py (+3 -2)

📄 Description

Что изменил

  • Перенёс зависимости в pyproject.toml, добавил extras: win7 и win10
  • Добавил CLI команды: tg-ws-proxy и tg-ws-proxy-tray
  • Обновил GitHub Actions: установка теперь через pip install ".[win10]" / pip install ".[win7]"
  • requirements.txt и requirements-win7.txt оставил, но они теперь просто ссылаются на extras

Плюсы нового кода

  • Теперь зависимости живут в одном месте (pyproject.toml), а не дублируются в нескольких requirements* -> меньше шансов рассинхрона
  • Win7/Win10 отличаются явно через extras (.[win7] / .[win10]), а не отдельными списками, которые легко забыть обновить одинаково
  • Установка и CI ставят именно проект как пакет (pip install ".[...]"), а не набор библиотек -> сборка и запуск ближе к реальному использованию
  • Появились нормальные CLI команды (tg-ws-proxy, tg-ws-proxy-tray) вместо запуска через python ... -> проще пользователю и стабильнее

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Flowseal/tg-ws-proxy/pull/201 **Author:** [@IMDelewer](https://github.com/IMDelewer) **Created:** 3/17/2026 **Status:** ✅ Merged **Merged:** 3/18/2026 **Merged by:** [@Flowseal](https://github.com/Flowseal) **Base:** `main` ← **Head:** `build/pyproject-migration` --- ### 📝 Commits (10+) - [`37d6df7`](https://github.com/Flowseal/tg-ws-proxy/commit/37d6df70c700dd0ca9e5a5e96125f33a6d97208b) build: add pyproject.toml - [`ba6e1cd`](https://github.com/Flowseal/tg-ws-proxy/commit/ba6e1cdf397897adcd84090bfe90b7ee58f62459) feat(cli): add tray script - [`5935568`](https://github.com/Flowseal/tg-ws-proxy/commit/5935568991569e7d47d7e6aeb235abbfc354b7b5) chore: point requirements files to pyproject extras - [`616b7dd`](https://github.com/Flowseal/tg-ws-proxy/commit/616b7dd6ea22e56fba0b19b9910bea1096713310) ci: install deps from pyproject extras - [`d9bd6f0`](https://github.com/Flowseal/tg-ws-proxy/commit/d9bd6f0e44b4ee10cf1e69ed9a0857fec334bbf7) docs: update install and cli scripts - [`55ff0bb`](https://github.com/Flowseal/tg-ws-proxy/commit/55ff0bbd069428a46285ae7833fbdb13b351b4de) fix(tray): handle missing tkinter - [`d478ab2`](https://github.com/Flowseal/tg-ws-proxy/commit/d478ab2c3a34d1d5ff338ec97705578603287b0a) docs: note tkinter requirement for tray - [`76d1485`](https://github.com/Flowseal/tg-ws-proxy/commit/76d148529d009341aa213f29911cea9d19243eab) fix: change way to find version from vsc to file - [`e148679`](https://github.com/Flowseal/tg-ws-proxy/commit/e148679d71ea4ab1cc8eae051b3cebd32bad8bb8) chore: bump version to 1.1.3 - [`da22bec`](https://github.com/Flowseal/tg-ws-proxy/commit/da22beca69fc5dde0a4e0ef79f818a11be70a8cd) fix: apply all requested changes from PR review ### 📊 Changes **7 files changed** (+115 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build.yml` (+2 -2) 📝 `README.md` (+35 -4) ➕ `proxy/__init__.py` (+1 -0) ➕ `pyproject.toml` (+69 -0) 📝 `requirements-win7.txt` (+1 -6) 📝 `requirements.txt` (+4 -0) 📝 `windows.py` (+3 -2) </details> ### 📄 Description **Что изменил** - Перенёс зависимости в `pyproject.toml`, добавил extras: `win7` и `win10` - Добавил CLI команды: `tg-ws-proxy` и `tg-ws-proxy-tray` - Обновил GitHub Actions: установка теперь через `pip install ".[win10]"` / `pip install ".[win7]"` - `requirements.txt` и `requirements-win7.txt` оставил, но они теперь просто ссылаются на extras **Плюсы нового кода** - Теперь зависимости живут в одном месте (`pyproject.toml`), а не дублируются в нескольких `requirements*` -> меньше шансов рассинхрона - Win7/Win10 отличаются явно через extras (`.[win7]` / `.[win10]`), а не отдельными списками, которые легко забыть обновить одинаково - Установка и CI ставят именно проект как пакет (`pip install ".[...]"`), а не набор библиотек -> сборка и запуск ближе к реальному использованию - Появились нормальные CLI команды (`tg-ws-proxy`, `tg-ws-proxy-tray`) вместо запуска через `python ...` -> проще пользователю и стабильнее --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror-bot added the pull-request label 2026-08-05 21:16:13 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Utilities/tg-ws-proxy#96