We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 769fee9 commit 9cab857Copy full SHA for 9cab857
build.sh
@@ -1,16 +1,16 @@
1
#!/bin/bash
2
3
if [[ -z "$1" ]]; then
4
- echo "Current version is missing"
5
- exit 0
6
-fi
7
-
8
-if [[ -z "$2" ]]; then
9
echo "Part is missing: major|minor|patch"
10
exit 0
11
fi
12
13
-rm -rf dist
14
-bumpversion --current-version $1 $2
+echo "Bumping version and tagging..."
+bump2version $1
+
+echo "Pushing tag..."
15
git push --tags
+echo "Building package..."
+rm -rf dist
16
python setup.py sdist bdist_wheel
publish.sh
@@ -1,3 +1,4 @@
+echo "Publishing package..."
python -m twine upload --repository pypi dist/*
0 commit comments