Browse Source

Merge pull request #1163 from octodns/cibuild-setup-py-fix

Rework cibuild-setup-py to build a pkg and install & test it
pull/1165/head
Ross McFarland 2 years ago
committed by GitHub
parent
commit
0cfd8b4f49
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      script/cibuild-setup-py

+ 6
- 4
script/cibuild-setup-py View File

@ -3,18 +3,20 @@ set -e
cd "$(dirname "$0")/.."
VERSION="$(grep "^__version__" "./octodns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")"
echo "## create test venv ############################################################"
TMP_DIR=$(mktemp -d -t ci-XXXXXXXXXX)
python3 -m venv $TMP_DIR
. "$TMP_DIR/bin/activate"
pip install setuptools
pip install build setuptools
echo "## environment & versions ######################################################"
python --version
pip --version
echo "## validate setup.py build #####################################################"
python setup.py build
echo "## validate setup.py install ###################################################"
python setup.py install
python -m build --sdist --wheel
echo "## validate wheel install ###################################################"
pip install dist/*$VERSION*.whl
echo "## validate tests can run against installed code ###############################"
pip install pytest pytest-network
pytest --disable-network


Loading…
Cancel
Save