diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0db9d6f..e9ee326 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: python-version: [ "3.12", "3.13", "3.14" ] steps: - + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -27,7 +27,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - python setup.py install + pip install .[test] - name: Test with pytest run: | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index eb7d872..13c5262 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ source env/bin/activate ## Install Dependencies ```bash python -m pip install --upgrade pip setuptools wheel -python setup.py install +pip install -e '.[test]' ``` ## Run Tests diff --git a/setup.py b/setup.py index 888fedf..50365cb 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,8 @@ keywords='Luno API Bitcoin Ethereum', test_suite='tests', setup_requires=['pytest-runner'], - tests_require=['pytest', 'pytest-cov', 'requests_mock'] + extras_require={ + "test": ["pytest", "pytest-cov", "requests_mock"] + }, )