Skip to content

Upgrade to the latest virtualenv in AppVeyor - #34

Merged
miketheman merged 1 commit into
miketheman:masterfrom
atugushev:upgrade-appveyor-venv-32
Nov 2, 2019
Merged

miketheman merged 1 commit into
miketheman:masterfrom
atugushev:upgrade-appveyor-venv-32

Conversation

@atugushev

@atugushev atugushev commented Oct 30, 2019 •

Copy link
Copy Markdown
Contributor

The problem

The problem is tox uses an old virtualenv from site-packages, see the log in the last build:

48 Requirement already satisfied: virtualenv>=14.0.0 in c:\python27\lib\site-packages (from tox) (15.0.1)

and this virtualenv has installed pip==8.1.1 inside, see the warning:

110 You are using pip version 8.1.1, however version 19.2.3 is available.
111 You should consider upgrading via the 'python -m pip install --upgrade pip' command.

which can't handle the enviroment markers (PEP 496) properly. The support of environment markers was introduced/fixed in pip==8.1.2 (see the release notes), that's why pip is complaining:

109 RequirementParseError: Expected ',' or end-of-list in pathlib2>=2.2.0;python_version<"3.6" at ;python_version<"3.6"

Solution

The solution is to upgrade virtualenv to the latest version, which has a fresh pip.

Additional context

I presume the issue has appeared since pytest dropped the python 2 support and started to use env markers to support 4.X (python2/3) and 5.X (python 3 only) versions.

Fixes #32.

@qlty-cloud-legacy

Copy link
Copy Markdown

Code Climate has analyzed commit 724c3e7 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 95.0% (0.0% change).

View more on Code Climate.

@miketheman
miketheman merged commit 262513b into miketheman:master Nov 2, 2019
@miketheman

Copy link
Copy Markdown
Owner

Thanks @atugushev ! Nice work digging in and finding the fix.

@miketheman miketheman self-assigned this Nov 2, 2019
@atugushev
atugushev deleted the upgrade-appveyor-venv-32 branch November 2, 2019 13:28
@atugushev

Copy link
Copy Markdown
Contributor Author

@miketheman, thanks for merging this! 🎉

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Appveyor testing has gone awry

2 participants