Lemma is an Electromagnetics API
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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