Skip to content

Commit

Permalink
Update pyformance version to 0.4
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Beck-Buysse <[email protected]>
  • Loading branch information
rbuysse committed Nov 1, 2017
1 parent 47da188 commit b662a26
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions bin/build_ext_debs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ build_python_debs() {
pytest==2.9.0
cryptography==1.7.2
lmdb==0.92
git+git://github.com/omergertel/pyformance.git@3acb18da5af5d386fe5aa56f9248228e6af165bc
pyformance==0.4
'

# secp256k1 needs a couple of libraries not readily available
Expand Down Expand Up @@ -218,23 +218,9 @@ package_python_deb() {
--disable-pip-version-check \
--no-deps $pip_pkg_name

# If pyformance package set tarball equal to the name the zip file
# and tar_pkg_name equal to 'pyformance'
if [[ $pip_pkg_name == *"pyformance"* ]]
then
tarball=$(echo "$pip_pkg_name" | cut -d '/' -f 5 | cut -d '.' -f 1)*.zip
tar_pkg_name=$(echo "$tarball" | cut -d '.' -f 1)
else
tarball=$tar_pkg_name*.tar.gz
fi
tarball=$tar_pkg_name*.tar.gz
info "Extracting $tarball"

if [[ $tarball == *".zip" ]]
then
unzip $tarball
else
tar xfz $tarball;
fi
tar xfz $tarball;

rm -f $tarball

Expand All @@ -260,8 +246,6 @@ package_python_deb() {
# This test is failing, so we need to skip it.
if [ $tar_pkg_name == 'pyformance' ]; then
rm ./tests/test__syslog_reporter.py

sed -ibak -e 's/0.3.4/0.3.5.dev2/' pyformance/__version__.py
fi

# Build the package
Expand Down

0 comments on commit b662a26

Please sign in to comment.