Skip to content

Commit f766556

Browse files
committed
adding build.sh
1 parent 7635f0c commit f766556

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ __pycache__/
1919
.tox
2020
.cache
2121

22-
build.sh

build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# builds our packages for pypi
4+
5+
source env/bin/activate
6+
pip install -r requirements.txt
7+
8+
echo "Removing any previous build dir..."
9+
rm -rf build
10+
echo "Removing any previous dist dir..."
11+
rm -rf dist
12+
13+
echo "Building for python 2.x..."
14+
python setup.py sdist bdist_wheel
15+
echo "Building for python 3.x..."
16+
/usr/local/bin/python3.5 setup.py sdist bdist_wheel
17+
18+
echo "Running twine upload..."
19+
twine upload dist/*

0 commit comments

Comments
 (0)