2021-06-02 15:35:12 +03:00
|
|
|
# Generated from:
|
|
|
|
# https://github.com/zopefoundation/meta/tree/master/config/c-code
|
2015-12-14 09:22:31 +02:00
|
|
|
environment:
|
2021-06-16 12:49:23 +03:00
|
|
|
# Currently the builds use @mgedmin's Appveyor account. The PyPI token
|
|
|
|
# belongs to zope.wheelbuilder, which is managed by @mgedmin and @dataflake.
|
2022-01-24 14:03:51 +02:00
|
|
|
|
2017-01-12 09:53:38 +02:00
|
|
|
global:
|
2021-06-16 12:49:23 +03:00
|
|
|
TWINE_USERNAME: __token__
|
2017-01-12 09:53:38 +02:00
|
|
|
TWINE_PASSWORD:
|
2021-06-16 12:49:23 +03:00
|
|
|
secure: aoZC/+rvJKg8B5GMGIxd1X2q2bz7SMl8G3810BID9U8PXFqM0FbWaK9fZ9qcU0UyG2xJsK56Fb6+L6g27I0Lg8UFNhlU1zLAuMSgJQbHsqawFgSY067IdJB68pp34d/oEyxMrJvAKENHH77Fe4KGDssLlk5WnnYS3DA9b66p5imP+1DTtkq5/gMtoG4nZTBtVos7J2kkYTQ5t4BjzTQxPMC3bStNnvuuB0orX4AoCyTrOR1wdZFiNKLzbVnrJCNn24t/n3kG9WrxbnKlrbOm4A==
|
2017-01-12 09:53:38 +02:00
|
|
|
|
2016-04-15 17:14:15 +03:00
|
|
|
matrix:
|
2017-01-12 09:53:38 +02:00
|
|
|
- python: 27-x64
|
|
|
|
- python: 35-x64
|
2017-01-18 18:33:35 +02:00
|
|
|
- python: 36-x64
|
2018-08-09 21:52:35 +03:00
|
|
|
- python: 37-x64
|
2019-11-11 12:54:03 +02:00
|
|
|
- python: 38-x64
|
2020-11-05 14:30:11 +02:00
|
|
|
- python: 39-x64
|
2022-01-24 14:03:51 +02:00
|
|
|
- python: 310-x64
|
2022-11-02 12:09:27 +02:00
|
|
|
- python: 311-x64
|
2015-12-14 09:22:31 +02:00
|
|
|
|
|
|
|
install:
|
2021-06-02 15:35:12 +03:00
|
|
|
- "SET PYTHONVERSION=%PYTHON%"
|
2016-04-15 17:14:15 +03:00
|
|
|
- "SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%"
|
2019-11-11 15:53:18 +02:00
|
|
|
- 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" }
|
2016-04-15 17:14:15 +03:00
|
|
|
- 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"
|
2021-06-02 15:35:12 +03:00
|
|
|
- python -m pip install -U pip
|
|
|
|
- pip install -U setuptools wheel
|
|
|
|
- pip install -U -e .[test]
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2015-12-14 09:22:31 +02:00
|
|
|
|
2017-01-12 09:53:38 +02:00
|
|
|
build_script:
|
|
|
|
- python -W ignore setup.py -q bdist_wheel
|
2015-12-14 09:22:31 +02:00
|
|
|
|
|
|
|
test_script:
|
2020-01-20 17:11:14 +02:00
|
|
|
- python -m unittest discover -s src
|
2017-01-12 09:53:38 +02:00
|
|
|
artifacts:
|
|
|
|
- path: 'dist\*.whl'
|
|
|
|
name: wheel
|
2015-12-14 09:39:10 +02:00
|
|
|
|
2016-04-15 17:14:15 +03:00
|
|
|
deploy_script:
|
2022-01-24 14:03:51 +02:00
|
|
|
- ps: if ($env:APPVEYOR_REPO_TAG -eq $TRUE) { pip install twine; twine upload --skip-existing dist\*.whl }
|
2015-12-14 09:39:10 +02:00
|
|
|
|
2017-01-12 09:53:38 +02:00
|
|
|
deploy: on
|