Skip to content

Commit 5d5084f

Browse files
author
v.shepard
committed
Update version script
1 parent 5c903cb commit 5d5084f

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

publish_package.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2017-2022 Postgres Professional
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
18+
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
27+
28+
# upload dist
29+
twine upload dist/*
30+
31+
set +eux

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
readme = f.read()
2222

2323
setup(
24-
version='1.8.5',
24+
version='1.8.6',
2525
name='testgres',
2626
packages=['testgres'],
2727
description='Testing utility for PostgreSQL and its extensions',

0 commit comments

Comments
 (0)