Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f131088

Browse files
author
v.shepard
committed
PBCKP-152 merge master
2 parents 51f05de + afa08aa commit f131088

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

publish_package.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2017-2022 Postgres Professional
4+
5+
set -eux
6+
7+
# prepare environment
8+
venv_path=.venv
9+
rm -rf "$venv_path"
10+
virtualenv "$venv_path"
11+
export VIRTUAL_ENV_DISABLE_PROMPT=1
12+
. "$venv_path"/bin/activate
13+
14+
# install utilities
15+
pip3 install setuptools twine
16+
17+
# create distribution of the package
18+
python3 setup.py sdist bdist_wheel
19+
20+
# upload dist
21+
twine upload dist/*
22+
23+
set +eux

0 commit comments

Comments
 (0)