Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use virtualenv less than version 20.22.0 to allow py27 unit tests to work #168

Merged
merged 2 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/tox_lsr/config_files/tox-default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ envlist =
ansible-test, woke, codeql
skipsdist = true
skip_missing_interpreters = true
# tox40 with latest venv doesn't work with py27 - cannot find interpreter
# drop this once we can drop any/all support of py27
requires = virtualenv<20.22.0

[lsr_config]
commands_pre =
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/test_tox_merge_ini/result.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
envlist = mycustom1,mycustom2
skipsdist = false
skip_missing_interpreters = true
requires = virtualenv<20.22.0
sdistsrc = /tmp/somedir

[lsr_config]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ deps =
tox30: tox==3.*
py27: mock
commands =
{env:SAFETY_CMD:safety} check -i 67599 -i 68477 -i 62044 -i 58755 -i 52495 -i 47833 -i 42559 -i 42218 -i 40291 -i 38765 -i 39611 -i 44492 -i 51457 -i 51499 --full-report # ignore pip, PyYAML problems
{env:SAFETY_CMD:safety} check -i 70612 -i 67599 -i 68477 -i 62044 -i 58755 -i 52495 -i 47833 -i 42559 -i 42218 -i 40291 -i 38765 -i 39611 -i 44492 -i 51457 -i 51499 --full-report # ignore pip, PyYAML problems
pytest --cov=tox_lsr --cov-report=term-missing tests
{env:COVERALLS_CMD:coveralls --output={envname}-coverage.txt}

Expand Down
Loading