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

Don't run python 2.7 virtualenv tests for newer versions of virtualenv #702

Merged
merged 7 commits into from Apr 22, 2023

Conversation

crwilcox
Copy link
Collaborator

@crwilcox crwilcox commented Apr 22, 2023

fixes #701

Newer virtualenv versions have dropped py2.7 support.

@alex
Copy link

alex commented Apr 22, 2023

Looks like it's still sad about coverage :-(

@crwilcox crwilcox removed the request for review from cjolowicz April 22, 2023 18:29
@crwilcox crwilcox merged commit 0dd1a51 into wntrblm:main Apr 22, 2023
18 checks passed
@crwilcox crwilcox deleted the exclude-27-modern-virtualenv branch April 22, 2023 18:31

import nox.virtualenv

IS_WINDOWS = nox.virtualenv._SYSTEM == "Windows"
HAS_CONDA = shutil.which("conda") is not None
RAISE_ERROR = "RAISE_ERROR"
VIRTUALENV_VERSION = virtualenv.version.version
Copy link

@stefanor stefanor May 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's only available in recent versions of virtualenv, using hatch-vcs.

A quick dig didn't show me exactly what made it change, but in older versions, the path was: virtualenv.__version__ (which is still available today)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Address test breakage, virtualenv >= 20.22.0 , python 2 support removal
3 participants