diff --git a/.github/workflows/_codecov.yaml b/.github/workflows/_codecov.yaml index a6adec8..b6b79a1 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 96f65c1..d152cce 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 12f08bf..db29dc1 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 94fa43a..209d099 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 4ded64e..4385f1f 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 0200d2c..afb4b9f 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 86dd40f..2e1847e 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 129814d..e9c4b90 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 8b71299..bdf8588 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 0000000..2883145 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,7 @@ +proxy.py +pytest +pytest-asyncio +pytest-cov +pytest-mock +pytest-retry +pytest-timeout