Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure appveyor uses the latest pip version
This commit solves an issue where pip ignores the version requirement for importlib-metadata when installing twine [1]. Which in turn caused our deploy-pipeline on Appveyor to fail. Essentially whats going on is that pip finds an already installed, older version (v3.4.0) of importlib-metadata when installing twine. The dependency resolver in pip, prior to version 20.3, ignores twine's minmum-requirement for importlib-metadata (v3.6.0) and keeps the old version, as can be seen from the logs of the failing build: $ IF DEFINED PYTHON pip install --upgrade twine wheel ... Requirement already satisfied, skipping upgrade: importlib-metadata; python_version < "3.8" in c:\python36\lib\site-packages (from twine) (3.4.0) ... This to-old importlib-metadata version causes twine to fail when we later try to upload the wheels to pypi. In version 20.3 pip changed the behavior of its dependency resolver, which no longer ignores the twine requirements and will in fact upgrade the importlib-metadata version when installing twine. [1] pypa/twine#729
- Loading branch information