From 855da170a92533d4db082f70b1e5a67592996464 Mon Sep 17 00:00:00 2001 From: Alvaro Huarte Date: Fri, 27 Dec 2024 20:25:50 +0100 Subject: [PATCH] Create deploy-pypi.bat --- scripts/deploy-pypi.bat | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 scripts/deploy-pypi.bat diff --git a/scripts/deploy-pypi.bat b/scripts/deploy-pypi.bat new file mode 100644 index 0000000..30135bc --- /dev/null +++ b/scripts/deploy-pypi.bat @@ -0,0 +1,28 @@ + +SET APP_SCRIPT_PATH=%~dp0 +IF %APP_SCRIPT_PATH:~-1%==\ SET APP_SCRIPT_PATH=%APP_SCRIPT_PATH:~0,-1% +SET PACKAGE_FOLDER=%APP_SCRIPT_PATH%/../geodataflow + +REM =========================================================================== +REM Upload installers + +@echo OFF +FOR /d /r "%PACKAGE_FOLDER%" %%d IN (__pycache__) DO @IF EXIST "%%d" rmdir /s /q "%%d" +@echo OFF + +@echo INFO: Uploading installers + +REM TEST: +REM twine upload -r testpypi "%PACKAGE_FOLDER%/core/dist/*" +REM twine upload -r testpypi "%PACKAGE_FOLDER%/spatial/dist/*" +REM twine upload -r testpypi "%PACKAGE_FOLDER%/dataframes/dist/*" +REM twine upload -r testpypi "%PACKAGE_FOLDER%/api/dist/*" +REM twine upload -r testpypi "%PACKAGE_FOLDER%/all/dist/*" + +twine upload -r pypi "%PACKAGE_FOLDER%/core/dist/*" +twine upload -r pypi "%PACKAGE_FOLDER%/spatial/dist/*" +twine upload -r pypi "%PACKAGE_FOLDER%/dataframes/dist/*" +twine upload -r pypi "%PACKAGE_FOLDER%/api/dist/*" +twine upload -r pypi "%PACKAGE_FOLDER%/all/dist/*" + +REM ===========================================================================