File tree 1 file changed +7
-22
lines changed
1 file changed +7
-22
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Copyright (c) 2017-2022 Postgres Professional
4
4
5
- set -eux
5
+ set -eu
6
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
7
+ venv_path=.venv
8
+ rm -rf " $venv_path "
9
+ virtualenv " $venv_path "
18
10
export VIRTUAL_ENV_DISABLE_PROMPT=1
19
- source $VENV_PATH /bin/activate
20
-
21
- # install utilities
22
- $PIP install setuptools twine
23
-
24
- # create distribution of the package
25
- alias python3=' python'
26
- python setup.py sdist bdist_wheel
11
+ . " $venv_path " /bin/activate
27
12
28
- # upload dist
13
+ pip3 install setuptools twine
14
+ python3 setup.py sdist bdist_wheel
29
15
twine upload dist/*
30
16
31
- set +eux
You can’t perform that action at this time.
0 commit comments