From a8d1bf5266b857a2faccb2c97227516858c8f75c Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Sun, 10 Apr 2016 19:36:02 +0100 Subject: [PATCH] appveyor: also upload source distribution packages to Github Releases This is so that one can do: pip install --find-links https://github.com/google/brotli/releases/latest brotli on any platform, whether or not there are pre-compiled *.whl packages that match the user's python version and anchitecture (e.g. Linux). Pip automatically chooses the correct binary package, and if that isn't available the source distribution (*.tar.gz or *.zip) is downloaded. --- appveyor.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index d414425..0b60e82 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -48,8 +48,8 @@ install: # upgrade pip to avoid out-of-date warnings - "pip install --disable-pip-version-check --user --upgrade pip" - # install wheel to build compiled packages - - "pip install --upgrade wheel" + # install/upgrade setuptools and wheel to build packages + - "pip install --upgrade setuptools wheel" build: false @@ -57,12 +57,15 @@ test_script: - "%WITH_COMPILER% python setup.py build_ext test" after_test: - # if tests are successful, create binary packages for the project + # if tests are successful, create binary and source packages for the project - "%WITH_COMPILER% pip wheel -w dist ." + - "%WITH_COMPILER% python setup.py sdist --formats=gztar,zip" artifacts: # archive the generated packages in the ci.appveyor.com build report - - path: dist\* + - path: dist\*.whl + - path: dist\*.zip + - path: dist\*.tar.gz # For info, see: http://www.appveyor.com/docs/deployment/github