Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
fix windows scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Oct 9, 2017
1 parent 2700848 commit ceb6bb7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/pyquickhelper/pycode/windows_scripts.py
Expand Up @@ -249,7 +249,7 @@ def _sversion():
%pythonexe% %current%setup.py write_version %pythonexe% %current%setup.py write_version
if %errorlevel% neq 0 exit /b %errorlevel% if %errorlevel% neq 0 exit /b %errorlevel%
@echo ################# VERSION @echo ################# VERSION
more version.txt more %~dp0..\\version.txt
if %errorlevel% neq 0 exit /b %errorlevel% if %errorlevel% neq 0 exit /b %errorlevel%
@echo ################# VERSION @echo ################# VERSION
Expand Down Expand Up @@ -298,8 +298,10 @@ def _sversion():
@echo ~CALL %pythonexe% %current%setup.py sdist %2 --formats=gztar,zip --verbose @echo ~CALL %pythonexe% %current%setup.py sdist %2 --formats=gztar,zip --verbose
%pythonexe% %current%setup.py sdist %2 --formats=gztar,zip --verbose %pythonexe% %current%setup.py sdist %2 --formats=gztar,zip --verbose
if %errorlevel% neq 0 exit /b %errorlevel% if %errorlevel% neq 0 exit /b %errorlevel%
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py bdist_wheel %2 @echo ~CALL %pythonexe% %current%setup.py bdist_wheel %2
%pythonexe% %current%setup.py bdist_wheel %2 %pythonexe% %current%setup.py bdist_wheel %2
popd
if %errorlevel% neq 0 exit /b %errorlevel% if %errorlevel% neq 0 exit /b %errorlevel%
""" + copy_to_pypiserver """ + copy_to_pypiserver


Expand All @@ -316,17 +318,25 @@ def _sversion():
@echo ~CALL %pythonexe% %current%setup.py clean_pyd @echo ~CALL %pythonexe% %current%setup.py clean_pyd
%pythonexe% %current%setup.py clean_pyd %pythonexe% %current%setup.py clean_pyd
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py sdist --formats=gztar,zip --verbose @echo ~CALL %pythonexe% %current%setup.py sdist --formats=gztar,zip --verbose
%pythonexe% %current%setup.py sdist --formats=gztar,zip --verbose %pythonexe% %current%setup.py sdist --formats=gztar,zip --verbose
popd
if %errorlevel% neq 0 exit /b %errorlevel% if %errorlevel% neq 0 exit /b %errorlevel%
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py bdist_wininst --plat-name=win-amd64 @echo ~CALL %pythonexe% %current%setup.py bdist_wininst --plat-name=win-amd64
%pythonexe% %current%setup.py bdist_wininst --plat-name=win-amd64 %pythonexe% %current%setup.py bdist_wininst --plat-name=win-amd64
popd
if %errorlevel% neq 0 exit /b %errorlevel% if %errorlevel% neq 0 exit /b %errorlevel%
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py bdist_msi @echo ~CALL %pythonexe% %current%setup.py bdist_msi
%pythonexe% %current%setup.py bdist_msi %pythonexe% %current%setup.py bdist_msi
popd
if %errorlevel% neq 0 exit /b %errorlevel% if %errorlevel% neq 0 exit /b %errorlevel%
pushd %current%
@echo ~CALL %pythonexe% %current%setup.py bdist_wheel @echo ~CALL %pythonexe% %current%setup.py bdist_wheel
%pythonexe% %current%setup.py bdist_wheel %pythonexe% %current%setup.py bdist_wheel
popd
if %errorlevel% neq 0 exit /b %errorlevel% if %errorlevel% neq 0 exit /b %errorlevel%
@echo #######################################################7 @echo #######################################################7
Expand Down Expand Up @@ -422,16 +432,20 @@ def _sversion():
%pythonexe% %current%setup.py rotate --match=.tar.gz --keep=10 %pythonexe% %current%setup.py rotate --match=.tar.gz --keep=10
%pythonexe% %current%setup.py rotate --match=.whl --keep=10 %pythonexe% %current%setup.py rotate --match=.whl --keep=10
rem %pythonexe% %current%setup.py sdist register rem %pythonexe% %current%setup.py sdist register
pushd %current%
%pythonexe% %current%setup.py sdist --formats=gztar upload %pythonexe% %current%setup.py sdist --formats=gztar upload
%pythonexe% %current%setup.py bdist_wheel upload %pythonexe% %current%setup.py bdist_wheel upload
popd
""" """


################# #################
#: publish the documentation #: publish the documentation
################# #################
windows_publish_doc = """ windows_publish_doc = """
@echo SCRIPT: windows_publish_doc @echo SCRIPT: windows_publish_doc
pushd %current%
%pythonexe% -u %current%setup.py upload_docs --upload-dir=dist/html %pythonexe% -u %current%setup.py upload_docs --upload-dir=dist/html
popd
""" """


################# #################
Expand Down

0 comments on commit ceb6bb7

Please sign in to comment.