2022-10-16 22:24:31 +00:00
|
|
|
# tutorial:
|
|
|
|
# https://packaging.python.org/tutorials/packaging-projects/
|
|
|
|
# https://packaging.python.org/guides/supporting-windows-using-appveyor/
|
|
|
|
# https://stackoverflow.com/questions/45630032/valueerror-no-pkg-info-in-archive
|
|
|
|
|
2019-04-25 14:51:47 +00:00
|
|
|
environment:
|
2021-05-19 08:30:08 +00:00
|
|
|
APP_VERSION: '2.2'
|
2022-10-16 22:24:31 +00:00
|
|
|
# for pypi/twine
|
|
|
|
USER: '__token__'
|
|
|
|
PASS:
|
|
|
|
secure: W0Gy5WrAKN5vEEgBvcbrQREbSq5zi5l3vIUFXB6ueKq9yj6vTLuKGfyR1crLjv9G0r4qABt6ZkObVQ+tSJ/YRcokdTnV1+GEpTxbB/qe0riXO0LeoHKIxwV+oyCtVpNk9c5YmJ3eu7XHjrCLvS1LLuJuSfwylgCQ5kC60fQu8XuqDNdZbMRo0m4v+oAlMuumC1YeGcYEMQbaioz1N7ebwFmOzHoVskVo15LTHwA7s5ERRIWIP0D2z64+02hAKkKzN5d80/oBZd3uDu9d2FFS9mUeyx82KC20GqO9kO9DGWw=
|
2019-04-25 15:11:53 +00:00
|
|
|
matrix:
|
2020-05-06 18:25:03 +00:00
|
|
|
- PYTHON_VER: C:\Python27
|
2019-04-25 15:11:53 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
SETUP_COMPILER_FLAG: --compiler=mingw32
|
2020-05-06 17:31:41 +00:00
|
|
|
ARCH_BITS: 32
|
2020-05-06 18:25:03 +00:00
|
|
|
- PYTHON_VER: C:\Python35
|
2019-04-25 15:11:53 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
SETUP_COMPILER_FLAG:
|
2020-05-06 17:31:41 +00:00
|
|
|
ARCH_BITS: 32
|
2022-10-16 22:18:48 +00:00
|
|
|
- PYTHON_VER: C:\Python36
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 32
|
|
|
|
- PYTHON_VER: C:\Python36-x64
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 64
|
2020-05-06 18:25:03 +00:00
|
|
|
- PYTHON_VER: C:\Python37
|
2019-04-25 15:11:53 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
SETUP_COMPILER_FLAG:
|
2020-05-06 17:31:41 +00:00
|
|
|
ARCH_BITS: 32
|
2020-05-06 18:25:03 +00:00
|
|
|
- PYTHON_VER: C:\Python37-x64
|
2020-05-06 17:23:15 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
SETUP_COMPILER_FLAG:
|
2020-05-06 17:31:41 +00:00
|
|
|
ARCH_BITS: 64
|
2022-10-16 22:44:15 +00:00
|
|
|
- PYTHON_VER: C:\Python38
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 32
|
|
|
|
- PYTHON_VER: C:\Python38-x64
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 64
|
2021-05-19 08:34:23 +00:00
|
|
|
- PYTHON_VER: C:\Python39
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 32
|
|
|
|
- PYTHON_VER: C:\Python39-x64
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 64
|
2022-10-16 22:48:20 +00:00
|
|
|
- PYTHON_VER: C:\Python310
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 32
|
|
|
|
- PYTHON_VER: C:\Python310-x64
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 64
|
2024-03-05 22:06:03 +00:00
|
|
|
- PYTHON_VER: C:\Python311
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 32
|
|
|
|
- PYTHON_VER: C:\Python311-x64
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
|
|
|
SETUP_COMPILER_FLAG:
|
|
|
|
ARCH_BITS: 64
|
2019-04-25 14:51:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
version: '$(APP_VERSION).{build}'
|
2018-04-30 14:35:07 +00:00
|
|
|
|
2015-09-15 21:58:11 +00:00
|
|
|
install:
|
2020-05-06 18:25:03 +00:00
|
|
|
- set PATH=%PYTHON_VER%;%PYTHON_VER%\Scripts;%PATH%;C:\msys64\mingw%ARCH_BITS%\bin
|
2019-04-25 16:06:41 +00:00
|
|
|
# We need wheel installed to build wheels
|
2020-05-06 18:25:03 +00:00
|
|
|
- "%PYTHON_VER%\\python.exe -m pip install wheel"
|
2022-10-16 22:24:31 +00:00
|
|
|
- echo "using twine login %USER% %PASS%"
|
2020-05-06 18:25:03 +00:00
|
|
|
- echo %PATH%
|
|
|
|
- cc -v
|
2015-09-15 21:58:11 +00:00
|
|
|
|
2015-09-15 21:48:14 +00:00
|
|
|
build_script:
|
2016-07-31 03:03:48 +00:00
|
|
|
- cd miniupnpc
|
2018-04-26 20:49:06 +00:00
|
|
|
- appveyor AddCompilationMessage "Building miniupnpc"
|
2016-07-31 03:03:48 +00:00
|
|
|
- mingw32-make -f Makefile.mingw
|
2020-05-06 18:25:03 +00:00
|
|
|
- appveyor AddCompilationMessage "Building python module"
|
|
|
|
- mingw32-make -f Makefile.mingw pythonmodule PYTHON=%PYTHON_VER%\python
|
2018-04-26 20:35:32 +00:00
|
|
|
|
|
|
|
after_build:
|
2020-05-06 18:24:14 +00:00
|
|
|
- 7z a -x!wingenminiupnpcstrings.exe ..\miniupnpc_%ARCH_BITS%b-%APPVEYOR_BUILD_VERSION%.zip *.exe *.dll *.a *.lib
|
2018-04-26 20:35:32 +00:00
|
|
|
|
|
|
|
artifacts:
|
2020-05-06 18:24:14 +00:00
|
|
|
- path: miniupnpc*-$(appveyor_build_version).zip
|
2018-04-26 20:35:32 +00:00
|
|
|
name: miniupnpc binaries
|
2019-04-25 16:06:41 +00:00
|
|
|
- path: miniupnpc/dist/miniupnpc-*.whl
|
|
|
|
name: miniupnpc python wheel (self-contained)
|
|
|
|
- path: miniupnpc/dist/miniupnpc-*.egg
|
|
|
|
name: miniupnpc python egg (self-contained)
|
2022-10-16 22:24:31 +00:00
|
|
|
|
|
|
|
deploy_script:
|
|
|
|
- appveyor AddCompilationMessage "Deploying to PyPI"
|
|
|
|
- '%PYTHON_VER%\\python.exe -m pip install twine'
|
2024-03-05 21:53:36 +00:00
|
|
|
- '%PYTHON_VER%\\python.exe -m twine upload -u %USER% -p %PASS% --skip-existing dist/*.whl'
|