Skip to content

Commit

Permalink
Finalize Windows build/release code (closes #95)
Browse files Browse the repository at this point in the history
  • Loading branch information
earwig committed Jul 30, 2015
1 parent 480f70f commit 8ae14ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
8 changes: 7 additions & 1 deletion appveyor.yml
Expand Up @@ -14,6 +14,9 @@ environment:
WRAPPER: "cmd /E:ON /V:ON /C .\\scripts\\win_wrapper.cmd"
PIP: "%WRAPPER% %PYTHON%\\Scripts\\pip.exe"
SETUPPY: "%WRAPPER% %PYTHON%\\python setup.py --with-extension"
PYPI_USERNAME: "earwigbot"
PYPI_PASSWORD:
secure: gOIcvPxSC2ujuhwOzwj3v8xjq3CCYd8keFWVnguLM+gcL0e02qshDHy7gwZZwj0+

matrix:
- PYTHON: "C:\\Python27"
Expand Down Expand Up @@ -41,7 +44,7 @@ environment:
PYTHON_ARCH: "64"

install:
- "%PIP% install wheel"
- "%PIP% install wheel twine"

build_script:
- "%SETUPPY% build"
Expand All @@ -52,6 +55,9 @@ test_script:
after_test:
- "%SETUPPY% bdist_wheel"

on_success:
- "twine upload dist\\* -u %PYPI_USERNAME% -p %PYPI_PASSWORD%"

artifacts:
- path: dist\*

Expand Down
9 changes: 1 addition & 8 deletions scripts/release.sh
Expand Up @@ -80,18 +80,12 @@ upload_to_pypi() {
echo " done."
}

windows_build() {
echo "PyPI: building/uploading Windows binaries..."
echo "*** Run in Windows: ./scripts/win_build.py"
echo "*** Press enter when done."
read
}

post_release() {
echo
echo "*** Release completed."
echo "*** Update: https://github.com/earwig/mwparserfromhell/releases/tag/v$VERSION"
echo "*** Verify: https://pypi.python.org/pypi/mwparserfromhell"
echo "*** Verify: https://ci.appveyor.com/project/earwig/mwparserfromhell"
echo "*** Verify: https://mwparserfromhell.readthedocs.org"
echo "*** Press enter to sanity-check the release."
read
Expand Down Expand Up @@ -164,7 +158,6 @@ update_changelog
update_docs_changelog
do_git_stuff
upload_to_pypi
windows_build
post_release
test_release

Expand Down
4 changes: 0 additions & 4 deletions scripts/win_wrapper.cmd
Expand Up @@ -33,15 +33,11 @@ IF %MAJOR_PYTHON_VERSION% == "2" (
)

IF "%PYTHON_ARCH%"=="64" (
ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture
SET DISTUTILS_USE_SDK=1
SET MSSdk=1
"%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WINDOWS_SDK_VERSION%
"%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release
ECHO Executing: %COMMAND_TO_RUN%
call %COMMAND_TO_RUN% || EXIT 1
) ELSE (
ECHO Using default MSVC build environment for 32 bit architecture
ECHO Executing: %COMMAND_TO_RUN%
call %COMMAND_TO_RUN% || EXIT 1
)

0 comments on commit 8ae14ab

Please sign in to comment.