Skip to content

Commit 032898f

Browse files
committed
<Enhancement>[UnitTest]: Update scripts
Move scripts to 'scripts' directory [#64]
1 parent 1e401ca commit 032898f

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

cleanup.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
#!/bin/bash
1+
2+
function changeToProjectRoot {
3+
4+
export areHere=`basename ${PWD}`
5+
if [[ ${areHere} = "scripts" ]]; then
6+
cd ..
7+
fi
8+
}
9+
10+
changeToProjectRoot
211

312
rm -rf dist build python3_albow.egg-info

packageme.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
#
33
# Assumes python 3 is on PATH
44
#
5+
6+
function changeToProjectRoot {
7+
8+
export areHere=`basename ${PWD}`
9+
if [[ ${areHere} = "scripts" ]]; then
10+
cd ..
11+
fi
12+
}
13+
14+
changeToProjectRoot
15+
516
clear
617

718
source venv-albow-Python-3.8.5/bin/activate

pushtoprod.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/bin/bash
22

3-
source venv-albow-Python-3.8.5/bin/activate
4-
53
twine upload dist/*
64

7-
deactivate

pushtotest.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
#!/bin/bash
22

3-
source venv-albow-Python-3.8.5/bin/activate
4-
53
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
6-
7-
deactivate

0 commit comments

Comments
 (0)