Skip to content

Commit

Permalink
Create deploy-pypi.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuarte47 committed Dec 27, 2024
1 parent f6628c2 commit 855da17
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions scripts/deploy-pypi.bat
Original file line number Diff line number Diff line change
@@ -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 ===========================================================================

0 comments on commit 855da17

Please sign in to comment.