2 # Heavily inspired by Oliver Grisel's appveyor-demo (https://github.com/ogrisel/python-appveyor-demo)
3 version: '{branch}-{build}'
6 - '%LOCALAPPDATA%\pip\Cache'
16 PYTHON_HOME: "C:\\Python27"
20 PYTHON_HOME: "C:\\Python36"
24 PYTHON_HOME: "C:\\Python36-x64"
28 PYTHON_HOME: "C:\\Python37"
32 PYTHON_HOME: "C:\\Python37-x64"
36 PYTHON_HOME: "C:\\Python38"
40 PYTHON_HOME: "C:\\Python38-x64"
41 - TOXENV: "py27-flake8"
44 PYTHON_HOME: "C:\\Python27"
45 - TOXENV: "py38-flake8"
48 PYTHON_HOME: "C:\\Python38-x64"
51 # Ensure we use the right python version
52 - "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
53 - "SET TOXPYTHON=%PYTHON_HOME%\\python.exe"
55 - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
56 - "python -m pip install --upgrade \"pip<21\" \"setuptools<44\""
57 - "pip install --upgrade \"tox<3.1\" ppu"
60 # No build step - we don't have C extensions
67 - "scripts\\remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"