-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
126 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
:: 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 | ||
@echo off | ||
|
||
:: activate anaconda (home) | ||
echo. | ||
echo activating Anaconda in user folder... | ||
set root=C:\%HOMEPATH%\Anaconda3 | ||
call %root%\Scripts\activate.bat %root% | ||
|
||
:: activate anaconda (work) | ||
echo. | ||
echo activating Anaconda in AppData... | ||
set root=%HOMEPATH%\AppData\Local\Continuum\Anaconda3 | ||
call %root%\Scripts\activate.bat %root% | ||
|
||
echo. | ||
echo testing activation by running conda... | ||
call conda -V | ||
|
||
echo. | ||
echo press ENTER to continue if one activation worked! | ||
PAUSE | ||
|
||
:: perform a version increase | ||
python versionIncrease.py | ||
|
||
:: navigate to the source folder | ||
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... | ||
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/ | ||
|
||
:: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters