We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d5084f commit aa01381Copy full SHA for aa01381
publish_package.sh
@@ -4,26 +4,18 @@
4
5
set -eux
6
7
-
8
-# choose python version
9
-echo python version is $PYTHON_VERSION
10
-VIRTUALENV="virtualenv --python=/usr/bin/python$PYTHON_VERSION"
11
-PIP="pip$PYTHON_VERSION"
12
13
14
# prepare environment
15
-VENV_PATH=/tmp/testgres_venv
16
-rm -rf $VENV_PATH
17
-$VIRTUALENV $VENV_PATH
+venv_path=.venv
+rm -rf "$venv_path"
+virtualenv "$venv_path"
18
export VIRTUAL_ENV_DISABLE_PROMPT=1
19
-source $VENV_PATH/bin/activate
+. "$venv_path"/bin/activate
20
21
# install utilities
22
-$PIP install setuptools twine
+pip3 install setuptools twine
23
24
# create distribution of the package
25
-alias python3='python'
26
-python setup.py sdist bdist_wheel
+python3 setup.py sdist bdist_wheel
27
28
# upload dist
29
twine upload dist/*
0 commit comments