forked from vtraag/louvain-igraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_ms.bat
49 lines (40 loc) · 1.63 KB
/
release_ms.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
IF "%1%"=="release" (
ECHO Performing a release...
:: Build for Python 2
call %userprofile%\AppData\Local\Continuum\anaconda2\Scripts\activate
python setup.py build bdist_wheel
conda config --set anaconda_upload yes
python setup.py build bdist_conda
:: Build for Python 3
call %userprofile%\AppData\Local\Continuum\anaconda3\Scripts\activate
python setup.py build bdist_wheel
conda config --set anaconda_upload yes
python setup.py build bdist_conda
:: Upload to PyPi using twine
python setup.py --fullname > PACKAGE.txt
SET /p PACKAGE=<PACKAGE.txt
DEL PACKAGE.txt
gpg --detach-sign -a dist\%PACKAGE%-cp27-cp27m-win_amd64.whl
gpg --detach-sign -a dist\%PACKAGE%-cp36-cp36m-win_amd64.whl
twine upload dist\%PACKAGE%-*win*.whl dist\%PACKAGE%-*win*.whl.asc
) ELSE (
ECHO Performing a dry-run.
:: Build for Python 2
call %userprofile%\AppData\Local\Continuum\anaconda2\Scripts\activate
python setup.py build bdist_wheel
conda config --set anaconda_upload no
python setup.py build bdist_conda
:: Build for Python 3
call %userprofile%\AppData\Local\Continuum\anaconda3\Scripts\activate
python setup.py build bdist_wheel
conda config --set anaconda_upload no
python setup.py build bdist_conda
:: Upload to PyPi using twine
python setup.py --fullname > PACKAGE.txt
SET /p PACKAGE=<PACKAGE.txt
DEL PACKAGE.txt
gpg --detach-sign -a dist\%PACKAGE%-cp27-cp27m-win_amd64.whl
gpg --detach-sign -a dist\%PACKAGE%-cp36-cp36m-win_amd64.whl
twine upload dist\%PACKAGE%-*win*.whl dist\%PACKAGE%-*win*.whl.asc -r pypitest
)