-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathupload_pip.bat
37 lines (28 loc) · 1.14 KB
/
upload_pip.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
#@echo off
echo =====================================================================================
echo PIP build
echo =====================================================================================
REM https://packaging.python.org/tutorials/packaging-projects/
cd C:\Users\hans\OneDrive\Python3\packages\cdxbasics
if exist dist rmdir /Q /S dist
mkdir dist
call conda activate base
call pip install -q twine
call python pip_modify_setup.py
call python setup.py sdist bdist_wheel
call python -m twine upload dist\*
rmdir /Q /S dist
pip install --upgrade cdxbasics
echo =====================================================================================
echo GIT upload
echo =====================================================================================
echo GIT upload
python git_message.py >.tmp.txt
set /p MESSAGE=< .tmp.txt
del /q .tmp.txt
REM echo Python test showed %MESSAGE%
git commit -a -m "%MESSAGE%"
git push
echo =====================================================================================
echo cdxbasics pip, conda, git done
echo =====================================================================================