-
Notifications
You must be signed in to change notification settings - Fork 4
/
upload.bash
executable file
·41 lines (35 loc) · 1.03 KB
/
upload.bash
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
#!/bin/bash
echo ""
echo ">>> clearing old build output"
rm -rf dist build *.egg-info
echo ""
echo ">>> init for source distribution"
echo ""
python3 setup.py sdist bdist_wheel
# MANUAL STEP: python setup.py register -r https://testpypi.python.org/pypi # *** for TESTPYPI # ***
# MANUAL STEP: python setup.py register
# true => use testpypi (for practice)
# false => use pypi (the real one)
if false; then # use 'true' or 'false' (no quotes)
# for testing until you get it right
echo ""
echo ">>> uploading data *** USING TESTPYPI ***"
echo ""
python3 -m twine upload dist/* -r testpypi
echo ""
echo ">>> to install, perform:"
echo ""
echo ">>> sudo pip install -i https://testpypi.python.org/pypi 'pcapng==1.2.3' # *** use new version number *** "
echo ""
else
# normal production path
echo ""
echo ">>> uploading data to pypi.org"
echo ""
python3 -m twine upload dist/*
echo ""
echo ">>> to install, perform:"
echo ""
echo " sudo pip install --upgrade pcapng"
echo ""
fi