Skip to content

Commit

Permalink
dependency management
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Dec 18, 2023
1 parent 9852ef4 commit b7f0f1f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/_test_futures_private.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/_test_futures_public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/_test_spot_private.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/_test_spot_public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ classifiers = [
dev = [
# building
"build",
# testing
"pytest",
"pytest-cov",
"pytest-mock",
# documentation
"sphinx",
"sphinx-rtd-theme",
Expand All @@ -60,6 +56,7 @@ dev = [
"ruff",
"pylint",
]
test = ["pytest", "pytest-cov", "pytest-mock"]
examples = ["matplotlib"]

[tool.setuptools]
Expand Down

0 comments on commit b7f0f1f

Please sign in to comment.