Lemma is an Electromagnetics API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

build_wheels.sh 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. set -e -x
  3. export PYHOME=/home
  4. cd ${PYHOME}
  5. /opt/python/cp37-cp37m/bin/pip install twine cmake
  6. ln -s /opt/python/cp37-cp37m/bin/cmake /usr/bin/cmake
  7. # Compile wheels
  8. for PYBIN in /opt/python/cp3*/bin; do
  9. "${PYBIN}/pip" wheel /io/ -w wheelhouse/
  10. "${PYBIN}/python" /io/setup.py sdist -d /io/wheelhouse/
  11. done
  12. # Bundle external shared libraries into the wheels
  13. for whl in wheelhouse/*.whl; do
  14. auditwheel repair "$whl" -w /io/wheelhouse/
  15. done
  16. # Test
  17. for PYBIN in /opt/python/cp3*/bin/; do
  18. "${PYBIN}/pip" install -r /io/requirements-test.txt
  19. "${PYBIN}/pip" install --no-index -f /io/wheelhouse nb-cpp
  20. (cd "$PYHOME"; "${PYBIN}/pytest" /io/test/)
  21. done
  22. # Upload
  23. for WHEEL in /io/wheelhouse/nb_cpp*; do
  24. # dev
  25. # /opt/python/cp37-cp37m/bin/twine upload \
  26. # --skip-existing \
  27. # --repository-url https://test.pypi.org/legacy/ \
  28. # -u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" \
  29. # "${WHEEL}"
  30. # prod
  31. /opt/python/cp37-cp37m/bin/twine upload \
  32. --skip-existing \
  33. -u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" \
  34. "${WHEEL}"
  35. done