From b7f0f1fa0c09b8a2a6a51d0a1096bfb2a93f27f6 Mon Sep 17 00:00:00 2001 From: Benjamin Thomas Schwertfeger Date: Mon, 18 Dec 2023 10:23:02 +0100 Subject: [PATCH] dependency management --- .github/workflows/_codecov.yaml | 2 +- .github/workflows/_test_futures_private.yaml | 5 ++--- .github/workflows/_test_futures_public.yaml | 5 ++--- .github/workflows/_test_spot_private.yaml | 5 ++--- .github/workflows/_test_spot_public.yaml | 5 ++--- Makefile | 2 +- pyproject.toml | 5 +---- 7 files changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/_codecov.yaml b/.github/workflows/_codecov.yaml index 79b8e933..5fd82f01 100644 --- a/.github/workflows/_codecov.yaml +++ b/.github/workflows/_codecov.yaml @@ -54,7 +54,7 @@ jobs: run: python -m pip install --upgrade pip - name: Install package - run: python -m pip install ".[dev]" + run: python -m pip install ".[test]" - name: Generate coverage report env: diff --git a/.github/workflows/_test_futures_private.yaml b/.github/workflows/_test_futures_private.yaml index ca4d966a..a3d34280 100644 --- a/.github/workflows/_test_futures_private.yaml +++ b/.github/workflows/_test_futures_private.yaml @@ -43,13 +43,12 @@ jobs: with: python-version: ${{ inputs.python-version }} - - name: Install dependencies + - name: Update Pip run: | python -m pip install --upgrade pip - python -m pip install pytest pytest-mock - name: Install package - run: python -m pip install . + run: python -m pip install ".[test]" ## Unit tests of the private Futures REST clients and endpoints ## diff --git a/.github/workflows/_test_futures_public.yaml b/.github/workflows/_test_futures_public.yaml index 01cf174c..0b55aac0 100644 --- a/.github/workflows/_test_futures_public.yaml +++ b/.github/workflows/_test_futures_public.yaml @@ -33,13 +33,12 @@ jobs: with: python-version: ${{ inputs.python-version }} - - name: Install dependencies + - name: Update Pip run: | python -m pip install --upgrade pip - python -m pip install pytest pytest-mock - name: Install package - run: python -m pip install . + run: python -m pip install ".[test]" ## Unit tests of the public Futures REST clients and endpoints ## diff --git a/.github/workflows/_test_spot_private.yaml b/.github/workflows/_test_spot_private.yaml index b61c0253..c7d77680 100644 --- a/.github/workflows/_test_spot_private.yaml +++ b/.github/workflows/_test_spot_private.yaml @@ -40,13 +40,12 @@ jobs: with: python-version: ${{ inputs.python-version }} - - name: Install dependencies + - name: Update Pip run: | python -m pip install --upgrade pip - python -m pip install pytest pytest-mock - name: Install package - run: python -m pip install . + run: python -m pip install ".[test]" ## Unit tests of private Spot REST clients and endpoints ## diff --git a/.github/workflows/_test_spot_public.yaml b/.github/workflows/_test_spot_public.yaml index 82cd5ae5..b221527b 100644 --- a/.github/workflows/_test_spot_public.yaml +++ b/.github/workflows/_test_spot_public.yaml @@ -33,13 +33,12 @@ jobs: with: python-version: ${{ inputs.python-version }} - - name: Install dependencies + - name: Update Pip run: | python -m pip install --upgrade pip - python -m pip install pytest pytest-mock - name: Install package - run: python -m pip install . + run: python -m pip install ".[test]" ## Unit tests of the public Spot REST clients and endpoints ## diff --git a/Makefile b/Makefile index 8e943ebe..504c2ef0 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ install: ## .PHONY: dev dev: - $(PYTHON) -m pip install -e ".[dev]" + $(PYTHON) -m pip install -e ".[dev,test]" ## ======= T E S T I N G ======= ## test Run the unit tests diff --git a/pyproject.toml b/pyproject.toml index 86243658..1fad3ffc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,10 +44,6 @@ classifiers = [ dev = [ # building "build", - # testing - "pytest", - "pytest-cov", - "pytest-mock", # documentation "sphinx", "sphinx-rtd-theme", @@ -60,6 +56,7 @@ dev = [ "ruff", "pylint", ] +test = ["pytest", "pytest-cov", "pytest-mock"] examples = ["matplotlib"] [tool.setuptools]