From a21d7594389a5dc89fd49f18c4bfa26732037c49 Mon Sep 17 00:00:00 2001 From: Benjamin Thomas Schwertfeger Date: Fri, 19 Sep 2025 07:04:04 +0200 Subject: [PATCH] Extract dev dependencies --- .github/workflows/_codecov.yaml | 2 +- .github/workflows/_test_futures_private.yaml | 4 ++-- .github/workflows/_test_futures_public.yaml | 4 ++-- .github/workflows/_test_spot_private.yaml | 4 ++-- .github/workflows/_test_spot_public.yaml | 4 ++-- CHANGELOG.md | 9 +++++++++ Makefile | 2 +- examples/market_client_example.ipynb | 7 ++++++- pyproject.toml | 15 +-------------- requirements-dev.txt | 7 +++++++ 10 files changed, 33 insertions(+), 25 deletions(-) create mode 100644 requirements-dev.txt diff --git a/.github/workflows/_codecov.yaml b/.github/workflows/_codecov.yaml index a6adec88..b6b79a11 100644 --- a/.github/workflows/_codecov.yaml +++ b/.github/workflows/_codecov.yaml @@ -75,7 +75,7 @@ jobs: uv venv source .venv/bin/activate echo ${GITHUB_WORKSPACE}/.venv/bin >> $GITHUB_PATH - uv pip install "$(find dist -name '*.whl' | head -1)[test]" + uv pip install "$(find dist -name '*.whl' | head -1)" -r requirements-dev.txt - name: Generate coverage report env: diff --git a/.github/workflows/_test_futures_private.yaml b/.github/workflows/_test_futures_private.yaml index 96f65c19..d152cce3 100644 --- a/.github/workflows/_test_futures_private.yaml +++ b/.github/workflows/_test_futures_private.yaml @@ -81,7 +81,7 @@ jobs: uv venv source .venv/bin/activate echo ${GITHUB_WORKSPACE}/.venv/bin >> $GITHUB_PATH - uv pip install "$(find dist -name '*.whl' | head -1)[test]" + uv pip install "$(find dist -name '*.whl' | head -1)" -r requirements-dev.txt - name: Install package (Windows) if: runner.os == 'Windows' @@ -90,7 +90,7 @@ jobs: .venv\Scripts\activate.ps1 echo "$env:GITHUB_WORKSPACE\.venv\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append $wheel = (Get-ChildItem -Path dist -Filter "*.whl" | Select-Object -First 1).FullName - uv pip install "$wheel[test]" + uv pip install $wheel -r requirements-dev.txt - name: Testing Futures REST endpoints env: diff --git a/.github/workflows/_test_futures_public.yaml b/.github/workflows/_test_futures_public.yaml index 12f08bf7..db29dc1b 100644 --- a/.github/workflows/_test_futures_public.yaml +++ b/.github/workflows/_test_futures_public.yaml @@ -67,7 +67,7 @@ jobs: uv venv source .venv/bin/activate echo ${GITHUB_WORKSPACE}/.venv/bin >> $GITHUB_PATH - uv pip install "$(find dist -name '*.whl' | head -1)[test]" + uv pip install "$(find dist -name '*.whl' | head -1)" -r requirements-dev.txt - name: Install package (Windows) if: runner.os == 'Windows' @@ -76,7 +76,7 @@ jobs: .venv\Scripts\activate.ps1 echo "$env:GITHUB_WORKSPACE\.venv\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append $wheel = (Get-ChildItem -Path dist -Filter "*.whl" | Select-Object -First 1).FullName - uv pip install "$wheel[test]" + uv pip install $wheel -r requirements-dev.txt - name: Testing Futures REST endpoints run: pytest -vv -m "futures and not futures_auth and not futures_websocket" tests diff --git a/.github/workflows/_test_spot_private.yaml b/.github/workflows/_test_spot_private.yaml index 94fa43a7..209d0992 100644 --- a/.github/workflows/_test_spot_private.yaml +++ b/.github/workflows/_test_spot_private.yaml @@ -79,7 +79,7 @@ jobs: uv venv source .venv/bin/activate echo ${GITHUB_WORKSPACE}/.venv/bin >> $GITHUB_PATH - uv pip install "$(find dist -name '*.whl' | head -1)[test]" + uv pip install "$(find dist -name '*.whl' | head -1)" -r requirements-dev.txt - name: Install package (Windows) if: runner.os == 'Windows' @@ -88,7 +88,7 @@ jobs: .venv\Scripts\activate.ps1 echo "$env:GITHUB_WORKSPACE\.venv\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append $wheel = (Get-ChildItem -Path dist -Filter "*.whl" | Select-Object -First 1).FullName - uv pip install "$wheel[test]" + uv pip install $wheel -r requirements-dev.txt - name: Testing Spot REST endpoints env: diff --git a/.github/workflows/_test_spot_public.yaml b/.github/workflows/_test_spot_public.yaml index 4ded64ef..4385f1f3 100644 --- a/.github/workflows/_test_spot_public.yaml +++ b/.github/workflows/_test_spot_public.yaml @@ -68,7 +68,7 @@ jobs: uv venv source .venv/bin/activate echo ${GITHUB_WORKSPACE}/.venv/bin >> $GITHUB_PATH - uv pip install "$(find dist -name '*.whl' | head -1)[test]" + uv pip install "$(find dist -name '*.whl' | head -1)" -r requirements-dev.txt - name: Install package (Windows) if: runner.os == 'Windows' @@ -77,7 +77,7 @@ jobs: .venv\Scripts\activate.ps1 echo "$env:GITHUB_WORKSPACE\.venv\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append $wheel = (Get-ChildItem -Path dist -Filter "*.whl" | Select-Object -First 1).FullName - uv pip install "$wheel[test]" + uv pip install $wheel -r requirements-dev.txt - name: Testing Spot REST endpoints run: pytest -vv -m "spot and not spot_auth and not spot_websocket" tests diff --git a/CHANGELOG.md b/CHANGELOG.md index 0200d2ca..afb4b9f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [Unreleased](https://github.com/btschwertfeger/python-kraken-sdk/tree/HEAD) + +[Full Changelog](https://github.com/btschwertfeger/python-kraken-sdk/compare/v3.2.5...HEAD) + +Uncategorized merged pull requests: + +- Bump the github-actions group with 5 updates [\#395](https://github.com/btschwertfeger/python-kraken-sdk/pull/395) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Update project configuration [\#394](https://github.com/btschwertfeger/python-kraken-sdk/pull/394) ([btschwertfeger](https://github.com/btschwertfeger)) + ## [v3.2.5](https://github.com/btschwertfeger/python-kraken-sdk/tree/v3.2.5) (2025-09-01) [Full Changelog](https://github.com/btschwertfeger/python-kraken-sdk/compare/v3.2.4...v3.2.5) diff --git a/Makefile b/Makefile index 86dd40fe..2e1847ec 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ install: check-uv ## .PHONY: dev dev: check-uv - $(UV) pip install -e ".[test,examples,jupyter]" -r doc/requirements.txt + $(UV) pip install -e . -r requirements-dev.txt -r doc/requirements.txt ## ======= T E S T I N G ======================================================= ## test Run the unit tests diff --git a/examples/market_client_example.ipynb b/examples/market_client_example.ipynb index 129814db..e9c4b907 100644 --- a/examples/market_client_example.ipynb +++ b/examples/market_client_example.ipynb @@ -5,7 +5,12 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Plotting Market Data " + "# Plotting Market Data \n", + "\n", + "```bash\n", + "pip install matplotlib numpy pands ipykernel\n", + "python3 -m ipykernel install --user --name=kraken\n", + "```\n" ] }, { diff --git a/pyproject.toml b/pyproject.toml index 8b712997..bdf85888 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,19 +56,6 @@ Documentation = "https://python-kraken-sdk.readthedocs.io/en/stable/" Changelog = "https://github.com/btschwertfeger/python-kraken-sdk/releases" "Bug Tracker" = "https://github.com/btschwertfeger/python-kraken-sdk/issues" -[project.optional-dependencies] -test = [ - "proxy.py", - "pytest-asyncio", - "pytest-cov", - "pytest-mock", - "pytest-retry", - "pytest-timeout", - "pytest", -] -examples = ["matplotlib", "pandas", "numpy"] -jupyter = ["ipykernel"] # python3 -m ipykernel install --user --name=kraken - [project.scripts] kraken = "kraken.cli:cli" @@ -82,7 +69,7 @@ include = ["kraken*"] exclude = ["docs*", "tests*", "examples*", ".venv", ".env", ".cache", ".github"] [tool.setuptools_scm] -write_to = "src/kraken/_version.py" +version_file = "src/kraken/_version.py" version_scheme = "guess-next-dev" local_scheme = "no-local-version" diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 00000000..28831456 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,7 @@ +proxy.py +pytest +pytest-asyncio +pytest-cov +pytest-mock +pytest-retry +pytest-timeout