diff --git a/CHANGELOG.md b/CHANGELOG.md index 7514203f..5489aecc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,14 +8,43 @@ below (see "Releasing" in the README). ## [Unreleased] -**Upgrading from 3.0 or 3.1:** if `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` or -`PROXY_URL` is still set anywhere (`.env`, the shell, a service file, the container settings), rename -it before you upgrade: `SOFASCORE_SERVER__TOKEN`, `SOFASCORE_SERVER__ALLOWED_HOSTS`, -`SOFASCORE_CLIENT__USE_PROXY`, `SOFASCORE_CLIENT__PROXY` (or point `[server] token_env` / -`[client] proxy_env` at the old variable). 3.1 printed a deprecation warning for each one. Otherwise -nothing starts: every command stops with exit code 2, the web app and the container refuse to start, and -`ssc doctor` fails with `config_removed_name`. Each message names the old variable and the one to set, -never its value. +## [3.2.0] - 2026-11-20 + +3.2.0 removes the four 2.x environment names that 3.1 still read with a warning; set without their new +names, they now stop the app. `ssc doctor --live` checks the way downloads really go, backups carry the +certificates trusted for a network that re-signs HTTPS, and the browser profiles set aside after a +challenge show in `/api/v1/status` and on the Health page. Like 3.1 it is installed from source: a +checkout of the `v3.2.0` tag with `pip install -e .`, the release archive (the source with the built web +app), or the Docker image `ghcr.io/tunjayoff/sofascore_scraper:3.2.0`. It is not published on PyPI. + +**Upgrading from 3.1** (also in the README, "Upgrading from 3.1"): + +- **Rename four environment names before you upgrade, or nothing starts.** `SOFASCORE_API_TOKEN`, + `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` and `PROXY_URL` are no longer read. If one of them is still set + anywhere (`.env`, the shell, a service file, the container settings) and its new name is not, nothing + starts: every command stops with exit code 2, the web app and the container refuse to start, and + `ssc doctor` fails with `config_removed_name`. Rename them: + `SOFASCORE_API_TOKEN` → `SOFASCORE_SERVER__TOKEN`, `SOFASCORE_ALLOWED_HOSTS` → + `SOFASCORE_SERVER__ALLOWED_HOSTS`, `USE_PROXY` → `SOFASCORE_CLIENT__USE_PROXY`, `PROXY_URL` → + `SOFASCORE_CLIENT__PROXY` (or point `[server] token_env` / `[client] proxy_env` at the old variable). + 3.1 printed a deprecation warning for each one. `ssc doctor` shows every old name still set, where it is + set and the name to set; each message names the old variable and the one to set, never its value. See + "Removed" below. +- **`ssc doctor --live` sends one request the way downloads do**, with the app's HTTP client, and uses the + built-in browser only when no browser profile gets through. It no longer starts the browser first; to + check the browser on its own, run `ssc doctor --live --browser`. A refusal or rate limit the request + could not get past is now a failure (`live_failed`). +- **Backups now carry the trusted certificates** (the `ca` folder of the config directory), and a restore + puts them back. Backups from earlier versions restore as before; nothing to do. +- Run `pip install -r requirements.txt -c constraints.txt` and `pip install -e .` again after updating a + checkout, as after every update. + +### Added + +- `ssc doctor --live --browser` also checks the built-in browser on its own line (`live_browser`). +- `GET /api/v1/status` (and `/health`, `POST /status/check`) reports the browser profiles the server set + aside after a challenge: `connection.profiles {total, set_aside: [{name, until_utc}]}`. Health shows one + line when any is set aside. ### Changed @@ -31,13 +60,8 @@ never its value. but other content, and never removes certificates that are not in the backup; the built-in browser is restarted to pick them up. `ssc backup verify` checks them. Backups from earlier versions restore as before, and 3.1.2 can still restore a backup made by this version (it skips the certificates). - -### Added - -- `ssc doctor --live --browser` also checks the built-in browser on its own line (`live_browser`). -- `GET /api/v1/status` (and `/health`, `POST /status/check`) reports the browser profiles the server set - aside after a challenge: `connection.profiles {total, set_aside: [{name, until_utc}]}`. Health shows one - line when any is set aside. +- Dependencies raised: `fastapi` 0.162.5 and `playwright` 1.65.1 (browser stack), and for development + `pytest-asyncio` 1.5.0, `ruff` 0.17.5, `jsdom` 31.0.1 and `@vitejs/plugin-vue` 6.0.11 (#236 to #239). ### Removed @@ -1748,7 +1772,8 @@ terminal tool; the web interface arrived in April 2026 (reported as 1.0.0 by `/h was replaced by the Vue app on 2026-07-27, when the number became 2.0.0. See `git log` for details. -[Unreleased]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.1.2...HEAD +[Unreleased]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.2.0...HEAD +[3.2.0]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.1.2...v3.2.0 [3.1.2]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.1.1...v3.1.2 [3.1.1]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.1.0...v3.1.1 [3.1.0]: https://github.com/tunjayoff/sofascore_scraper/compare/v3.0.0...v3.1.0 diff --git a/README.md b/README.md index 957ea72c..d5db7fb5 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ One core, three faces: a **Python library**, the **`ssc` command line** for servers and automation, and a versioned **HTTP API** with a **web app** on top. It runs on your own machine or server. -> **3.1.2 is released from source.** Install it from a checkout (the Docker or pip steps below); each release on GitHub also has a source archive with the built web app, and its Docker image is `ghcr.io/tunjayoff/sofascore_scraper`. There is no package on PyPI. Coming from 3.0: [Upgrading from 3.0](#upgrading-from-30); from 2.x: [Upgrading from 2.x](#upgrading-from-2x). +> **3.2.0 is released from source.** Install it from a checkout (the Docker or pip steps below); each release on GitHub also has a source archive with the built web app, and its Docker image is `ghcr.io/tunjayoff/sofascore_scraper`. There is no package on PyPI. Coming from 3.1: [Upgrading from 3.1](#upgrading-from-31); from 3.0: [Upgrading from 3.0](#upgrading-from-30); from 2.x: [Upgrading from 2.x](#upgrading-from-2x). Unofficial and not affiliated with SofaScore; see the [disclaimer](#disclaimer). -**Contents:** [Features](#features) · [Screenshots](#screenshots) · [Quick start](#quick-start) · [Command line](#command-line-ssc) · [HTTP API](#http-api) · [Python library](#python-library) · [Configuration](#configuration) · [Data and exports](#data-and-exports) · [Live watching](#live-watching) · [Security model](#security-model) · [Upgrading from 3.0](#upgrading-from-30) · [Upgrading from 2.x](#upgrading-from-2x) · [FAQ](#faq) · [Documentation](#documentation) · [Contributing](#contributing-and-development) · [Contact](#contact) · [License](#license) +**Contents:** [Features](#features) · [Screenshots](#screenshots) · [Quick start](#quick-start) · [Command line](#command-line-ssc) · [HTTP API](#http-api) · [Python library](#python-library) · [Configuration](#configuration) · [Data and exports](#data-and-exports) · [Live watching](#live-watching) · [Security model](#security-model) · [Upgrading from 3.1](#upgrading-from-31) · [Upgrading from 3.0](#upgrading-from-30) · [Upgrading from 2.x](#upgrading-from-2x) · [FAQ](#faq) · [Documentation](#documentation) · [Contributing](#contributing-and-development) · [Contact](#contact) · [License](#license) ## Features @@ -239,6 +239,33 @@ The web app has **no user accounts** and listens on `127.0.0.1` by default. Open The app itself answers only to allowed host names, refuses state-changing requests sent by other sites, sends a strict Content-Security-Policy, warns when it is exposed without a token, and keeps `.env`, the settings file and the browser profile readable by their owner only. Details: [docs/deploy](docs/deploy/README.md#access-token). +## Upgrading from 3.1 + +```bash +git pull +pip install -r requirements.txt -c constraints.txt +pip install -e . +cd frontend && npm install && npm run build && cd .. +ssc doctor # fails on an old name below that is still set, and names the one to set +``` + +With Docker Compose: `git pull`, then `docker compose pull` (or `docker compose build`) and `docker compose up -d`. The image of this release is `ghcr.io/tunjayoff/sofascore_scraper:3.2.0`. + +- **Rename four environment names before you upgrade.** `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` and `PROXY_URL` (deprecated in 3.1, with a warning) are no longer read. If one of them is still set anywhere (`.env`, the shell, a service file, the container settings) and its new name is not, nothing starts: commands exit with `2`, the web app and the container refuse to start, and `ssc doctor` fails and shows each old name, where it is set and the name to set (never the value). Rename them: + + | Old name (3.1) | New name (3.2) | + |---|---| + | `SOFASCORE_API_TOKEN` | `SOFASCORE_SERVER__TOKEN` | + | `SOFASCORE_ALLOWED_HOSTS` | `SOFASCORE_SERVER__ALLOWED_HOSTS` | + | `USE_PROXY` | `SOFASCORE_CLIENT__USE_PROXY` | + | `PROXY_URL` | `SOFASCORE_CLIENT__PROXY` | + + Instead of renaming, `[server] token_env` or `[client] proxy_env` in the config file may name the variable that holds the token or the proxy, the old one included. The Docker entrypoint no longer reads the old allow-list name either. +- **`ssc doctor --live`** now sends one request the way downloads do, and uses the built-in browser only when that request falls back to it. `ssc doctor --live --browser` checks the browser as well. +- **Backups carry the trusted certificates** of a network that re-signs HTTPS (the `ca` folder of the config directory), and a restore puts them back. Older backups restore as before. + +The full list is in [CHANGELOG.md](CHANGELOG.md#320---2026-11-20). + ## Upgrading from 3.0 ```bash diff --git a/README.tr.md b/README.tr.md index 82c07db3..302da821 100644 --- a/README.tr.md +++ b/README.tr.md @@ -10,11 +10,11 @@ Tek çekirdek, üç yüz: bir **Python kütüphanesi**, sunucular ve otomasyon için **`ssc` komut satırı** ve üzerinde bir **web arayüzü** bulunan sürümlü bir **HTTP API**. Kendi bilgisayarınızda ya da sunucunuzda çalışır. -> **3.1.2 kaynaktan kurulan bir sürüm olarak yayımlandı.** Bir checkout'tan kurun (aşağıdaki Docker ya da pip adımları); GitHub'daki her sürümde derlenmiş web arayüzünü içeren bir kaynak arşivi de vardır, Docker imajı ise `ghcr.io/tunjayoff/sofascore_scraper`'dır. PyPI'de paket yoktur. 3.0'dan geçiyorsanız: [3.0'dan yükseltme](#30dan-yükseltme); 2.x'ten geçiyorsanız: [2.x'ten yükseltme](#2xten-yükseltme). +> **3.2.0 kaynaktan kurulan bir sürüm olarak yayımlandı.** Bir checkout'tan kurun (aşağıdaki Docker ya da pip adımları); GitHub'daki her sürümde derlenmiş web arayüzünü içeren bir kaynak arşivi de vardır, Docker imajı ise `ghcr.io/tunjayoff/sofascore_scraper`'dır. PyPI'de paket yoktur. 3.1'den geçiyorsanız: [3.1'den yükseltme](#31den-yükseltme); 3.0'dan geçiyorsanız: [3.0'dan yükseltme](#30dan-yükseltme); 2.x'ten geçiyorsanız: [2.x'ten yükseltme](#2xten-yükseltme). Resmî değildir, SofaScore ile bir bağı yoktur; bkz. [sorumluluk reddi](#sorumluluk-reddi). -**İçindekiler:** [Özellikler](#özellikler) · [Ekran görüntüleri](#ekran-görüntüleri) · [Hızlı başlangıç](#hızlı-başlangıç) · [Komut satırı](#komut-satırı-ssc) · [HTTP API](#http-api) · [Python kütüphanesi](#python-kütüphanesi) · [Yapılandırma](#yapılandırma) · [Veri ve dışa aktarma](#veri-ve-dışa-aktarma) · [Canlı izleme](#canlı-izleme) · [Güvenlik modeli](#güvenlik-modeli) · [3.0'dan yükseltme](#30dan-yükseltme) · [2.x'ten yükseltme](#2xten-yükseltme) · [SSS](#sss) · [Belgeler](#belgeler) · [Katkı](#katkı-ve-geliştirme) · [İletişim](#iletisim) · [Lisans](#lisans) +**İçindekiler:** [Özellikler](#özellikler) · [Ekran görüntüleri](#ekran-görüntüleri) · [Hızlı başlangıç](#hızlı-başlangıç) · [Komut satırı](#komut-satırı-ssc) · [HTTP API](#http-api) · [Python kütüphanesi](#python-kütüphanesi) · [Yapılandırma](#yapılandırma) · [Veri ve dışa aktarma](#veri-ve-dışa-aktarma) · [Canlı izleme](#canlı-izleme) · [Güvenlik modeli](#güvenlik-modeli) · [3.1'den yükseltme](#31den-yükseltme) · [3.0'dan yükseltme](#30dan-yükseltme) · [2.x'ten yükseltme](#2xten-yükseltme) · [SSS](#sss) · [Belgeler](#belgeler) · [Katkı](#katkı-ve-geliştirme) · [İletişim](#iletisim) · [Lisans](#lisans) ## Özellikler @@ -239,6 +239,33 @@ Web arayüzünde **kullanıcı hesabı yoktur** ve varsayılan olarak `127.0.0.1 Uygulama yalnızca izin verilen sunucu adlarına yanıt verir, başka sitelerin gönderdiği durum değiştiren istekleri reddeder, sıkı bir Content-Security-Policy gönderir, anahtarsız açıldığında uyarır ve `.env`'i, ayar dosyasını ve tarayıcı profilini yalnızca sahibinin okuyabileceği biçimde tutar. Ayrıntılar: [docs/deploy](docs/deploy/README.md#access-token) (İngilizce). +## 3.1'den yükseltme + +```bash +git pull +pip install -r requirements.txt -c constraints.txt +pip install -e . +cd frontend && npm install && npm run build && cd .. +ssc doctor # aşağıdaki eski adlardan biri hâlâ duruyorsa başarısız olur ve verilecek adı söyler +``` + +Docker Compose ile: `git pull`, ardından `docker compose pull` (ya da `docker compose build`) ve `docker compose up -d`. Bu sürümün imajı `ghcr.io/tunjayoff/sofascore_scraper:3.2.0`'dır. + +- **Yükseltmeden önce dört ortam adını değiştirin.** `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` ve `PROXY_URL` (3.1'de bir uyarıyla kullanımdan kalkmıştı) artık okunmaz. Biri hâlâ bir yerde (`.env`, kabuk, bir servis dosyası, konteyner ayarları) duruyor ve yeni adı verilmemişse hiçbir şey başlamaz: komutlar `2` ile çıkar, web uygulaması ve konteyner başlamaz, `ssc doctor` başarısız olur ve her eski adı, nerede verildiğini ve verilecek adı gösterir (değeri asla). Adları şöyle değiştirin: + + | Eski ad (3.1) | Yeni ad (3.2) | + |---|---| + | `SOFASCORE_API_TOKEN` | `SOFASCORE_SERVER__TOKEN` | + | `SOFASCORE_ALLOWED_HOSTS` | `SOFASCORE_SERVER__ALLOWED_HOSTS` | + | `USE_PROXY` | `SOFASCORE_CLIENT__USE_PROXY` | + | `PROXY_URL` | `SOFASCORE_CLIENT__PROXY` | + + Adı değiştirmek yerine yapılandırma dosyasındaki `[server] token_env` ya da `[client] proxy_env`, belirteci ya da proxy'yi taşıyan değişkenin adını (eskisi de olabilir) verebilir. Docker giriş betiği de eski izin listesi adını artık okumaz. +- **`ssc doctor --live`** artık indirmelerin yaptığı gibi tek bir istek gönderir ve yerleşik tarayıcıyı yalnızca bu istek ona düştüğünde kullanır. `ssc doctor --live --browser` tarayıcıyı da denetler. +- **Yedekler güvenilen sertifikaları taşır**: HTTPS'i yeniden imzalayan bir ağ için güvenilen sertifikalar (yapılandırma klasörünün `ca` klasörü) yedeğe girer ve geri yükleme onları geri koyar. Eski yedekler eskisi gibi geri yüklenir. + +Tam liste [CHANGELOG.md](CHANGELOG.md#320---2026-11-20) dosyasındadır (İngilizce). + ## 3.0'dan yükseltme ```bash diff --git a/docs/design/00-platform.md b/docs/design/00-platform.md index b370b4e8..ea75a4c8 100644 --- a/docs/design/00-platform.md +++ b/docs/design/00-platform.md @@ -154,7 +154,7 @@ dated 2026-11-14 in sections 2, 5, 6, 8, 9, 10 and 11 and a new row of section 1 | Raw payloads | Stored compressed; the application and the CLI export them at full size (plain JSON) on request | done: compressed in the new layout (PR #104); exported by `ssc export` and API v1 (PRs #108, #123, #130) | | Old data layout | No automatic migration. New writes use the new layout; old data is read in place; whoever wants to moves it with the `migrate` command (manager decision) | done: `ssc migrate` (PR #110) | | Scheduler | In-app automatic updating is optional, off by default | done, PR #128: `ssc serve --scheduler` or `[schedule] enabled = true`. Since PR #155 a task that runs `every` some time counts from its last run in the job history, not from the start of the server, and a `prune-history` task (off by default) removes old odds snapshots | -| Version | These changes are 3.0.0 (manager decision): storage layout, API and CLI change incompatibly | released on 2026-10-08: the `v3.0.0` tag (Tuncay's), the GitHub Release and the Docker image, from source only, without a PyPI package (PR #179; `03-implementation-plan.md` section 18). 3.1.0 released on 2026-10-09 the same way: the `v3.1.0` tag (Tuncay's) on `054d8a2`, the GitHub Release and the image (PR #195; `03-implementation-plan.md` section 19). P30 (PR #186) removed in it what 3.0.0 deprecated (the 2.x flags, `/api` routes, environment names and backup scopes); four of the environment names stay readable, deprecated, until 3.2 (PR #196). 3.1.1 and 3.1.2 followed on 2026-11-14 (the tags `v3.1.1` on `3a8e063` and `v3.1.2` on `fb0a257`; PRs #223, #231; `03-implementation-plan.md` section 19): a maintenance release, and one that changes the request layer's browser profiles and adds certificate trust; neither changes the storage layout, the schema or an existing route incompatibly, except the default of `POST /api/v1/follows` without `seasons` (PR #220). The import package is `sofascore_scraper` since REN-1 (#168; decision D1, owner, 2026-10-03), and the Docker image has the `ssc` command | +| Version | These changes are 3.0.0 (manager decision): storage layout, API and CLI change incompatibly | released on 2026-10-08: the `v3.0.0` tag (Tuncay's), the GitHub Release and the Docker image, from source only, without a PyPI package (PR #179; `03-implementation-plan.md` section 18). 3.1.0 released on 2026-10-09 the same way: the `v3.1.0` tag (Tuncay's) on `054d8a2`, the GitHub Release and the image (PR #195; `03-implementation-plan.md` section 19). P30 (PR #186) removed in it what 3.0.0 deprecated (the 2.x flags, `/api` routes, environment names and backup scopes); four of the environment names stay readable, deprecated, until 3.2 (PR #196). 3.1.1 and 3.1.2 followed on 2026-11-14 (the tags `v3.1.1` on `3a8e063` and `v3.1.2` on `fb0a257`; PRs #223, #231; `03-implementation-plan.md` section 19): a maintenance release, and one that changes the request layer's browser profiles and adds certificate trust; neither changes the storage layout, the schema or an existing route incompatibly, except the default of `POST /api/v1/follows` without `seasons` (PR #220). 3.2.0 follows on 2026-11-20, from source the same way (release pull request #245; `03-implementation-plan.md` section 20): the four deprecated 2.x names are no longer read and stop the application while set without their new names (PR #241), `replaced_by` leaves the setting rows, `ssc doctor --live` follows the real request path (PR #240) and backups carry the trusted certificates with the backup format still 2 (PR #243); the storage layout and the schema are unchanged. The import package is `sofascore_scraper` since REN-1 (#168; decision D1, owner, 2026-10-03), and the Docker image has the `ssc` command | | Merging | The manager session reviews and merges; the release tag is Tuncay's | since 2026-10-03 a pull request merges on a green Linux CI plus a local run of the full suite on its merge with main; the Windows and macOS jobs of CI are best-effort (Platform) | | Live is not a web feature (2026-10-01, after the draft) | Live data is not part of the web UI and is not exposed over an HTTP endpoint (no SSE stream). A person at a screen can watch live scores on SofaScore itself; the value of the live stream is for servers and programs. Live watching is a CLI service (`watch`) that delivers events to sinks: stdout (JSON lines), file, webhook. A program that wants live data over the network uses the webhook. The event stream is still stored with sequence numbers | done: `ssc watch` delivers to the configured sinks (PR #91); no route of API v1 and no screen of the new web UI carries live data | | Live sources (2026-10-01, after the draft) | Two selectable push sources in the CLI, plus polling as the fallback that is always present. `page` (default): the service keeps a real browser page open and listens to the page's own push connection; no credential is handled. `direct` (explicit opt-in): a lightweight client connects to the push server itself with the credential read at runtime from the bridge page's own connection, kept in memory only. `direct` is never the default, is never enabled implicitly, and carries clear warnings wherever it is configured or documented (section 8) | built: `page`, the default (PR #95), and `direct` (PR #101). Run against the real site in the live validation of 2026-10-08, the `direct` step with the owner's approval: both worked (section 8). `direct` stays off in every default | diff --git a/docs/design/03-implementation-plan.md b/docs/design/03-implementation-plan.md index dc0d26ff..283ea638 100644 --- a/docs/design/03-implementation-plan.md +++ b/docs/design/03-implementation-plan.md @@ -207,11 +207,19 @@ work from without reading the other briefs. | (feature) | #230 | merged | not a plan item, 2026-11-14 (issue #225): trusting the certificate of a network that re-signs HTTPS (`client/trust.py`, `client/nssdb.py`, `CONFIG_DIR/ca`, the four `/api/v1/trust` routes, `certificate_changed`, `ssc trust`, the Health card); two fixes of its Docker run in the same pull request (a certificate the browser refuses fails the launch; `ssc trust` logs to stderr) | | (release) | #231 | merged | not a plan item: the 3.1.2 release pull request (the version, the changelog close with a Security section and upgrade notes, the READMEs' version line, the usage-error golden); the tag `v3.1.2` on its merge commit `fb0a257`, 2026-11-14 (section 19) | | (documents) | #232, #233 | merged | not plan items, 2026-11-14, after the tag: a Contact section in both READMEs; the READMEs' "Why does it need Chromium?" and upgrade steps, the doctor's hint that named a README heading that does not exist (`locales/`), and the as-built note of `05-web-ui.md` 6.12 | +| (documents) | #234, #235 | merged | not plan items, 2026-11-14: the design documents brought up to 3.1.1 and 3.1.2; four places where they and the code disagreed settled (one of them the hint of `ssc doctor --live`, in both languages) | +| (dependencies) | #236 to #239 | merged | not plan work, 2026-11-20 (Dependabot): `playwright` 1.65.1, `fastapi` 0.162.5, `pytest-asyncio` 1.5.0, `ruff` 0.17.5, `@vitejs/plugin-vue` 6.0.11, `jsdom` 31.0.1 (section 20) | +| (feature) | #240 | merged | not a plan item, 2026-11-20: `ssc doctor --live` sends one request the way a download does (the browser only as the fallback, or with `--browser`); the set-aside browser profiles in `/status` and on Health (section 20) | +| (clean-up) | #242 | merged | not a plan item, 2026-11-20: unused helpers removed (section 19, "Unused code removed") | +| (removal) | #241 | merged | not a plan item, 2026-11-20 (owner decision, section 13): `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` and `PROXY_URL` no longer read; set without their new names they stop the app (`config_invalid`, exit code 2; `ssc doctor`: `config_removed_name`) (section 20) | +| (feature) | #243 | merged | not a plan item, 2026-11-20 (owner decision): backups carry the trusted certificates of `CONFIG_DIR/ca` and a restore puts them back (section 20) | +| (tests) | #244 | merged | not a plan item, 2026-11-20: every test restores the whole process environment (`tests/conftest.py`); three order-dependent config test failures gone | +| (release) | #245 | open | not a plan item: the 3.2.0 release pull request (the version, the changelog close with "Upgrading from 3.1", both READMEs with "Upgrading from 3.1", the usage-error golden); the tag follows the merge (section 20) | Every item is merged or done: the 97 of the plan, the eleven items of 3.1 and the three slice items after it (section 19). 3.0.0 was released on 2026-10-08 (section 18), 3.1.0 on 2026-10-09, and 3.1.1 and 3.1.2 on -2026-11-14 (section 19, which also lists what is open after them). What this revision, the twelfth -(2026-11-14), changed: +2026-11-14 (section 19, which also lists what is open after them). 3.2.0 follows on 2026-11-20 (section 20, +with the list of what is open after it). What this revision, the twelfth (2026-11-14), changed: - **3.1.1 and 3.1.2 are released**, both on 2026-11-14 and both from source, like 3.1.0: the tags `v3.1.1` on `3a8e063` and `v3.1.2` on `fb0a257`, the merge commits of their release pull requests (#223, #231). @@ -5330,7 +5338,7 @@ the other items were written from the orchestrator's instructions and have no br entries of all of them are in `CHANGELOG.md` under `## [3.1.0] - 2026-10-09`. Since the twelfth revision this section also records what came after 3.1.0: FX-36 to FX-38, the research recorder, and the patch releases 3.1.1 and 3.1.2 of 2026-11-14 ("After 3.1.0", below); the open list at its end is the list after -3.1.2. +3.1.2. Section 20 records 3.2 and carries the items of that list that are still open. Done (all merged by 2026-10-09 and in 3.1.0; FX-28 shipped in 3.0.0): @@ -5444,8 +5452,8 @@ How 3.1.1 and 3.1.2 were released, as far as the repository shows it: Open after 3.1.2 (the list after 3.1, brought up to 2026-11-14), in no fixed order: -- **3.2: remove the four deprecated names.** Done on 2026-11-20 (pull request `feat/retire-deprecated-names`; - in 3.2, not released). The plan said that `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` and +- **3.2: remove the four deprecated names.** Done on 2026-11-20 (#241; + in 3.2.0, section 20). The plan said that `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` and `PROXY_URL` would leave `loader.DEPRECATED_NAMES` and become plain `legacy_name` warnings. The owner chose that they fail closed instead (section 13, 2026-11-20). Built: no value is read from them any more, and `DEPRECATED_NAMES` became `loader.GUARDED_NAMES`. If one of them is set (in the environment or in `.env`) @@ -5495,7 +5503,7 @@ Open after 3.1.2 (the list after 3.1, brought up to 2026-11-14), in no fixed ord polled faces because it reads every slice row. Switching the CLI would change what `--coverage` means and its output, and set it apart from the web. `StatusService.coverage` has no caller outside the tests now that the old file report is gone; it stays as the service's slice report. -- **Unused code removed (2026-11-20).** Helpers that nothing in the package, `scripts/` or the frontend +- **Unused code removed (2026-11-20, #242; in 3.2.0).** Helpers that nothing in the package, `scripts/` or the frontend called (vulture, then checked by hand): the `ConfigManager` getters `get_league_ids`, `get_league_names`, `get_league_name_by_id`, `get_league_id_by_name`, `get_match_data_dir`, `get_api_base_url`, `get_use_color`, `get_date_format`, `get_request_rate_limit` and `get_language` and the `League` dataclass @@ -5535,7 +5543,7 @@ New on 2026-11-14, from the work of 3.1.2 (each checked in the code at `395b6e0` store of the operating system (one warning in the log, a note in the UI and the CLI). Giving the browser the store on Windows and macOS needs a mechanism per platform, or the answer that the operating system's store is enough there. -- **Done (after 3.1.2, for 3.2): backups include the `ca` folder** (#230 left it out). Owner decision +- **Done (after 3.1.2, #243; in 3.2.0): backups include the `ca` folder** (#230 left it out). Owner decision (2026-11-20): a backup carries the trusted certificates and a restore puts them back. They are public certificates without keys, and a restore is the user's explicit act of putting back their own configuration, trust decisions included. As built (`01-storage.md` 9.1 and 9.2, `02-services.md` 2.7): @@ -5559,7 +5567,7 @@ New on 2026-11-14, from the work of 3.1.2 (each checked in the code at `395b6e0` request; only then comes the request with the HTTP client, and it is not sent when the bridge gave no answer. Since #227 downloads normally need no browser, so the check is heavier than what it checks. Open: the HTTP request first and the browser as a second, separate result, or a flag for the browser part. - **Done (this PR, "doctor --live follows the real request path").** `ssc doctor --live` sends one request + **Done (#240, 2026-11-20; in 3.2.0).** `ssc doctor --live` sends one request the way a download does (`make_api_request`: the HTTP client, other profiles on a challenge, the bridge only when none passes), so the browser starts only when the request path falls back to it; `live_ok` names the path (`detail.via`, `detail.profile`). A 403, 429 or other answer the path could not get past is now @@ -5577,8 +5585,8 @@ New on 2026-11-14, from the work of 3.1.2 (each checked in the code at `395b6e0` day; the gate's Chrome threshold moves, and new profiles come only with a newer curl_cffi. The set-aside keeps requests working while one profile passes, and nothing reports how many are set aside except the log (`profiles.refused()` has no caller in a face). Open: the set-aside profiles in `/status` or - `ssc doctor`, and a routine for re-measuring the list. **The first part is done (this PR, "doctor --live - follows the real request path").** `GET /status` (also `/health` and `POST /status/check`) carries + `ssc doctor`, and a routine for re-measuring the list. **The first part is done (#240, 2026-11-20; in + 3.2.0).** `GET /status` (also `/health` and `POST /status/check`) carries `connection.profiles {total, set_aside: [{name, until_utc}]}` from `profiles.status()`, and Health shows one line when a profile is set aside (`02-services.md` 2.4, 6; `05-web-ui.md` 6.12). Not in `ssc doctor`: the set-aside is per process, and a doctor process starts with none. Still open: a routine for @@ -5589,3 +5597,128 @@ New on 2026-11-14, from the work of 3.1.2 (each checked in the code at `395b6e0` Not in 3.1, by decision: a localized date picker (owner, 2026-10-09; the native date input stays) and serving the web UI under a path prefix (section 17). Publishing to PyPI has no date (section 13). + +## 20. 3.2: what was done, the release, and what is open + +3.2 was built on main on 2026-11-20, after the `v3.1.2` tag, and is released as 3.2.0 (below). Like the work +of 2026-11-14 (section 19) none of it has a brief of this plan or an id; it is cited by pull request number. +The changelog entries are in `CHANGELOG.md` under `## [3.2.0] - 2026-11-20`. Its one incompatible change is +the owner's decision of 2026-11-20 (section 13): the four 2.x names that FX-35 kept readable for 3.1 are no +longer read and fail closed while set without their new names. The documents-only pull requests merged +after the `v3.1.2` tag (#232 to #235: the READMEs' Contact section and corrections, the design documents +brought up to 3.1.2, four disagreements between the design documents and the code settled) are in 3.2.0 too; +#233's changelog entry is under Fixed, and #235 changed the hint of `ssc doctor --live` in both languages. + +What 3.2.0 contains (merged on 2026-11-20 unless noted): + +| PR | What it did | +|---|---| +| #240 | `ssc doctor --live` sends one request the way a download does (`make_api_request`: the HTTP client, other profiles on a challenge, the bridge only when none passes), so the browser starts only when the request path falls back to it; `live_ok` names the path (`detail.via`, `detail.profile`); a 403, 429 or other answer the path could not get past is `live_failed`; `--live --browser` checks the bridge on its own line (`live_browser`). `GET /status` (also `/health` and `POST /status/check`) carries `connection.profiles {total, set_aside: [{name, until_utc}]}`, and Health shows one line when a profile is set aside (section 19, "doctor --live" and "The profile list"; `02-services.md` 2.4, 4.1, 6; `05-web-ui.md` 6.12) | +| #241 | `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` and `PROXY_URL` fail closed: no value is read from them; `loader.GUARDED_NAMES` replaces `DEPRECATED_NAMES`, and one of them set without its setting given by the new environment name, a flag or a variable named by `token_env` / `proxy_env` raises `GuardedNameError` (`config_invalid`, exit code 2; `ssc doctor`: `config_removed_name`); the web app and the container do not start; the Docker entrypoint no longer counts the old allow-list name; `replaced_by`, `Source.deprecated` and the 3.1 rule that `PROXY_URL` alone does not switch the proxy on removed (section 19, "3.2: remove the four deprecated names"; `02-services.md` 4.3, 4.6) | +| #242 | unused helpers removed (vulture, then checked by hand); no command, route, setting or file format changes (section 19, "Unused code removed") | +| #243 | backups carry the trusted certificates of `CONFIG_DIR/ca` as flat `config/ca.` members listed under `trusted_ca` in `backup.json`, `verify` checks them, a restore writes them back and restarts the bridge browser; the backup format number stays 2, and 3.1.2 still restores such a backup without the certificates (section 19, "backups include the `ca` folder"; `01-storage.md` 9.1, 9.2; `02-services.md` 2.7) | +| #244 | tests only: the autouse guard of `tests/conftest.py` snapshots `os.environ` and restores it exactly after every test, set up first and torn down last, which ends three leaks that made config tests fail by test order; no product code, no changelog entry | +| #236 to #239 | Dependabot: `playwright` 1.65.1 (the browser stack group; `scrapling` and `patchright` unchanged), `fastapi` 0.162.5, `pytest-asyncio` 1.5.0 and `ruff` 0.17.5 (the Python group), `@vitejs/plugin-vue` 6.0.11 and `jsdom` 31.0.1 (frontend); one changelog line under Changed | +| (release) | the release pull request: `version = "3.2.0"`, the changelog section, the READMEs, the usage-error golden, `00-platform.md`'s Version row and this section | + +How 3.2.0 is released, as for 3.1.0 to 3.1.2 (section 19): + +1. **Live checks before the release pull request**, by the maintainer on main at `1e84efb` (#243, before #244, + which changes tests only): `ssc doctor --live` answered over HTTP without starting the browser; one match + was downloaded with no 403; the container refuses to start with `SOFASCORE_ALLOWED_HOSTS` set and + `SOFASCORE_SERVER__ALLOWED_HOSTS` not; a backup and its restore brought a trusted certificate back. The + Docker smoke test ran on the same commit. The release pull request sends no request to SofaScore. +2. **The release pull request** (#245): + - **The version.** `pyproject.toml` says `version = "3.2.0"` (the one source); the usage-error golden of the + CLI and `00-platform.md`'s Version row follow. + - **The changelog close.** `## [3.2.0] - 2026-11-20` under an empty `## [Unreleased]`: an introduction + that names the image `ghcr.io/tunjayoff/sofascore_scraper:3.2.0`, "Upgrading from 3.1" (the four names + first: what stops, what to rename to, `ssc doctor`; then `ssc doctor --live`, the certificates in + backups, the reinstall after updating a checkout), then Added, Changed (with the dependency line of #236 + to #239), Removed and Fixed. #244 and #232 to #235 have no entry, apart from #233's line under Fixed. + - **Both READMEs.** "3.2.0 is released from source", and a section "Upgrading from 3.1" / "3.1'den + yükseltme" (the renames as a table, `ssc doctor --live`, the certificates in backups) linked from the + note and the contents line; every relative link and anchor resolves. + - **The checks of release point D** (section 8): `ruff check sofascore_scraper tests scripts` clean; the full + suite with `STORE_SHADOW_CHECK=1` (9,885 passed, 40 skipped, 27 deselected); the offline browser tests + (`-m "browser and not live"`: 22 passed, 1 skipped because camoufox is not installed); the frontend + (`npm ci`, `eslint .` clean, `vitest run` 31 files and 388 tests, `npm run build`); `scripts/release.py + version`, `check-tag v3.2.0` and `notes 3.2.0`, which set no tag and push nothing. + - The check learned at point E (section 8) holds: no name stops being read in a way that weakens security + or privacy; the four names stop the app instead. +3. **The tag** is the owner's, on the merge commit of the release pull request. `release.yml` checks the tag + against `pyproject.toml`, runs CI, builds and smoke-tests the image, pushes + `ghcr.io/tunjayoff/sofascore_scraper:3.2.0` (also `3.2` and `latest`) and publishes the GitHub Release + with the source archives. There is no PyPI package; 3.2.0 installs from source, like 3.1. + +Open after 3.2.0 (the items of section 19's list that are not done, copied), in no fixed order: + +- **Team streaks that answer 200 with an empty body.** A body-aware rule for `team_streaks` is a decision + (section 13). +- **Baseball `/umpires`, `/weather`, `/comments` and `/at-bats`.** They answer 200 on finished and live + matches; slices for them are a proposal (section 13). +- **A fetch of SofaScore's odds provider listing** (B4's proposal). An optional reference fetch of + `/odds/providers/{cc}/web`, at most weekly, only when `client.odds_country` is set (never from the + machine's address), through the client and the throttle and never part of a match download, every link + field stripped before it is stored and the result merged over the built-in table; `GET /odds/providers` + would then say where each entry comes from. It needs a place in the Store for reference data. +- **A `provider_name` field in schema v1** (`Odds`, `OddsLine`). Additive, with the generated tables of + `04-schema-v1.md`; until then a consumer reads the names from `GET /odds/providers`. +- **A replacement for `stage_name` and `listed_in`.** P30 dropped only the two score columns of the events + table: schema v1 reads `stage.name` from `stage_name`, and the listing rules (staleness, the reconcile of + a season's pages, the planner's listed events) read `listed_in`. Dropping them needs a design first. +- **`sofascore_scraper/store/files.py` gets its durability from the caller.** It reads `storage.durability` + through the loader module in `sys.modules` (the Store may not import the configuration); no Store caller + has the settings today. +- **The live-match-tracker document in the explorer.** The iframe document under `/api/v1/event/{id}/live-match-tracker/` + is a Document request, outside the explorer's `Fetch` patterns, so it is sent without a slot and not + counted (one per event page). Holding Document requests in the interceptor would fix it. +- Small leftovers of P30 (section 16): a neutral `/search` for `/tournaments/search`; one `FetchPipeline` per + `DetailPhase` call instead of one session per job. The third, `ssc status --coverage` reading `summary()` + instead of `StatusService.coverage`, is **closed without a code change (2026-11-20)**: the two compute + different things. The per-tournament `coverage` of `summary()` (`TournamentCounts.coverage`) is details over + matches, the share of matches whose `/event` payload is stored, with one decimal, and `/api/v1/status` shows + the same rows, so the two faces already share one implementation. `StatusService.coverage` is the slice + report: per tournament and season, how many matches with a stored payload miss no selected slice (two + decimals) and how many miss each slice; `02-services.md` ("Coverage and the scheduler") keeps it off the + polled faces because it reads every slice row. Switching the CLI would change what `--coverage` means and + its output, and set it apart from the web. `StatusService.coverage` has no caller outside the tests now + that the old file report is gone; it stays as the service's slice report. + +New on 2026-11-14, from the work of 3.1.2 (each checked in the code at `395b6e0`), still open: + +- **The trust feature is not verified on Windows and macOS, or behind a real proxy** (#230). Its tests run + against a TLS server on the loopback address with a generated PKI, and it was run in the Docker image + (Linux). On Windows and macOS the store, the combined CA file and the probe are the same code but were + not run; with a proxy configured the probe is not made at all (`trust.proxy_configured`, reason `proxy`), + because a direct socket would bypass the proxy, so there the user must put the CA certificate into the + `ca` folder by hand, and whether curl then verifies through the proxy with the combined file was not + checked against a real one. +- **The browser part of the trust feature is Linux only** (#230). `trust.browser_supported()` is true on + Linux with `libnss3`; elsewhere the bridge browser is not given the stored certificates and uses the trust + store of the operating system (one warning in the log, a note in the UI and the CLI). Giving the browser + the store on Windows and macOS needs a mechanism per platform, or the answer that the operating system's + store is enough there. +- **No path filter in CI for documents-only changes.** `.github/workflows/ci.yml` runs on every pull + request and every push to main without a `paths` filter (only `audit.yml` and `latest-deps.yml` have one), + so a pull request that changes only `docs/` or a README runs the frontend job and the whole Python matrix. + A filter must keep the tests that read documents running (the generated tables of `04-schema-v1.md` in + `tests/test_schema_v1.py`, the DDL of `01-storage.md` in `tests/test_store_catalog.py`, the OpenAPI + snapshot, and the tests that read the READMEs, such as `tests/test_live_direct_optin.py` and + `tests/test_start_web.py`). +- **The profile list has to follow SofaScore's gate** (#227). `profiles.WANTED` is the measurement of one + day; the gate's Chrome threshold moves, and new profiles come only with a newer curl_cffi. The set-aside + keeps requests working while one profile passes, and nothing reports how many are set aside except the + log (`profiles.refused()` has no caller in a face). Open: the set-aside profiles in `/status` or + `ssc doctor`, and a routine for re-measuring the list. **The first part is done (#240, 2026-11-20; in + 3.2.0).** `GET /status` (also `/health` and `POST /status/check`) carries + `connection.profiles {total, set_aside: [{name, until_utc}]}` from `profiles.status()`, and Health shows + one line when a profile is set aside (`02-services.md` 2.4, 6; `05-web-ui.md` 6.12). Not in `ssc doctor`: + the set-aside is per process, and a doctor process starts with none. Still open: a routine for + re-measuring the list. +- **A trusted certificate has no scope and no reminder** (#230). A stored CA is trusted for every host the + HTTP client and the bridge browser connect to, and an expired one stays in the folder until the user + removes it (the list marks it `expired`). No decision asked for more. + +Not in 3.2, by decision, as for 3.1: a localized date picker (owner, 2026-10-09; the native date input +stays) and serving the web UI under a path prefix (section 17). Publishing to PyPI has no date (section 13). diff --git a/docs/design/README.md b/docs/design/README.md index 7736c310..c5a087c1 100644 --- a/docs/design/README.md +++ b/docs/design/README.md @@ -35,7 +35,7 @@ pull request. | [00-platform.md](00-platform.md) | The owner's platform design in English: decisions (with their state and the decisions taken after the draft), layers, schema v1, storage, API v1, CLI, sinks, live, security, waves. Its last section lists where the detailed designs differ from the draft | you want the goal and the fixed requirements | | [01-storage.md](01-storage.md) | The Store: what is on disk today and who touches it, the v3 layout, compression measurements, the catalog and state databases with their DDL, both layouts read side by side, `migrate`, leases and the write protocol, backup and restore | you work on anything under `DATA_DIR` | | [02-services.md](02-services.md) | The service layer and the faces: what `match_data_fetcher.py` does today, the client, the one pipeline, jobs across processes, the CLI contract, sinks and webhooks, API v1 resources, the live service, removal of the terminal UI | you work on fetching, jobs, the CLI, the API or live | -| [03-implementation-plan.md](03-implementation-plan.md) | The status of the work; one ordered plan of 97 items with lanes, dependencies, owned files, behaviour changes and briefs (each with what earlier pull requests learned about it); the dependency diagram; what can start now; release points; decisions needed; open questions; the known defects that tests pin; follow-ups and what is deliberately not planned; how 3.0.0 was released (section 18); what 3.1 has, how 3.1.0 was released, what 3.1.1 and 3.1.2 have and what is open after them (section 19) | you are about to start or review a pull request, or you want to know what is open after 3.1.2 | +| [03-implementation-plan.md](03-implementation-plan.md) | The status of the work; one ordered plan of 97 items with lanes, dependencies, owned files, behaviour changes and briefs (each with what earlier pull requests learned about it); the dependency diagram; what can start now; release points; decisions needed; open questions; the known defects that tests pin; follow-ups and what is deliberately not planned; how 3.0.0 was released (section 18); what 3.1 has, how 3.1.0 was released, what 3.1.1 and 3.1.2 have (section 19); what 3.2 has, how 3.2.0 is released and what is open after it (section 20) | you are about to start or review a pull request, or you want to know what is open after 3.2.0 | | [04-schema-v1.md](04-schema-v1.md) | The normalized schema v1, the public data contract, field by field: every record the platform gives out (Sport, Category, Tournament, Season, Participant, Event with its score by score family, Slice, Change, LiveEvent) with type, unit, null rule, source in SofaScore's payload and meaning; the odds and standings records of P28 (`Odds`, `OddsLine`, `StandingsRow`, in the generated contract since FX-21); the versioning rule; what "raw" means; the 28 decisions taken while it was written. Approved on 2026-10-02 | you consume the platform's data, or you work on the API, the exports, the sinks or a new sport | | [05-web-ui.md](05-web-ui.md) | The screens of the web UI, designed from scratch on API v1 (plan item FE-1): users, information architecture, design system, every screen with its routes and fields and states, the routes still missing with their owners, and the decisions taken. Approved by the owner on 2026-10-02 with all 22 decisions; built by FE-2 (#107, #132, #133), then reworked after a first-time-user review (FX-14a #154, FX-14b #161; the classic views removed) and given the search as the user types (FX-20 #167); its last section says what changed while it was built, with the words as built | you work on the frontend | @@ -80,7 +80,7 @@ pull request. As of 2026-11-14, after the twelfth revision (details and pull request numbers in the "Status" section at the top of `03`; the 3.0.0 release in its section 18, 3.1 and the releases 3.1.0, 3.1.1 and 3.1.2 in its -section 19): +section 19, 3.2 and the release 3.2.0 in its section 20): - **3.0.0 is released** (2026-10-08): the tag `v3.0.0` on `1c5bab2`, the GitHub Release with the source archives and checksums, and the image `ghcr.io/tunjayoff/sofascore_scraper:3.0.0`. There is no PyPI @@ -121,17 +121,24 @@ section 19): error code `certificate_changed` (#230); the kind of network failure in the connection check (#226); a second request of `ssc doctor --live` with the app's HTTP client (#228); and the browser stack `scrapling` 0.5.1, `patchright` 1.64.4, `playwright` 1.65.0 (#222). -- **Open after 3.1.2** (section 19 of `03`): removing the four deprecated names in 3.2, a rule for team - streaks that answer 200 with an empty body, baseball's umpires, weather, comments and at-bats, a fetch of - the odds providers' listing and a `provider_name` field, a replacement for the events columns `stage_name` - and `listed_in`, the Store's durability from its caller, the explorer's unthrottled live-match-tracker - document, and a few small leftovers of P30; and, new with 3.1.2: the trust feature is not verified on - Windows and macOS or behind a real proxy, its browser part is Linux only, backups do not include the `ca` - folder, `ssc doctor --live` costs a full home-page load, CI has no path filter for documents-only - changes, the profile list has to follow SofaScore's gate, and a trusted certificate has no scope and no - reminder. Closed since the eleventh revision: the four sports' slice rows (FX-36), live pages for the - evidence (FX-37) and the CI flake of the explorer's slot test (#224). - Not in 3.1: a localized date picker (owner) and the web UI under a path prefix. +- **3.2.0** (2026-11-20, release pull request #245; section 20 of `03`; the tag is the owner's, after the + merge): the four deprecated 2.x names `SOFASCORE_API_TOKEN`, `SOFASCORE_ALLOWED_HOSTS`, `USE_PROXY` and + `PROXY_URL` are no longer read, and set without their new names they stop the application (#241, owner's + decision); `ssc doctor --live` sends one request the way a download does, and the set-aside browser + profiles show in `/status` and on Health (#240); backups carry the trusted certificates (#243); unused + helpers removed (#242); every test restores the process environment (#244); dependency updates (#236 to + #239). The image is `ghcr.io/tunjayoff/sofascore_scraper:3.2.0`, from source like 3.1. +- **Open after 3.2.0** (section 20 of `03`): a rule for team streaks that answer 200 with an empty body, + baseball's umpires, weather, comments and at-bats, a fetch of the odds providers' listing and a + `provider_name` field, a replacement for the events columns `stage_name` and `listed_in`, the Store's + durability from its caller, the explorer's unthrottled live-match-tracker document, and two small + leftovers of P30; from 3.1.2: the trust feature is not verified on Windows and macOS or behind a real + proxy, its browser part is Linux only, CI has no path filter for documents-only changes, the profile + list has no routine for re-measuring it, and a trusted certificate has no scope and no reminder. Closed + in 3.2: the four deprecated names, backups without the `ca` folder, the home-page load of `ssc doctor + --live`, the set-aside profiles in no face, unused code, and the third P30 leftover (closed without a + code change). + Not in 3.1 or 3.2: a localized date picker (owner) and the web UI under a path prefix. - What a user can see: everything a download writes is in the new layout (`v3/`, 8.4 times smaller on the owner's data) and the old folders are read in place; `ssc` covers every task of the former terminal menu and of `main.py`, whose old flags are now usage errors that name their command; the web app runs on diff --git a/pyproject.toml b/pyproject.toml index 1bf162c9..4f8a5a06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sofascore-scraper" -version = "3.1.2" +version = "3.2.0" requires-python = ">=3.10" [project.optional-dependencies] diff --git a/tests/characterization/fixtures/cli/usage_errors.golden.json b/tests/characterization/fixtures/cli/usage_errors.golden.json index 5d702c96..3c0e669a 100644 --- a/tests/characterization/fixtures/cli/usage_errors.golden.json +++ b/tests/characterization/fixtures/cli/usage_errors.golden.json @@ -49,7 +49,7 @@ " \"ok\": false,", " \"command\": null,", " \"schema\": \"sofascore.cli/1\",", - " \"version\": \"3.1.2\",", + " \"version\": \"3.2.0\",", " \"error\": {", " \"code\": \"invalid_request\",", " \"message\": \"--doctor: the flags of `python main.py` were removed in 3.1 (deprecated in 3.0.0); use `ssc doctor` (`ssc --help` lists the commands)\",",