From a9663d0b0845dc3654574055dc15b8f21354898b Mon Sep 17 00:00:00 2001 From: bohd4nx Date: Tue, 16 Jun 2026 01:41:03 +0300 Subject: [PATCH] chore: update setup-uv action to v8.2.0 and update changelog date --- .github/workflows/publish.yml | 2 +- CHANGELOG.md | 2 +- CONTRIBUTING.md | 14 ++++++++------ README.md | 16 ++++++++-------- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b14613f..f793c24 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -48,7 +48,7 @@ jobs: with: python-version: "3.12" - - uses: astral-sh/setup-uv@v8.1.0 + - uses: astral-sh/setup-uv@v8.2.0 - run: uv build diff --git a/CHANGELOG.md b/CHANGELOG.md index 20d531d..bacc818 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project uses [Calendar Versioning](https://calver.org/) (`YYYY.MINOR.MI --- -## [2026.3.2] — Unreleased +## [2026.3.2] — 2026-06-16 ### Added diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 991a561..1db8218 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,16 +28,18 @@ All three must pass before opening a PR. ``` pyfragment/ client.py — FragmentClient (public entry point) - core/ — transport, cookies, constants + enums.py — ApiProvider, PaymentMethod, WalletVersion + exceptions.py — exception hierarchy + core/ — constants, validation helpers domains/ — one package per feature domain ads/ — recharge_ads, topup_gram - anonymous_numbers/— buy_number, manage_number + anonymous_numbers/— get_login_code, toggle_login_codes, terminate_sessions giveaways/ — giveaway_stars, giveaway_premium marketplace/ — search_usernames, search_numbers, search_gifts purchases/ — purchase_stars, purchase_premium - tonapi/ — wallet info, transaction signing - models/ — result dataclasses and enums - exceptions.py — exception hierarchy + services/ — shared infrastructure services + cookies/ — browser cookie extraction (models + service) + tonapi/ — wallet info, transaction signing (tonapi/toncenter) tests/ — unit tests (pytest) examples/ — runnable usage examples (excluded from CI) ``` @@ -46,7 +48,7 @@ examples/ — runnable usage examples (excluded from CI) - All public async methods live on `FragmentClient` and delegate to a domain service. - Domain functions receive a `FragmentClient` instance, never raw httpx clients. -- Patch targets in tests use the module where the name is **defined**, e.g. `pyfragment.domains.tonapi.transaction.process_transaction`. +- Patch targets in tests use the module where the name is **defined**, e.g. `pyfragment.services.tonapi.transaction._make_ton_client`. - Versioning follows [CalVer](https://calver.org/): `YYYY.MINOR.MICRO`. Bump in `pyproject.toml`; tag as `vYYYY.MINOR.MICRO`. ## Pull requests diff --git a/README.md b/README.md index 767377a..d4dbf8a 100644 --- a/README.md +++ b/README.md @@ -75,14 +75,14 @@ asyncio.run(main()) ## Configuration -| Parameter | Type | Default | Description | -| ---------------- | ------------- | ----------- | ------------------------------------------------------------------------------ | -| `seed` | `str` | — | 12- or 24-word GRAM (ex TON) wallet mnemonic | -| `api_key` | `str` | — | API key for the chosen provider (see `api_provider`) | -| `cookies` | `dict \| str` | — | Fragment session cookies | -| `wallet_version` | `str` | `"V5R1"` | `"V4R2"` or `"V5R1"` — also accepts `WalletVersion` literal | -| `api_provider` | `str` | `"tonapi"` | `"tonapi"` ([tonconsole.com](https://tonconsole.com)) or `"toncenter"` ([t.me/toncenter](https://t.me/toncenter)) | -| `timeout` | `float` | `30.0` | HTTP request timeout in seconds | +| Parameter | Type | Default | Description | +| ---------------- | ------------- | ---------- | ----------------------------------------------------------------------------------------------------------------- | +| `seed` | `str` | — | 12- or 24-word GRAM (ex TON) wallet mnemonic | +| `api_key` | `str` | — | API key for the chosen provider (see `api_provider`) | +| `cookies` | `dict \| str` | — | Fragment session cookies | +| `wallet_version` | `str` | `"V5R1"` | `"V4R2"` or `"V5R1"` — also accepts `WalletVersion` literal | +| `api_provider` | `str` | `"tonapi"` | `"tonapi"` ([tonconsole.com](https://tonconsole.com)) or `"toncenter"` ([t.me/toncenter](https://t.me/toncenter)) | +| `timeout` | `float` | `30.0` | HTTP request timeout in seconds | ---