Browse Source

Merge pull request #1162 from octodns/improve-cibuild-module

Build wheel and install that for cibuild-module
pull/1163/head
Ross McFarland 2 years ago
committed by GitHub
parent
commit
83e737da93
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      script/cibuild-module

+ 4
- 2
script/cibuild-module View File

@ -15,12 +15,14 @@ VENV_PYTHON=$(command -v python3)
VENV_NAME="${TMP_DIR}/env"
"$VENV_PYTHON" -m venv "$VENV_NAME"
. "${VENV_NAME}/bin/activate"
pip install setuptools
pip install build setuptools
echo "## environment & versions ######################################################"
python --version
pip --version
echo "## install octodns from pwd ####################################################"
python setup.py install
VERSION="$(grep "^__version__" "./octodns/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")"
python -m build --sdist --wheel
pip install dist/*$VERSION*.whl
echo "## checkout provider module ####################################################"
cd $TMP_DIR
git clone "https://github.com/${module}.git"


Loading…
Cancel
Save