From 6a2e7261efc35d35859c1a5cffd76c284e08aa5e Mon Sep 17 00:00:00 2001 From: FaustoS88 Date: Sat, 14 Mar 2026 10:53:48 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20add=20PyPI=20release=20workflow=20?= =?UTF-8?q?=E2=80=94=20publishes=20on=20v*=20tag=20push?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ CHANGELOG.md | 4 +++- pyproject.toml | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0f6e956 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release + +on: + push: + tags: + - "v*" + +jobs: + release: + name: Build and publish to PyPI + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install build dependencies + run: pip install build + + - name: Build sdist and wheel + run: python -m build + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index c80268d..245821f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,11 +16,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). --- -## [0.1.0] — 2026-03-06 +## [0.1.0] — 2026-03-14 ### Added +- `KuCoinProvider` — public REST API, no key, `BASE-QUOTE` symbol normalisation, all intervals, 1500 bars - `KrakenProvider` — public REST API for crypto OHLCV, no key required; BTC→XBT symbol mapping; all standard intervals - `CoinGeckoProvider` — crypto OHLCV with no API key; 4h and 1d granularity via auto-detection +- GitHub Actions release workflow — publishes to PyPI on `v*` tag push ### Fixed - Logging added to registry fallback chain — silent `None` returns now emit `debug`/`warning` diagnostics diff --git a/pyproject.toml b/pyproject.toml index 6553fed..003f2f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ dependencies = [ [project.optional-dependencies] tiingo = ["requests>=2.31"] finnhub = ["finnhub-python>=2.4"] -dev = ["pytest>=8", "pytest-asyncio>=0.23", "ruff>=0.4", "aioresponses>=0.7"] +dev = ["pytest>=8", "pytest-asyncio>=0.23", "ruff>=0.4", "aioresponses>=0.7", "build>=1.0"] [project.scripts] ohlcv = "ohlcv_hub.cli:main"