Skip to content

Commit

Permalink
add test requirements as extra
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Sep 26, 2021
1 parent beccb2e commit b2a2e39
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
update: true
- run: pip install -U setuptools
if: matrix.python_version != 'msys2'
- run: pip install -e .[toml] pytest virtualenv
- run: pip install -e .[toml,test]
# pip2 is needed because Mercurial uses python2 on Ubuntu 20.04
- run: |
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
Expand All @@ -58,7 +58,7 @@ jobs:
with:
python-version: "3.6"
architecture: x64
- run: pip install -e .[toml] pytest virtualenv
- run: pip install -e .[toml,test] pytest virtualenv
- run: pytest --test-legacy testing/test_setuptools_support.py || true # ignore fail flaky on ci
check_selfinstall:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,8 @@ setuptools_scm.version_scheme =
calver-by-date = setuptools_scm.version:calver_by_date

[options.extras_require]
test =
pytest>6.3
virtualenv>20
toml =
setuptools>=45
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ deps=
pytest
setuptools >= 45
tomli
virtualenv>20
commands=
test: pytest []
selfcheck: python setup.py --version
extras =
toml



[testenv:check_readme]
skip_install=True
Expand Down

0 comments on commit b2a2e39

Please sign in to comment.