Преглед на файлове

Finalize Windows build/release code (closes #95)

tags/v0.4.1
Ben Kurtovic преди 9 години
родител
ревизия
8ae14ab3ad
променени са 3 файла, в които са добавени 8 реда и са изтрити 13 реда
  1. +7
    -1
      appveyor.yml
  2. +1
    -8
      scripts/release.sh
  3. +0
    -4
      scripts/win_wrapper.cmd

+ 7
- 1
appveyor.yml Целия файл

@@ -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"
@@ -41,7 +44,7 @@ environment:
PYTHON_ARCH: "64"

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

build_script:
- "%SETUPPY% build"
@@ -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\*



+ 1
- 8
scripts/release.sh Целия файл

@@ -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
@@ -164,7 +158,6 @@ update_changelog
update_docs_changelog
do_git_stuff
upload_to_pypi
windows_build
post_release
test_release



+ 0
- 4
scripts/win_wrapper.cmd Целия файл

@@ -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
)

Зареждане…
Отказ
Запис