summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: f81d541f643d513d44adca47ceccccc044c5d697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/c-code
environment:
  # Currently the builds use @mgedmin's Appveyor account.  The PyPI token
  # belongs to zope.wheelbuilder, which is managed by @mgedmin and @dataflake.
  
  global:
    TWINE_USERNAME: __token__
    TWINE_PASSWORD:
      secure: aoZC/+rvJKg8B5GMGIxd1X2q2bz7SMl8G3810BID9U8PXFqM0FbWaK9fZ9qcU0UyG2xJsK56Fb6+L6g27I0Lg8UFNhlU1zLAuMSgJQbHsqawFgSY067IdJB68pp34d/oEyxMrJvAKENHH77Fe4KGDssLlk5WnnYS3DA9b66p5imP+1DTtkq5/gMtoG4nZTBtVos7J2kkYTQ5t4BjzTQxPMC3bStNnvuuB0orX4AoCyTrOR1wdZFiNKLzbVnrJCNn24t/n3kG9WrxbnKlrbOm4A==

  matrix:
    - python: 37-x64
    - python: 38-x64
    - python: 39-x64
    - python: 310-x64
    - python: 311-x64
    # `multibuild` cannot install non-final versions as they are not on
    # ftp.python.org, so we skip Python 3.11 until its final release:
    # - python: 312-x64

install:
  - "SET PYTHONVERSION=%PYTHON%"
  - "SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%"
  - ps: |
      $env:PYTHON = "C:\\Python${env:PYTHON}"
      if (-not (Test-Path $env:PYTHON)) {
        curl -o install_python.ps1 https://raw.githubusercontent.com/matthew-brett/multibuild/11a389d78892cf90addac8f69433d5e22bfa422a/install_python.ps1
        .\install_python.ps1
      }
  - ps: if (-not (Test-Path $env:PYTHON)) { throw "No $env:PYTHON" }
  - echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat"
  - python -m pip install -U pip
  - pip install -U setuptools wheel
  - pip install -U -e .[test]

matrix:
  fast_finish: true

build_script:
  - python -W ignore setup.py -q bdist_wheel

test_script:
  - python -m unittest discover -s src
artifacts:
  - path: 'dist\*.whl'
    name: wheel

deploy_script:
  - ps: if ($env:APPVEYOR_REPO_TAG -eq $TRUE) { pip install twine; twine upload --skip-existing dist\*.whl }

deploy: on