Skip to content

Commit 400ab44

Browse files
committed
up version procedure: push on github before pypi to benefits from tests and doc compilation.
1 parent 5975e0d commit 400ab44

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

utils/up_version.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ python3 -m pip install --upgrade ${project_root_dir}
6161

6262
(cd ${project_root_dir} && tox)
6363

64+
# Push on origin
65+
read -p "Do you want to push version '${version_name}' ? (yes/[no]) " answer
66+
if [[ "${answer}" == "y"* ]]; then
67+
git push origin
68+
git push origin ${version_name}
69+
fi
70+
6471
# Publish on pypi
6572
read -p "Do you want to publish version '${version_name}' ? (yes/[no]) " answer
6673
if [[ "${answer}" == "y"* ]]; then
@@ -71,10 +78,3 @@ if [[ "${answer}" == "y"* ]]; then
7178
python3 -m build
7279
python3 -m twine upload --repository pypi dist/*
7380
fi
74-
75-
# Push on origin
76-
read -p "Do you want to push version '${version_name}' ? (yes/[no]) " answer
77-
if [[ "${answer}" == "y"* ]]; then
78-
git push origin
79-
git push origin ${version_name}
80-
fi

0 commit comments

Comments
 (0)