Skip to content

Commit

Permalink
devops: update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Jun 28, 2021
1 parent a02f503 commit a8b347d
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions dev/scripts/PYPI_UPLOAD.bat
Original file line number Diff line number Diff line change
@@ -1,43 +1,26 @@
:: this upload script when Anaconda is installed in the user folder.

:: to use twine I had to first set it up
:: conda install twine
:: conda update pip setuptools twine

:: make commands silent
:: To use this script: pip install twine
@echo off

:: python versionIncrease.py

:: perform a version increase
python versionIncrease.py

:: navigate to the source folder
:: navigate to the source folder and delete old builds
cd ../../src/

:: delete old builds
rmdir /S /q _build 2>nul
rmdir /S /q build 2>nul
rmdir /S /q dist 2>nul
rmdir /S /q pyabf.egg-info 2>nul

:: create your distribution
echo building distribution with setuptools...
:: create the distribution
echo ### building distribution with setuptools...
python setup.py --quiet sdist

:: upload to the test server
::twine upload --username swharden --repository-url https://test.pypi.org/legacy/ dist/*
::explorer https://test.pypi.org/project/pyabf/
echo ### press ENTER 3 times to upload...
pause
pause
pause

:: upload to real server
::echo CONTINUE TO UPLOAD TO REAL PYPI
twine upload --username swharden --repository-url https://upload.pypi.org/legacy/ dist/*
explorer https://pypi.org/project/pyabf/

:: delete old builds
rmdir /S /q _build 2>nul
rmdir /S /q build 2>nul
rmdir /S /q dist 2>nul
rmdir /S /q pyabf.egg-info 2>nul

echo COMPLETE
pause

0 comments on commit a8b347d

Please sign in to comment.