Skip to content

Commit 9cab857

Browse files
committed
Minor changes in the build process
1 parent 769fee9 commit 9cab857

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

build.sh

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

33
if [[ -z "$1" ]]; then
4-
echo "Current version is missing"
5-
exit 0
6-
fi
7-
8-
if [[ -z "$2" ]]; then
94
echo "Part is missing: major|minor|patch"
105
exit 0
116
fi
127

13-
rm -rf dist
14-
bumpversion --current-version $1 $2
8+
echo "Bumping version and tagging..."
9+
bump2version $1
10+
11+
echo "Pushing tag..."
1512
git push --tags
13+
14+
echo "Building package..."
15+
rm -rf dist
1616
python setup.py sdist bdist_wheel

publish.sh

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

3+
echo "Publishing package..."
34
python -m twine upload --repository pypi dist/*

0 commit comments

Comments
 (0)