A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

67 lines
2.2 KiB

  1. name: Build wheels
  2. on: push
  3. jobs:
  4. build-linux:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v2
  8. - name: Set up QEMU
  9. uses: docker/setup-qemu-action@v1
  10. - name: Build manylinux1 x86-64 wheels
  11. uses: earwig/python-wheels-manylinux-build@latest-manylinux1_x86_64
  12. with:
  13. python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39'
  14. - name: Build manylinux2014 x86-64 wheels
  15. uses: earwig/python-wheels-manylinux-build@latest-manylinux2014_x86_64
  16. with:
  17. python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
  18. - name: Build manylinux 2014 aarch64 wheels
  19. uses: earwig/python-wheels-manylinux-build@latest-manylinux2014_aarch64
  20. with:
  21. python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
  22. - uses: actions/upload-artifact@v2
  23. with:
  24. path: dist/*.whl
  25. - name: Publish package to PyPI
  26. # Only actually publish if a new tag was pushed
  27. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  28. uses: pypa/gh-action-pypi-publish@37e305e7413032d8422456179fee28fac7d25187
  29. with:
  30. user: __token__
  31. password: ${{ secrets.pypi_password }}
  32. build-macos:
  33. runs-on: macos-latest
  34. strategy:
  35. matrix:
  36. python-version:
  37. - '3.6'
  38. - '3.7'
  39. - '3.8'
  40. - '3.9'
  41. - '3.10'
  42. steps:
  43. - uses: actions/checkout@v2
  44. - uses: actions/setup-python@v2
  45. with:
  46. python-version: ${{ matrix.python-version }}
  47. - name: Build wheels
  48. run: |
  49. python -m pip install --upgrade pip wheel setuptools
  50. pip wheel . -w dist/
  51. ls dist/
  52. - uses: actions/upload-artifact@v2
  53. with:
  54. path: dist/*.whl
  55. - name: Publish package to PyPI
  56. # Only actually publish if a new tag was pushed
  57. if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
  58. # We can't use the pypa action because of https://github.com/pypa/gh-action-pypi-publish/issues/15
  59. run: |
  60. pip install twine
  61. TWINE_USERNAME="__token__" \
  62. TWINE_PASSWORD="${{ secrets.pypi_password }}" \
  63. twine upload dist/*