Skip to content

Commit ccad2d2

Browse files
committed
Add scripts to help setup/release
1 parent b438f2a commit ccad2d2

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

script/bootstrap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
# Resolve all dependencies that the application requires to run.
3+
4+
# Stop on errors
5+
set -e
6+
7+
cd "$(dirname "$0")/.."
8+
9+
echo "Installing test and release dependencies..."
10+
python3 -m pip install pylint flake8 pydocstyle twine

script/release

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
# Pushes a new version to PyPi.
3+
4+
cd "$(dirname "$0")/.."
5+
6+
rm -rf dist
7+
python3 setup.py sdist
8+
python3 -m twine upload dist/* --skip-existing

script/setup

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
# Setups the repository.
3+
4+
# Stop on errors
5+
set -e
6+
7+
cd "$(dirname "$0")/.."
8+
script/bootstrap
9+
10+
pip3 install -e .

0 commit comments

Comments
 (0)