forked from kujirahand/tkeasygui-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.sh
executable file
·37 lines (29 loc) · 860 Bytes
/
package.sh
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
#!/bin/sh
set -e
echo "+--------------------------------"
echo "| package.sh"
echo "+--------------------------------"
echo "|"
echo "[Package]"
echo "https://packaging.python.org/en/latest/tutorials/packaging-projects/"
# make manual
echo "--- makedoc.sh ---"
./makedoc.sh
# clean
rm -f -r dist
rm -f -r tkeasygui.egg-info
python3 -m pip uninstall -y TkEasyGUI
# change version from pyproject.toml
python3 update_version.py
# build
echo "--- build ---"
python3 -m build
# test install
echo "--- upload test repo ---"
python3 -m twine upload --repository testpypi dist/* --verbose
echo "--- wait a moment ---"
echo "--- install test repo ---"
echo "[TRY]: python -m pip install -U --index-url https://test.pypi.org/simple/ --no-deps TkEasyGUI"
echo "** check version **"
echo "--- upload pypi ---"
echo "[TRY]: python -m twine upload dist/* --verbose"